Symptom
In SuccessFactors, the Business Scenario "Workforce Replication from SAP SuccessFactors Employee Central to SAP Master Data Integration" is failing with "Value of element <field> is expected to be <format> of length <number>" error.
Example: "Value of element 'sap.odm.workforce.WorkforcePerson.phones.phones[].country.code' is expected to be a CodeList key of length 2"
Environment
SAP SuccessFactors HCM Suite
Reproducing the Issue
- Enable the “Diagnostics” option in the integration settings.
- Run the integration.
- Open the execution logs and click on the error to download the payload.
- Review the error message.
Cause
The integration is sending a field with a different length than the receiving system (e.g. S/4 HANA) is expecting.
Resolution
Adjust the data so that the values are sent in the payload with the correct length.
The Field Mapping Between Employee Central and SAP Master Data Integration chapter indicates the expected lengths.
If the indicated field comes from a picklist, customers should maintain the External Standardized Code in the picklist values according to the expected length. When maintained, this code is sent to MDI instead of the regular external code.
The Configuring Standardized Codelist Values in the Integration chapter indicates the step-by-step.
Keywords
workforce, replication, successfactors, employee central, master data integration, country code, length, error, payload, integration,, s4hana, mdi, ec, sf, s4, value of element, is expected to be, length , KBA , LOD-SF-INT-MDI , OneMDI Business Scenarios , Problem
SAP Knowledge Base Article - Public