EN16931 / XRechnung / Peppol BIS 3 Validator

PEPPOL-COMMON-R042

fatal UBL

Rule text

[PEPPOL-COMMON-R042]-Danish organization number (CVR) MUST be stated in the correct format.

Where the rule is checked

SyntaxSeverityContext (XPath)Test (XPath)
Peppol-UBLfatalcbc:EndpointID[@schemeID = '0184'] | cac:PartyIdentification/cbc:ID[@schemeID = '0184'] | cbc:CompanyID[@schemeID = '0184'](string-length(string()) = 10 and substring(string(), 1, 2) = 'DK' and string-length(translate(substring(string(), 3, 8), '1234567890', '')) = 0) or (string-length(string()) = 8) and (string-length(translate(substring(string(), 1, 8),'1234567890', '')) = 0)

Source: Peppol BIS Billing 3.0 Schematron, UBL (OpenPeppol, docs.peppol.eu validation artefacts 3.0.21).

Check your invoice against this rule