Skip to content

Fatal: fails the selected checks

BR-DE-22: Attached files must have different file names

In short

BR-DE-22 means two or more files attached to the XRechnung (BT-125) have the same file name. Fix it by giving every attachment a unique name, such as timesheet-march.pdf and timesheet-april.pdf.

On this page

What it means

Every document embedded in an XRechnung (BT-125) has a filename attribute, and no two attachments may share the same file name.

Why it matters

The recipient's system saves the attachments under their file names. Two files with the same name would overwrite each other, so one of them would be lost; XRechnung therefore rejects the invoice.

How to fix it

Rename the files before attaching them so that each name is different, for example by adding a number or a date, and export again. Watch out for software that names every attachment attachment.pdf. In the XML the name is the filename attribute of cbc:EmbeddedDocumentBinaryObject (UBL) or ram:AttachmentBinaryObject (CII).

The rule as published

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

Where XRechnung 3.0 (CII) run it, the rule reads:

Not all filename attributes of the embeddedDocumentBinaryObject elements are unique

Where this rule applies

Rule set Version
XRechnung 3.0 (UBL) 3.0.2
XRechnung 3.0 (UBL credit note) 3.0.2
XRechnung 3.0 (CII) 3.0.2
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether BR-DE-22 still fails, and which other rules do.