XRechnung error codes explained
The check tells you what is wrong, in the language of the standard. This page translates the most common codes into plain English; every code has its own page with cause, fix and XML example. "BT-…" is the field number in EN 16931 (business term), "BR-DE-…" are the German national rules of XRechnung.
Errors make the invoice invalid. Warnings do not, but some recipients still reject the invoice.
German national rules (BR-DE)
| Code | Meaning | Type |
|---|---|---|
| BR-DE-1 | Payment instructions (BG-16) missing | Error |
| BR-DE-2 | Seller contact (BG-6) missing | Error |
| BR-DE-3 | Seller city (BT-37) missing | Error |
| BR-DE-4 | Seller post code (BT-38) missing | Error |
| BR-DE-5 | Seller contact point (BT-41) missing | Error |
| BR-DE-6 | Seller phone number (BT-42) missing | Error |
| BR-DE-7 | Seller e-mail address (BT-43) missing | Error |
| BR-DE-8 | Buyer city (BT-52) missing | Error |
| BR-DE-9 | Buyer post code (BT-53) missing | Error |
| BR-DE-10 | Deliver-to city (BT-77) missing | Error |
| BR-DE-11 | Deliver-to post code (BT-78) missing | Error |
| BR-DE-14 | VAT rate (BT-119) missing in the VAT breakdown | Error |
| BR-DE-15 | Buyer reference (BT-10) missing | Error |
| BR-DE-16 | Seller VAT ID or tax number missing | Error |
| BR-DE-17 | Invoice type code (BT-3) not allowed | Warning |
| BR-DE-18 | Early payment discount wrongly formatted | Error |
| BR-DE-19 | IBAN for credit transfer invalid | Warning |
| BR-DE-21 | Specification identifier (BT-24) does not match XRechnung | Warning |
| BR-DE-22 | Duplicate attachment file names | Error |
| BR-DE-23 | Credit transfer without account details | Error |
| BR-DE-24 | Card payment without card details | Error |
| BR-DE-25 | Direct debit without direct-debit details | Error |
| BR-DE-26 | Corrected invoice without reference to the original | Warning |
| BR-DE-27 | Seller phone number too short | Warning |
| BR-DE-28 | Seller e-mail address formally wrong | Warning |
| BR-DE-30 | Direct debit without creditor ID (BT-90) | Error |
| BR-DE-31 | Direct debit without the customer's account (BT-91) | Error |
| BR-DE-20 | IBAN for direct debit invalid | Warning |
Transitional rules (BR-TMP)
| Code | Meaning | Type |
|---|---|---|
| BR-DE-TMP-32 | No delivery or service date | Notice |
| BR-TMP-2 | External attachment without a valid URL (BT-124) | Error |
| BR-TMP-3 | Price base quantity differs between gross and net price | Error |
| BR-TMP-4 | Attachment with several descriptions | Warning |
| BR-TMP-5 | Several files in one attachment block | Warning |
| BR-TMP-6 | Date in UBL not in YYYY-MM-DD format | Warning |
| BR-TMP-7 | Date in CII not in format 102 (YYYYMMDD) | Warning |
Clean vehicles (BR-DE-CVD)
Only for invoices for vehicles to public buyers under Germany's Clean Vehicles Procurement Act.
| Code | Meaning | Type |
|---|---|---|
| BR-DE-CVD-01 | Vehicle invoice without contract number (BT-12) | Error |
| BR-DE-CVD-02 | Vehicle invoice without tender or lot number (BT-17) | Error |
| BR-DE-CVD-03 | No invoice line with vehicle details | Error |
| BR-DE-CVD-04 | Vehicle class not allowed | Error |
| BR-DE-CVD-05 | Value of the "cva" attribute not allowed | Error |
| BR-DE-CVD-06 | Vehicle class and "cva" not in the same line | Error |
| BR-TMP-CVD-01 | Unknown scheme for the item classification | Error |
XRechnung Extension (BR-DEX)
Only for invoices in the Extension format (sub-lines, third-party payments).
| Code | Meaning | Type |
|---|---|---|
| BR-DEX-01 | Attachment file type not allowed (Extension) | Error |
| BR-DEX-02 | Sum of sub-lines does not match | Warning |
| BR-DEX-03 | Sub-line without VAT details | Error |
| BR-DEX-04 | Invalid scheme for a party identifier (Extension) | Error |
| BR-DEX-05 | Invalid scheme for the registration number (Extension) | Error |
| BR-DEX-06 | Invalid scheme for the item identifier (Extension) | Error |
| BR-DEX-07 | Invalid scheme for the electronic address (Extension) | Error |
| BR-DEX-08 | Invalid scheme for the delivery location identifier (Extension) | Error |
| BR-DEX-09 | Amount due does not match (with third-party payments) | Error |
| BR-DEX-10 | Third-party payment: BT-DEX-001 missing | Error |
| BR-DEX-11 | Third-party payment: BT-DEX-002 missing | Error |
| BR-DEX-12 | Third-party payment: BT-DEX-003 missing | Error |
| BR-DEX-13 | Third-party payment: too many decimals | Error |
| BR-DEX-14 | Third-party payment: wrong currency | Error |
| BR-DEX-15 | CII file with sub-lines | Warning |
Calculation rules (BR-CO)
| Code | Meaning | Type |
|---|---|---|
| BR-CO-09 | VAT ID without country prefix | Error |
| BR-CO-10 | Sum of line amounts does not match | Error |
| BR-CO-13 | Net total does not match | Error |
| BR-CO-14 | VAT total does not match | Error |
| BR-CO-15 | Gross total ≠ net + VAT | Error |
| BR-CO-16 | Amount due does not match | Error |
| BR-CO-17 | VAT amount per rate wrongly calculated | Error |
| BR-CO-18 | No VAT breakdown | Error |
| BR-CO-26 | Seller cannot be identified | Error |
VAT and mandatory content
| Code | Meaning | Type |
|---|---|---|
| BR-S-08 | Taxable amount for the standard rate does not match | Error |
| BR-S-09 | VAT amount for the standard rate wrongly calculated | Error |
| BR-AE-10 | Reverse charge without a note | Error |
| BR-E-10 | VAT exemption without a reason | Error |
| BR-16 | No invoice line | Error |
Peppol rules in XRechnung 3.0
| Code | Meaning | Type |
|---|---|---|
| PEPPOL-EN16931-R001 | Business process identifier (BT-23) missing | Error |
| PEPPOL-EN16931-R008 | Empty elements in the file | Error |
Structure errors (XSD)
"cvc-complex-type…" or "Element … not expected": the XML does not match the schema (UBL 2.1 or UN/CEFACT CII D16B). The cause is almost always a wrong order of elements or an element in the wrong place. The only real fix is to generate the file with a library instead of by hand.
See every code in context: check a file. The result names the code and message and links to the matching explanation.
Codes and original texts: KoSIT's published validation configuration for XRechnung 3.0.2.
Information, not legal or tax advice.