The object vim VirtualMachine vm xxx has already been deleted or has not been completely created
search cancel

The object vim VirtualMachine vm xxx has already been deleted or has not been completely created

book

Article ID: 381075

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:

  • using the workflow "Move virtual machines to folder" throws an error, e.g.
    <Timestamp> ERROR Error in (Workflow:Move virtual machines to folder / Move to folder (item0)#1) The object 'vim.VirtualMachine:vm-xxx' has already been deleted or has not been completely created

Environment

Aria Automation Orchestrator 8.x

Cause

There are different causes for this behaviour:

  1. The VM was indeed already deleted due to a provisioning or other failure
  2. The VM was migrated to a different location in vSphere
  3. The provided folder does not contain the referred VM

Resolution

For an issue where the provided folder does not contain the referred VM, please review the input variables. In case an Automation is using getAllVmFolders then please note that this API call returns an Array of VM folders matching the query used.

If the vSphere plugin is configured for multiple vCenter then all vCenter's will be queried, and if the same folder exists in different locations the first result may therefor not be the correct folder.

To resolve the issue please iterate through the returned array and identify the correct folder required.