SAP Knowledge Base Article - Public

3794950 - 'error on line & at column &&&&: PCDATA invalid Char value 2' exception - SAP S/4HANA Public edition

Symptom

eDocument set to “Invalid File” with message no. EDOCUMENT_EU_CII009;

ERR.xml shows “error on line & at column &&&&: PCDATA invalid Char value 2” in History tab from eDocument Cockpit app.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Open the eDocument Cockpit app.
  2. Search for the affected eDocument.
  3. Observe process status “Invalid File” and Message no. EDOCUMENT_EU_CII009.
  4. Open the History of the eDocument.
  5. Open the ERR.xml from History.

Observe the XML parsing error: “error on line & at column &&&&: PCDATA invalid Char value 2”.

Cause

A language encoding issue: special characters and/or SAPscript formatting within document text are included in the payload, introducing invalid characters into the XML.

Resolution

  1. Open the affected billing document in Display Billing Document (transaction VF03).
  2. Edit the header text (and any free-text fields mapped to the e-invoice).
  3. Remove all bold/underline/SAPscript formatting and any special/control characters so the text is plain.
  4. Save the document.
  5. In eDocument Cockpit, reprocess the eDocument to regenerate the XML and resubmit via Peppol.
  6. Verify the eDocument processes without the “Invalid File” status;

See Also

SAP Help Portal: Germany

Keywords

peppol, e-document cockpit, cross industry invoice, cii, edocument_eu_cii009, invalid file, validation, xml, pcdata invalid char value 2, encoding, special characters, sapscript, billing document, vf03, xrechnung, germany , KBA , CA-GTF-CSC-EDO-DE , Germany , Problem

Product

SAP S/4HANA Cloud Public Edition all versions