The customer reported an error message stating, 'Cannot add role [Role1] as sub-role for role [Role2] as that would create circular reference.' This issue occurs when trying to add a custom role that contains standard roles to another custom role.
The root cause of the issue is related to the configuration of custom roles in the system. Specifically, the error arises when a role is being added as a sub-role to another role, which creates a circular reference. This indicates a conflict in the role hierarchy that needs to be addressed.
To resolve the issue, CX needs to review the roles to ensure there are no circular reference. Hence for a complex role, this process will cost more time to identify which role is causing the error.
Kindly make the error points to the exact role causing the error