DK-R-017: For Danish Customers it is mandatory to specify schemeID as "0184" (DK CVR-number) when…
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[DK-R-017]-For Danish Customers it is mandatory to specify schemeID as "0184" (DK CVR-number) when PartyLegalEntity/CompanyID is used for AccountingCustomerParty
not(((boolean(cac:PartyLegalEntity/cbc:CompanyID)) and (normalize-space(cac:PartyLegalEntity/cbc:CompanyID/@schemeID) != '0184')))DK-R-017 is a fatal rule in the country layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
For invoices and credit notes where both the supplier and customer country are DK, when cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID is present, its @schemeID attribute must be 0184 after removing surrounding whitespace. The rule does not require cbc:CompanyID to be present; if it is absent, the rule passes. A document fails validation when cbc:CompanyID is present and its @schemeID is not exactly 0184.
How to fix
Ensure that the customer's cbc:CompanyID element includes the attribute schemeID="0184", e.g. <cbc:CompanyID schemeID="0184">...</cbc:CompanyID>. If no customer CompanyID is needed, omit the element entirely; the rule only applies when it is present.
Guidance on this rule. The original text above is authoritative.
Where to go next
DK-R-017 changed in 2 published Peppol BIS Billing UBL release comparisons:
- DK-R-017 in 3.0.20 → 3.0.21: Severity raised
- DK-R-017 in 3.0.19 → 3.0.20: New rule
Validate an invoice against these rules · All release changes