I am trying to retrieve the SI_MACHINE_USED property of a scheduled report through VB. When I hit a resultset that does not have this property, I get the error “Item SI_MACHINE_USED not found in collection”
select si_id, si_name, SI_SCHEDULEINFO.SI_MACHINE_USED from CI_INFOOBJECTS WHERE SI_INSTANCE = 1
When I print out the result set in a for loop, it works for the instances that have a value for SI_MACHINE_USED but errors out when it hits the result that does not have this property.
Is there a way I can check to see if this property exists before printing it out? Does anyone know why this would be null for a scheduled instance? Thanks