Symptom
When trying to delete the recruiting group using Manage Recruiting Groups tool, an error message appears: "This group cannot be deleted when it is in use".
When trying to delete recrutiting group an error message appears as : "Unable to delete the permission group that is used in existing permission roles. Before deleting the permission group, remove it from associated roles. To check the associated roles, see the “Granted Permission Roles” tab of the permission group details page."
Environment
SAP SuccessFactors Recruiting Management
Cause
The group might be associated to any job requisition template at the template level and/or to any job requisition before deleting them. The groups associated to deleted requisitions will throw this error as well.
Resolution
Before deleting the groups, you need to remove the association of the group with any requisition created or with any template and then try deleting them.
You can find out the ones associated with the group in question by creating a simple Integration Center report -> Create new simple report -> Select entity JobRequisitionGroupOperator and filter using userGroupName.
As long as job requisition are tied to the recruiting groups, It cannot be deleted..
Even if the job requisition is deleted, and the recruiting group is tied to the deleted job requisition, the group cannot be deleted, you will need to re-store the deleted job requisition, dissociate the requisition from the group, and then delete the group.
To delete a recruiting group, it will need to be removed from requisition templates, from Manage Recruiting Team Settings and individually from each requisition it has been added to.
Manage Recruiting Team Settings will add a recruiting group to a team field on a requisition. To delete a recruiting group any requisition (deleted or otherwise) that uses this group will need to be edited and the group removed from the team field.
Two possible workaround for this issue:
- Rename the group to something like "Do not Use".
- Restore any deleted requisitions using this group and manually remove the group from any operator fields on requisitions its added to.
Keywords
group, cannot, deleted, in use, not able, recruiting, unable, rcm, failed on update or delete by foreign key constraint violation , KBA , LOD-SF-RCM-JOB , Job Postings & Requisitions , Problem