Error: 'Could not find object with moref "vm-xxxx" and VC ID "XXX" in inventroy category "Virtual Machine" ' occurred while trying to add or delete a network for vApp networks.
search cancel

Error: 'Could not find object with moref "vm-xxxx" and VC ID "XXX" in inventroy category "Virtual Machine" ' occurred while trying to add or delete a network for vApp networks.

book

Article ID: 392954

calendar_today

Updated On: 04-28-2025

Products

VMware Cloud Director

Issue/Introduction

  • Unable to add or delete vApp networks in a vApp.
  • Below errors are seen in /opt/vmware/vcloud-director/vcloud-container-debug.log:

    com.vmware.ssdc.library.exceptions.InventoryObjectNotFoundException: Could not find object with moref "vm-####" and VC ID "#############" in inventory category "VirtualMachine".
        at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.getInvRec(VC20VirtualServer.java:3875)
        at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.getInvRec(VC20VirtualServer.java:3869)
        at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.isRelocateRequired(VC20VirtualServer.java:2935)
       .......
        at java.base/java.lang.Thread.run(Thread.java:829)

Environment

VMware Cloud Director 10.6.x

Cause

This issue is due to a stale VM present in VCD UI which is already deleted in vCenter.

Resolution

In the vApp, identify any VMs in the 'Unknown' state and confirm from vCenter whether they are valid or stale entries.

If they are stale, database modifications are required to remove the outdated VM entry from the VCD Database.

Please open a case with Broadcom Support to delete the stale entries from VCD Database. For more information, see Creating and managing Broadcom support cases