When We are creating/destroying PropertyCollector using API function (CreatePropertyCollector/DestroyPropertyCollector) it is throwing following error:
WebFault: Server raised fault: 'The object 'vmodl.query.PropertyCollector:session[52f35b59-95f8-56ba-ba32-39c0ef193881]52ec5ed4-5b68-6569-221a-29a71c8c5831' has already been deleted or has not been completely created'.
Workflow: I am collecting VMware Virtual Machine Inventory data and for that first of all I am creating property collector and will use retrieveProperties() function to get inventory data.
As my script is called at every 15th minutes I am using mor[in our case: session[52f35b59-95f8-56ba-ba32-39c0ef193881]52ec5ed4-5b68-6569-221a-29a71c8c5831] created by createPropertyCollector to get only updates using waitForUpdatesEx() fuction. Now after 4 hours I would destroy that property collector and create a new one to get all data and cycle would be continued.
Can you please help when do we get this error? Is this any issue related to vCenter? vCenter version is 6.5. What do we check on vCenter to troubleshoot this?
Thanks!