Skip to main content

BR-DEX-01 Attached document uses a disallowed MIME code

The MIME code of the Attached document (BT-125) must be from the allowed list. In the XRechnung Extension the code application/xml is additionally permitted beyond the codes defined for a binary object.

Problem Description

ERROR

XRechnung extension rule (KoSIT, BR-DEX) · XRechnung 3.0

Interactive pipeline

Click a stage to see what it checks, or type a rule ID to light up the stage that reports it.

Try:

BR-DEX-01 XRechnung extension rule

Reported in stage 3: National rules (CIUS).

Level error: the report recommends rejecting the invoice.

Stage 3 · What it checks

  • The specification identifier in BT-24 selects the rule set, for example XRechnung 3.0 or Peppol BIS Billing 3.0.
  • XRechnung adds the German BR-DE rules: buyer reference (BT-10), seller contact, payment instructions.
  • Peppol adds PEPPOL-EN16931 and country rules. XRechnung applies some PEPPOL-EN16931 rules too.

Example codes

Typical fix

Fill the fields the rule set requires in your master data, such as the Leitweg-ID in BT-10 or the seller contact.

A validator checks an e-invoice in stages. First the file must be well-formed XML that matches the UBL or CII schema (XSD). Then the EN 16931 business rules run: BR core rules, BR-CO calculations, BR-CL code lists, BR-DEC decimals and VAT-category rules such as BR-S. Next come the national or network rules that BT-24 selects: BR-DE for XRechnung, PEPPOL-EN16931 for Peppol BIS Billing. The report lists every failed rule: one error means reject, warnings alone still mean accept. BR-DEX-01: XRechnung extension rule, reported in the stage “National rules (CIUS)”. Rule sets: KoSIT validator 1.6.3 with the XRechnung configuration of 31 Aug 2026 (EN 16931 artefacts 1.3.16), Peppol BIS Billing 3.0.21.

Solution

Set @mimeCode on the embedded binary object to an allowed value (for example application/pdf, image/png), or application/xml when the Extension carries an XML attachment. If you do not need Extension attachment types, the standard XRechnung CIUS profile avoids this rule.

Quick actions

Context and Significance

This XRechnung Extension rule only fires when the invoice uses the Extension profile, which widens the binary-object MIME list to also allow application/xml.

Valid Examples

  • EmbeddedDocumentBinaryObject with mimeCode="application/pdf"
  • Extension attachment with mimeCode="application/xml"

Invalid Examples

  • EmbeddedDocumentBinaryObject with mimeCode="application/zip"

Code Examples

Valid XML
<cac:AdditionalDocumentReference>
  <cbc:ID>REP-01</cbc:ID>
  <cac:Attachment>
    <cbc:EmbeddedDocumentBinaryObject mimeCode="application/xml"
      filename="detail.xml">UEsDBB...</cbc:EmbeddedDocumentBinaryObject>
  </cac:Attachment>
</cac:AdditionalDocumentReference>
Invalid XML
<cac:AdditionalDocumentReference>
  <cbc:ID>REP-01</cbc:ID>
  <cac:Attachment>
    <cbc:EmbeddedDocumentBinaryObject mimeCode="application/zip"
      filename="detail.zip">UEsDBB...</cbc:EmbeddedDocumentBinaryObject>
  </cac:Attachment>
</cac:AdditionalDocumentReference>

Affected Fields

Validation Tools