Skip to content
SmartFormular

SmartFormular › SmartFormular E-Invoice Start › Validation rules › BR-DE-22

BR-DE-22

Two attachments have the same file name

Validation rule of XRechnung 3.0.2 (KoSIT, Schematron 2.6.0) · Level: Error

What the message means

Two attachments have the same file name.

What the issuer needs to change

Give each attachment its own file name.

Your invoice reports BR-DE-22? Check it with SmartFormular E-Invoice Start, free to try until 31 December 2026: the tool shows every finding with an explanation, the invoice in readable form and a GiroCode to pay – in your browser, no upload.

Check an e-invoice

Origin

Rule set
XRechnung 3.0.2 (KoSIT, Schematron 2.6.0)
Syntax
CII, UBL
Level
Error

Original rule text

Das "filename"-Attribut aller "EmbeddedDocumentBinaryObject"-Elemente muss eindeutig sein

Source: KoSIT, XRechnung Schematron 2.6.0, Apache License 2.0

Technical details for IT

UBL

Context: /ubl:Invoice | /cn:CreditNote
Test: not(count(cac:AdditionalDocumentReference) =                      count(cac:AdditionalDocumentReference[not(./cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@filename = preceding-sibling::cac:AdditionalDocumentReference/cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@filename)]))

CII

Context: /rsm:CrossIndustryInvoice
Test: not(count(//ram:AdditionalReferencedDocument) = count(//ram:AdditionalReferencedDocument[not(./ram:AttachmentBinaryObject/@filename = preceding-sibling::ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject/@filename)]))

Related rules

  • BR-DE-19The IBAN given (BT-84) is not valid
  • BR-DE-20The IBAN of the debited account (BT-91) is not valid
  • BR-DE-21The specification identifier (BT-24) is not the XRechnung identifier
  • BR-DE-23-aCredit transfer is given as payment means, but without account details (BG-17)
  • BR-DE-23-bWith credit transfer, card or direct debit details are also given
  • BR-DE-24-aCard payment is given as payment means, but without card details (BG-18)

All validation rules

Technical explanation by SmartFormular, not tax or legal advice. Rules as of 31 August 2026 (KoSIT validator configuration).