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
- Open the eDocument Cockpit app.
- Search for the affected eDocument.
- Observe process status “Invalid File” and Message no. EDOCUMENT_EU_CII009.
- Open the History of the eDocument.
- 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
- Open the affected billing document in Display Billing Document (transaction VF03).
- Edit the header text (and any free-text fields mapped to the e-invoice).
- Remove all bold/underline/SAPscript formatting and any special/control characters so the text is plain.
- Save the document.
- In eDocument Cockpit, reprocess the eDocument to regenerate the XML and resubmit via Peppol.
- 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
SAP Knowledge Base Article - Public