'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 managing a vApp in VMware Cloud Director
search cancel

'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 managing a vApp in VMware Cloud Director

book

Article ID: 453811

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Users may observe the following exceptionin the VMware Cloud Director UI when attempting to manage a vApp:

Managed object of type "Folder" with value "<moref_id>" does not exist - The object 'vim.Folder:<moref_id>' has already been deleted or has not been completely created.

Environment

  • VMware Cloud Director 10.x

Cause

Stale database records may occur, leading to a mismatch between the VMware Cloud Director database and the actual vCenter inventory.

Resolution

In the Cloud Director Database, for a VM within a vApp it should be mapped to a unique folder reference 'group-vXXXXX'.

  1. Locate the Primary Cell and connect to the database
    1. sudo -i -u postgres psql vcloud
  2. Run the following query to identify vApp VM records that are associated with an incorrect Folder Reference:
    1. SELECT vapp_vm.id, vapp_vm.name, vm_inv.vc_id, vm_inv.moref, vm_container.vmfolder_moref, vm_inv.parent_moref, vm_container.sg_id
      FROM vapp_vm, vm_container, vm, vm_inv
      WHERE vapp_vm.vapp_id = vm_container.sg_id
      AND vapp_vm.svm_id = vm.id
      AND vm.vc_id = vm_inv.vc_id
      AND vm.moref = vm_inv.moref
      AND vm_inv.is_deleted = false
      AND vm_container.vmfolder_moref <> vm_inv.parent_moref;

Resolution for this issue involves database modification. For prompt assistance open a case with Broadcom Support and include the output of the above query, a database backup, and a reference to this article (453811).