SAP Knowledge Base Article - Public

3481343 - Error Message "XSLT Exception at Offset XXXX" When Replicating Materials From S/4HANA to C4C

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

  1. Go to the Administrator work center.
  2. Go to the General Settings work view.
  3. Open the Web Service Message Monitoring.
  4. Set the filter to "Erroneous" messages.
  5. Search the error messages related to XSLT exception.

Cause

This error is usually related to one of these causes:

  1. If there was a change in the logic of the iFlow/mapping.
  2. 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

Product

SAP Cloud for Customer core applications 2405