All error codes › DE-R-017
DE-R-017 – The element "Invoice type code" (BT-3) should only contain the following values from…
What the rule says
The element "Invoice type code" (BT-3) should only contain the following values from code list UNTDID 1001: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice), 389 (Self-billed invoice), 381 (Credit note), 875 (Partial construction invoice), 876 (Partial final construction invoice), 877 (Final construction invoice).
How to fix it
Fill in or correct the fields named in the rule (the BT/BG codes tell you which). The test below shows exactly what is checked in the XML. Quickest: validate the invoice to get the exact location and, for amounts, the correct value.
This is a warning, not an error: it does not normally cause a rejection, but it is worth cleaning up.
Paste the XML and see every error with the exact fix and the correct amounts.
Where it is checked in the XML
Context: (/ubl-invoice:Invoice | /ubl-creditnote:CreditNote)[$supplierCountryIsDE and $customerCountryIsDE]
Test (XPath):
cbc:InvoiceTypeCode = $supportedInvAndCNTypeCodes or cbc:CreditNoteTypeCode = $supportedInvAndCNTypeCodes
Related rules
DE-R-001An invoice shall contain information on "PAYMENT INSTRUCTIONS" (BG-16)DE-R-002The group "SELLER CONTACT" (BG-6) shall be providedDE-R-003The element "Seller city" (BT-37) shall be providedDE-R-004The element "Seller post code" (BT-38) shall be providedDE-R-005The element "Seller contact point" (BT-41) shall be providedDE-R-006The element "Seller contact telephone number" (BT-42) shall be providedDE-R-007The element "Seller contact email address" (BT-43) shall be providedDE-R-008The element "Buyer city" (BT-52) shall be providedDE-R-009The element "Buyer post code" (BT-53) shall be providedDE-R-010The element "Deliver to city" (BT-77) shall be provided if the group "DELIVER TO…DE-R-011The element "Deliver to post code" (BT-78) shall be provided if the group "DELIVER TO…DE-R-014The element "VAT category rate" (BT-119) shall be provided