Flow designer action deleting role gives error "Unknown error occurred while deleting the record" Issue The action to delete a role in the flow designer generates an error message that reads, "An unknown error occurred while deleting the record." Release All Releases. Cause By default, administrators cannot delete roles in the sys_user_has_role table where the Inherited property value is true. Deleting a role with Inherited set to false automatically removes all associated roles with Inherited set to true. This is expected behavior. The error occurs because the flow attempts to delete all roles for the user, including both Inherited true and Inherited false roles. Resolution To resolve the error, set the flow to target only non-inherited roles. A. Delete only directly assigned roles: 1. Open the flow in the Workflow Studio. 2. Find the Look Up Records step on the sys_user_has_role table. 3. Add the condition: Inherited is false. 4. Save and test the flow. B. Check the flow’s Run as setting 1. In the flow properties, set Run as to User who initiates the session. 2. Make sure this user has permission to delete records in sys_user_has_role. Related Links Managing Roles