BR-DE-22 Attachment file names not unique

What the XRechnung rule BR-DE-22 demands, where the data sits in UBL and CII, and how to fix the error.

ErrorXRechnungBT-125

Official rule text

UBL

[BR-DE-22] Das "filename"-Attribut aller "EmbeddedDocumentBinaryObject"-Elemente muss eindeutig sein

CII

[BR-DE-22] Not all filename attributes of the embeddedDocumentBinaryObject elements are unique

Assertion BR-DE-22 in the XRechnung Schematron (KoSIT), v2.6.0, UBL and CII. KoSIT publishes the XRechnung rule messages in German.

KoSIT’s English wording, used for the Peppol BIS Billing national rule DE-R-022:

If both supplier and customer are located in Germany, attached documents provided with an invoice in "ADDITIONAL SUPPORTING DOCUMENTS" (BG-24) shall have a unique filename (non case-sensitive) within the element ″Attached document″ (BT-125).

What it means

File names of embedded attachments must be unique. Extra rules for XRechnung, the German specification of EN 16931.

Docfaro reports a breach of BR-DE-22 as an error.

Where the data sits

The business terms this rule checks, and the element that carries each of them in the two syntaxes EN 16931 allows.

BT-125 Attached document

UBL 2.1
/Invoice/cac:AdditionalDocumentReference/cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@filename
CII D16B
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject/@filename

Prefixes: cbc and cac are the UBL basic and aggregate components; rsm, ram and udt the CII namespaces. In a UBL credit note the root is CreditNote and lines are cac:CreditNoteLine.

How to fix it

Rename duplicate attachments.

Where the rule applies

Defined inXRechnung Schematron v2.6.0
SyntaxesUBL and CII
Official severityerror (fatal)
Docfaro reports it asError
Docfaro checks it forXRechnung only, recognised by the specification identifier (BT-24), including the XRechnung extension. Other EN 16931 invoices do not have to meet BR-DE rules.
Peppol counterpartDE-R-022, a national rule for invoices where both seller and buyer are in Germany
Rule groupXRechnung rules (BR-DE, German CIUS)

All rules explained

Sources

  1. XRechnung Schematron v2.6.0 (Apache-2.0)KoSIT, GitHub
  2. Validator-Konfiguration XRechnung 3.0.2, Release 2026-08-31 (XSD UBL 2.1 und CII D16B, Schematron EN 16931 und XRechnung)KoSIT auf GitHub
  3. XRechnung – Versionen und BundlesKoSIT / xeinkauf.de

Last reviewed: