When removing Provider VDC, the following error is encountered:
Error: No row with the given identifier exists: [com.vmware.vcloud.common.model.logicalresource.StorageClassProviderVdcLogicalResourceModel#xxxxxx-xxxxxxx-xxxxxxx-xxxxxxxxxxxx]
VMware Cloud Director 10.x
Mismatch in the Logical Resources, essentially what is defined as the logical link between the physical resources and the provider VDC Resources.
The following will give an output if there are any affected Logical Resources.
sudo -i -u postgres psql vcloud
select plr.name from vdc_logical_resource vlr join prov_vdc_logical_resource plr on vlr.name = plr.name where vlr.prov_vdc_lr_id <> plr.id and vlr.prov_vdc_lr_id not in (select id from prov_vdc_logical_resource);