Symptom
Upon trying to upload the Employee Organizational Unit Assignment with Role Code: X, you see the processing error:
Role Y for employee xxxxxxxxxxxxxxxxxxxxxxxx is not allowed
where X represents the internal Role Code
Y represents the description of the internal Role Code
xxxxxxxxxxxxxxxxxxxxxxxx represents the technical ID of the Employee in the backend
Environment
SAP Cloud for Customer
Reproducing the Issue
- Go to Data Workbench workcenter
- Go to Import view
- Select the radio button for Individual Object
- Go to Insert tab
- Go to Standard Object tab
- Search for the Data Workbench object Employee Organizational Unit Assignment
- Select Download
- Fill data in the fields
- Save the file
- Select Next and Browse for the file
- Select Upload
- Choose Next
- Select Import
- In the Monitor view, check for the respective Task ID
- The record in the file have the Processing Error
Cause
Not all the Role Codes are used in the employee assignment to the organizational structure. There are Role Codes used in other scenarios, but not relevant for the employee assignment to the organizational structure (Employee Organizational Unit Assignment).
Resolution
For the employee assignment to the Organizational Unit, only the following employee Role Codes are used and allowed:
218 - Manager
219 - Employee
222 - Employee (Secondary Assignment)
Employees with the above 3 Role Codes appear on the facet Employees in the Organizational Unit UI.
Keywords
Manager, Employee, Secondary Assignment, Role Code, Employee Organizational Unit Assignment, Role for employee is not allowed , KBA , role for employee is not allowed , employee organizational unit assignment , role code , secondary assignment , employee , org unit , manager , LOD-LE-OM-OM , Org. Management , Problem