DE-R-017:Invalid invoice type code. German invoices only allow specific type codes:...
Invalid invoice type code. German invoices only allow specific type codes: 326 (partial), 380 (commercial), 384 (corrected), 389 (self-billed), 381 (credit note), 875-877 (construction).
Engine Classification
Ensure seller postal code is present for XRechnung compliance
Confidence: 80% · Applied automatically in pipeline
What is DE-R-017?
DE-R-017 is a fatal validation rule defined in the EN 16931 specification (DEU national rules). It validates the PostalZone element under Party > PostalAddress in the UBL invoice XML.
When this rule fires, the invoice is non-compliant and will be rejected by Peppol access points and national validation services. The sending system receives a rejection response and the invoice does not reach the buyer.
Target path: //cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:PostalZone
Why This Error Matters
Invoice will be rejected by German XRechnung validators. Germany has additional mandatory fields beyond EN16931 baseline, including seller contact details, complete addresses, and buyer reference (Leitweg-ID).
DE-R-017 is a hard failure. Invoices that trigger this rule are rejected at the access point and never reach the recipient. In Peppol networks, this means your sending system receives an MLR (Message Level Response) with a rejection status. The invoice must be corrected and re-sent, adding delay to your payment cycle.
Invoice Navigator can automatically correct this error in your pipeline. The fix is applied with full audit evidence, so your compliance trail remains intact.
Validator Behavior
- ·Causes invoice rejection
- ·Rejected by XRechnung endpoints
- ·Error returned: DE-R-017
- ·Specification: EN 16931
Before / After
<Invoice> <cbc:InvoiceTypeCode>INVALID_CODE</cbc:InvoiceTypeCode> </Invoice>
<Invoice> <cbc:InvoiceTypeCode>VALID_CODE</cbc:InvoiceTypeCode> </Invoice>
Technical Reference
//cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:PostalZoneCommon Causes
- ·Invoice type code not valid for German e-invoicing
- ·BT-3 must be 326, 380, 384, 389, 381, 875, 876, or 877
- ·cbc:InvoiceTypeCode contains unsupported value
- ·German validation limits allowed invoice types
- ·UNTDID 1001 code not in XRechnung permitted list
Seeing this in production? The API handles DE-R-017 automatically. See the fix response →
See Also
Last updated: 27 February 2026
Handle DE-R-017 Automatically in Your Pipeline
The compliance engine auto-remediates this error with controlled safety policies and evidence pack generation.