All error codes › DK-R-017
DK-R-017 – For Danish Customers it is mandatory to specify schemeID as "0184" (DK CVR-number) when…
What the rule says
For Danish Customers it is mandatory to specify schemeID as "0184" (DK CVR-number) when PartyLegalEntity/CompanyID is used for AccountingCustomerParty
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-creditnote:CreditNote[$DKSupplierCountry = 'DK' and $DKCustomerCountry = 'DK']/cac:AccountingCustomerParty/cac:Party | ubl-invoice:Invoice[$DKSupplierCountry = 'DK' and $DKCustomerCountry = 'DK']/cac:AccountingCustomerParty/cac:Party
Test (XPath):
not(((boolean(cac:PartyLegalEntity/cbc:CompanyID)) and (normalize-space(cac:PartyLegalEntity/cbc:CompanyID/@schemeID) != '0184')))
Related rules
DK-R-002Danish suppliers MUST provide legal entity (CVR-number)DK-R-003If ItemClassification is provided from Danish suppliers, UNSPSC version 19.05.01 or…DK-R-004, but the # is not allowed as first and last characterDK-R-005For Danish suppliers the following Payment means codes are allowed:DK-R-006For Danish suppliers bank account and registration account is mandatory if payment means…DK-R-007For Danish suppliers PaymentMandate/ID and PayerFinancialAccount/ID are mandatory when…DK-R-008, 04# or 15# (kortartkode), and PayeeFinancialAccount/ID (Giro kontonummer) is mandatory…DK-R-009or 15# the 16 digits instruction Id must be added to the PaymentID egDK-R-010, 73# or 75# (kortartskode), and PayeeFinancialAccount/ID MUST be exactly 8 characters…DK-R-011or 75# the 15-16 digits instruction Id must be added to the PaymentID egDK-R-013For Danish Suppliers it is mandatory to use schemeID when PartyIdentification/ID is used…DK-R-014For Danish Suppliers it is mandatory to specify schemeID as "0184" (DK CVR-number) when…