Error: 'Managed object of type "Folder" with value "group-vXXXXX" does not exist. - The object 'vim.Folder:group-vXXXXX' has already been deleted or has not been completely created' when importing a VM from vCenter into VMware Cloud Director
book
Article ID: 371537
calendar_today
Updated On:
Products
VMware Cloud Director
Issue/Introduction
Cannot import a VM into Cloud Director.
Importing a VM into Cloud Director results with a VM in an UNKNOWN state.
Cloud Director complains about a folder not existing when importing a VM.
On inspection the folder exists in vCenter with the correct moRef 'group-vXXXXX'.
Environment
VMware Cloud Director 10.4.x
VMware Cloud Director 10.5.x
Cause
This issue can occur when the folder reference 'group-vXXXXX' is not uniquely mapped in the Cloud Director Database.
Resolution
In the Cloud Director Database, for a VM within a vApp it should be mapped to a unique folder reference 'group-vXXXXX'.
Locate the Primary Cell and connect to the database
sudo -i -u postgres psql vcloud
Verify what vApps are associated with the Folder Reference:
select sg_id,name,vmfolder_moref,org_vdc_id,org_id,creation_status from vm_container where vmfolder_moref = 'group-vXXXXX';
Open a Case with Broadcom Support and upload the output of the above queries.