Error "query did not return a unique result: 2" when deleting VM or editing VM Storage Policy and VM Settings in VMware Cloud Director
book
Article ID: 376159
calendar_today
Updated On:
Products
VMware Cloud Director
Issue/Introduction
Unable to edit VM Settings such Storage Policy or delete VM resources in VCD
Attempts to modify VM settings fail with the following error:
query did not return a unique result: 2
Environment
VMware Cloud Director 10.x
Cause
This issue occurs due to the presence of duplicate entries in the database for the affected Virtual Machine. Specifically, the duplicates are found in the 'computevm' table