Unable to delete a resource group with Foreign Key Constraint error
Applies to
- SnapCenter Server (SC)
- Resource group (RG) removal
Issue
Unable to remove a resource group due to foreign key constraints in the SC NSM MYSQL database.
Failed to remove the resource with id (). Error: An error occurred while updating the entries. See the inner exception for details.
"Devart.Data.MySql.MySqlException: Cannot delete or update a parent row: a foreign key
constraint fails (`nsm`.`nsm_backup`, CONSTRAINT `FK_nsm_backup_nsm_protection_group` FOREIGN KEY (`nsm_protection_group_id`)
REFERENCES `nsm_protection_group` (`nsm_protection_group_id`) ON DELETE NO ACTION ON)"