BR-DEX-01: An attached document (BT-125) uses a MIME code that is not allowed
An attached document (BT-125) uses a MIME code that is not allowed. In the Extension, application/xml is allowed in addition to the standard list.
- Severity
- Error the invoice fails validation.
- Rule set
- XRechnung 3.0.2 (KoSIT) · XRechnung 3.0.2 rules (BR-DE, BR-DEX, BR-TMP)
- Where it applies
- XRechnung 3.0 in UBL and CII (Germany)
- ZUGFeRD / Factur-X with the XRECHNUNG profile
- Business terms
- BT-125 Attached document
Official rule text
Das Element … "Attached Document" (BT-125) benutzt einen nicht zulässigen MIME-Code: …. Im Falle einer Extension darf zusätzlich zu der Liste der mime codes (definiert in Abschnitt 8.2, "Binary Object") der MIME-Code application/xml genutzt werden.
The official text is published in German by KoSIT. The explanation below restates it in English.
What the rule checks
An attached document (BT-125) uses a MIME code that is not allowed. In the Extension, application/xml is allowed in addition to the standard list.
How to fix it
Use application/pdf, image/png, image/jpeg, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.oasis.opendocument.spreadsheet or (Extension) application/xml.
Then check the corrected file again: one fix often changes the result of related rules. If the file was rejected and you cannot change the system that created it, the fix page shows which fields to correct.
Check your invoice against the official rules
Upload an XML or PDF invoice. You get every failing rule with an explanation, the fix and the line in the file. Free, without sign-up; the check on this page stores nothing.
Processed in memory and not stored. No sign-up needed.
EInvoiceEngine