SAP Knowledge Base Article - Public

3340899 - Error: Writing of key mapping for external ID type 888 and external ID XXX failed


You receive the error "Writing of key mapping for external ID type 888 and external ID XXX failed" when replicating Employees to C4C.


  •  SAP Cloud for Customer

Reproducing the Issue

  1. Administrator -> Webservice Message Monitoring -> You find error occurred in service Interface EmployeeReplicationIn
  2. Open up the payload and you find the code like below
  3. Check ID Mapping for Integration and you find a different external ID than XXX mapped to the corresponding BP number for the given Employee  


There was a prior message defined the BusinessPartnerID for the given EmployeeID in ID Mapping for Integration.


Please investigate the reason and method behind the change in the Business Partner ID of this employee in the external system.


BusinessPartnerID, EmployeeID, ReceiverEmployeeID, EmployeeReplicationIn, EmployeeReplicationRequest , KBA , LOD-CRM-EMP-RPL , Employee Replication , LOD-CRM-INT-S4H , Integration of C4C with S/4 HANA , LOD-CRM-INT-ERP , Integration of C4C with ERP , Problem


SAP Cloud for Customer core applications all versions