SnapCenter policy deletion fails with constraint error on nsm_temp_backup_job
Applies to
SnapCenter Server (SC)
Issue
- When attempting to delete a policy from Powershell using
Remove-SmPolicy
, the following error occurs:
An error occurred while updating the entries.
See the inner exception for details.InnerException Cannotdelete or update a parent row: a foreign key constraint fails
(`nsm`.`nsm_temp_backup_job`, CONSTRAINT `FK_nsm_temp_backup_job_nsm_Policy`FOREIGN KEY (`nsm_policy_id`) REFERENCES `nsm_Policy`
(`nsm_Policy_Id`) ON DELETE NO ACTION ON UPDATE NO ACTION)
- Trying to remove from the SC UI also fails.