VMware {code} Community
maxpil01
Contributor
Contributor

The object has already been deleted or has not been completely created

Hello,

I am getting this error when removing a datastore from a host. What I noticed is that this happens when another datastore (on a different datastore) removal is happening at the same time on the host. Is there any work-around for the issue? Here is the full error

SOAP Fault:

Fault string: The object has already been deleted or has not been completely created

Fault detail:

$VAR1 = bless( {

                 'obj' => bless( {

                                   'value' => 'datastore-120512',

                                   'type' => 'Datastore'

                                 }, 'ManagedObjectReference' )

               }, 'ManagedObjectNotFound' );

Reply
0 Kudos
1 Reply
stumpr
Virtuoso
Virtuoso

Do you mean that you have two processes both deleting the same datastore?

Generally I'd do a Try::Tiny or eval { } block around the call to capture things like that and avoid a runtime error.

Reuben Stump | http://www.virtuin.com | @ReubenStump
Reply
0 Kudos