XRechnung (BR-DE)Error

BR-DE-22 Attachment file names are not unique

What BR-DE-22 means

Every attached document (BT-125) needs its own file name. Your invoice contains two or more attachments with the same name, so the recipient cannot tell them apart.

Error: the invoice is not valid until this is fixed.

Common causes

  • The same file was attached twice.
  • The software gives every attachment the same name, for example attachment.pdf.

How to fix BR-DE-22

  1. Give each attachment a unique file name, for example timesheet-march.pdf and delivery-note-4711.pdf.
  2. Remove attachments that were added twice.
  3. Create the invoice again and check the new file.

Where the fields are in the XML

  • BT-125 Attached document

    UBL
    cac:AdditionalDocumentReference/cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@filename
    CII
    ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject/@filename

UBL paths start below the Invoice element. CII paths start below rsm:SupplyChainTradeTransaction unless they begin with rsm:.

Based on the EN 16931 business rules (CEN/TC 434) and the XRechnung 3.0 rules published by KoSIT. This page explains the rules in plain language and is not legal or tax advice.