Overview:
During a Study deployment, the job fails and the error message, "cannot delete resource [Object ID]: resource is used in [Object Name]" appears in the job log.
Root Cause:
This occurs because of the below order of events:
- A deployment occurred and some of the Study objects were copied from the source environment to the target environment.
- At some point objects were deleted in the source environment that already migrated into the target environment during the first deployment.
- A second deployment happened and this deployment will attempt to delete the previously deleted objects in the source from the target. This is because the objects are no longer in the source environment. Since the objects in the target now reference other objects they cannot be deleted, the deployment fails, and the error message appears.
Solution:
Deleting the Study Data in the target environment will remove the objects blocking the deployment. Once the Study Data is deleted, the deployment will be successful.
Related Documentation:
Vault CDMS Documentation: