HomeError code lexicon › BR-DE-22
BR-DE-22 German business rules (BR-DE)

Fix BR-DE-22: Attachment file names not unique

Not all filename attributes of the embeddedDocumentBinaryObject elements are unique

BR-DE-22 in your own invoice? Upload the file and find every error in seconds.

What does BR-DE-22 mean?

Not all filename attributes of the embeddedDocumentBinaryObject elements are unique. This is a national KoSIT rule (XRechnung) that goes beyond EN 16931 and is mandatory for German e-invoices.

Common causes of BR-DE-22

How to fix BR-DE-22

  1. Find the faulty spot in the XML. Open the XML of the invoice and go to the spot in question along this XPath://ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject/@filename
  2. Apply the fix. Every embedded attachment (embeddedDocumentBinaryObject) needs a unique 'filename' — give each attachment a different file name.
  3. Validate again. Save the file and validate it again to check that BR-DE-22 is no longer reported.
Concrete fix

Every embedded attachment (embeddedDocumentBinaryObject) needs a unique 'filename' — give each attachment a different file name.

XPath//ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject/@filename

Frequent questions about BR-DE-22

How do I fix BR-DE-22?
Every embedded attachment (embeddedDocumentBinaryObject) needs a unique 'filename' — give each attachment a different file name.

Related error codes

Check BR-DE-22 automatically

Instead of digging through the XML by hand you can validate your ZUGFeRD or XRechnung file online – upload the PDF or the XML and you get every error with rule ID, affected field, fix and XPath, as a readable report or as JSON through the API.

Find every error automatically instead of searching by hand

Upload your ZUGFeRD, Factur-X or XRechnung file – you get every violation back with rule ID, field, fix and XPath.

Validate online for free
Check invoice