Skip to main content
NetApp Knowledge Base

SnapCenter policy deletion fails with constraint error on nsm_temp_backup_job

Views:
105
Visibility:
Public
Votes:
0
Category:
snapcenter
Specialty:
snapx
Last Updated:

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.

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.