Symptom
While trying to replicate the Workers in SAP S/4HANA Public Cloud System error "Work assignment ID is already assigned to another workforce person." is encountered.
Environment
SAP S/4HANA Cloud Public Edition.
Reproducing the Issue
- Run workforce replication so that an inbound payload is sent to S/4HANA Cloud for a worker.
- Ensure the payload contains two different Work Agreement IDs (work assignments) for the same worker under the Work Agreement section.
- Open Message Monitoring for Administrators and observe the error: "Work assignment ID is already assigned to another workforce person."
Cause
The inbound payload contains multiple different Work Agreement IDs for the same worker. Only those Work Agreement ID should be passed per worker which can be mapped with the Worker Id.
Resolution
- Ensure the payload does not contain two different Work Agreement IDs (work assignments) for the same worker under the Work Agreement section.
- Remove the Work Agreement which is not mapped to the Worker Id.
- Send the updated payload, update the Worker again via the appropriate channel.
For Example:
- If the Worker Id is '123', and the Work agreement ids for this Worker are '123' and '456'. This will cause the issue.
- Ensure that the Worker '123' has the Work agreement ids as '123' and '123_1' and so on for multiple Work agreements for that Particular Worker.
Keywords
work assignment id already assigned, workforce person conflict, manage workforce editing is restricted, work agreement id duplicate, multiple work agreements, workforce replication error, message monitoring for administrators, worker payload validation, workforce integration, s/4hana cloud workforce integration , KBA , CA-WFD-INT , S/4HANA Cloud Workforce Domain Integration , Problem
SAP Knowledge Base Article - Public