BR-DE-22Two attachments have the same file name

ErrorXRechnungBT-125

Also in:Deutsch

What it means

Every file attached inside an XRechnung needs its own file name, so the receiving system can tell them apart.

Official message

Rejects the invoice (fatal)
[BR-DE-22] Das "filename"-Attribut aller "EmbeddedDocumentBinaryObject"-Elemente muss eindeutig sein

XRechnung Schematron 2.6.0, KoSIT, released 2 September 2026 · Read the rule at the source

KoSIT publishes the XRechnung messages in German only.

Text compared with the published file on 17 November 2026.

Typical causes

  • Two documents were both exported as 'attachment.pdf'.
  • The same file was attached twice.

How to fix it

  1. Give each attachment a unique file name, e.g. timesheet-2026-10.pdf.
  2. Remove duplicates and export again.

Check your invoice for BR-DE-22

Open the free validator with BR-DE-22 already explained: paste or upload your XML and the finding, if any, is highlighted with its exact line.

Check my invoice

3 free validations a month without an account. Invoice contents are never stored.

Germany · XRechnung

Check this rule in German

The free German checker runs BR-DE-22 and the other XRechnung rules in your browser, with the fix in German. Nothing is uploaded.

All German pages

Prefer English?XRechnung validatorGermany's e-invoicing obligation: 2025, 2027 and 2028

What the rule says (technical)

The filename attribute of every embedded attachment (BT-125) must be unique.

Rename one of the attached files so every attachment has its own file name.

More errors with a worked fix

Related rules