"No row with the given identifier exists" when deleting a virtual machine from Cloud Director.
search cancel

"No row with the given identifier exists" when deleting a virtual machine from Cloud Director.

book

Article ID: 325669

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • Deleting a virtual machine from Cloud director UI shows the error:

No row with the given identifier exists

  • The /opt/vmware/vcloud-director/logs/vcloud-container-debug.log on the Cloud Director Cells show errors of the form:

org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.vmware.vcloud.common.model.logicalresource.LogicalDiskModel#12345e67-890c-1234-56d7-89afd1c23456]
    at org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:409)
    at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:171)


Environment

VMware Cloud Director 10.x

Cause

This issue occurs due to a stale media entry in the Cloud director database.

Resolution

To resolve this issue, please open a Support Request and reference this KB article.

Database modifications are required to remove stale entries and will require VMware Technical Support assistance.


Additional Information

Impact/Risks:

NOTE: The resolution procedure modifies the Cloud Director database. Ensure to take a backup of the database before proceeding.