Symptom
The error "XSLT exception at offset XXXX" is raised when replicating materials from S/4HANA to C4C (where "XXXX" is the offset number used to address a section of a string).
This error can happen with different elements, as in the example below related to "QuantityCharacteristic":
- XSLT exception at offset XXXX, XPath ns0:MaterialMassReplicationRequest(1)MaterialMassReplicationRequest(2)Material(2)QuantityC
- Detailed Error Text: System expected the end of the element 'QuantityCharacteristic'.
Environment
- SAP Cloud for Customer
- SAP S/4HANA
Reproducing the Issue
- Go to the Administrator work center.
- Go to the General Settings work view.
- Open the Web Service Message Monitoring.
- Set the filter to "Erroneous" messages.
- Search the error messages related to XSLT exception.
Cause
This error is usually related to one of these causes:
- If there was a change in the logic of the iFlow/mapping.
- If a field within the payload is longer than the definition of the service allows it.
Resolution
Make sure you are using the latest available standard version of the CPI or PI middleware. If there was any change in the iFlow/mapping, please revert the logic in the middleware and retest the scenario.
If the issue persists after deploying the latest available standard version of CPI/PI, check the allowed length within the message data element.
Keywords
C4C; Cloud for Customer; S/4HANA; mapping; iFlow; XSLT; exception; offset; materials; QuantityCharacteristic. , KBA , LOD-CRM-INT-ERP , Integration of C4C with ERP , How To