E-invoice rule explained · XRechnung
BR-DE-22: Two embedded attachments have the same file name
Official message
Das "filename"-Attribut aller "EmbeddedDocumentBinaryObject"-Elemente muss eindeutig sein
Not all filename attributes of the embeddedDocumentBinaryObject elements are unique
- Severity
- Error (the invoice is rejected)
- Checked in
- UBL, CII
- Business terms
- BT-125
What does BR-DE-22 mean?
Every attachment embedded in the invoice (BT-125) must have a different file name in its filename attribute. The comparison is exact, so report.pdf and Report.pdf count as different, but two report.pdf do not.
Usual causes
- The software names every attachment the same way, for example attachment.pdf or Anlage.pdf.
- The same document was attached twice.
- Files with the same name from different folders were attached, and the folder part was dropped.
How do I fix BR-DE-22?
- Give each attachment a distinct file name, for example timesheet-2026-10.pdf and delivery-note-4711.pdf.
- Remove an attachment that is an exact duplicate of another.
- Check the filename attribute of every cbc:EmbeddedDocumentBinaryObject (UBL) or ram:AttachmentBinaryObject (CII) after export.
Corrected XML (minimal example we wrote)
UBL
<cac:AdditionalDocumentReference> <cbc:ID>ANL-1</cbc:ID> <cac:Attachment> <cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf" filename="stundenzettel-2026-10.pdf">JVBERi0xLjQK</cbc:EmbeddedDocumentBinaryObject> </cac:Attachment></cac:AdditionalDocumentReference><cac:AdditionalDocumentReference> <cbc:ID>ANL-2</cbc:ID> <cac:Attachment> <cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf" filename="lieferschein-4711.pdf">JVBERi0xLjQK</cbc:EmbeddedDocumentBinaryObject> </cac:Attachment></cac:AdditionalDocumentReference>
Example values only. Put the elements in place of, or beside, what your file has; element order matters in both syntaxes.
Check your file for free
The free checker runs the official EN 16931, XRechnung and Peppol rules in your browser. Your file is not uploaded.
In development — early access
Fix-and-explain for accountants and invoicing teams
A paid service that explains every failed rule in plain German, French, Dutch or English and proposes a corrected file is in development. Early access
Source
Rule id and official message from the KoSIT XRechnung Schematron, v2.6.0 (for XRechnung 3.0) (Apache-2.0), compiled from upstream commit 7e3ddbe. The explanation, causes, fix and XML on this page are our own, not the rule publisher's. KoSIT XRechnung Schematron v2.6.0 (for XRechnung 3.0)