com.vmware.ssdc.library.exceptions.InventoryObjectNotFoundException: Could not find object with moref "vm-####" and VC ID "########-####-####-####-########c21e" in inventory category "VirtualMachine". at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.getInvRec(VC20VirtualServer.java:3688) at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.getInvRec(VC20VirtualServer.java:3682) at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.getMediaDevices(VC20VirtualServer.java:3793) at com.vmware.ssdc.backend.services.impl.VmManagerImpl.mediaDeviceExists(VmManagerImpl.java:2730) at com.vmware.ssdc.backend.services.impl.VmManagerImpl.ejectMedia(VmManagerImpl.java:2714) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)VMware Cloud Director 10.5.1
This issue is caused due to a stale media item present in VCD UI. The stale media item cannot be deleted from VCD UI since it is trying to eject the media from a Virtual Machine which is no longer present in vCenter.
If you encounter this issue contact Broadcom Support and note this Article ID (403295) in the problem description. For more information, see Creating and managing Broadcom support cases.