PEPPOL-COMMON-R053: Danish ERSTORG number (SE) MUST be stated in the correct format
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[PEPPOL-COMMON-R053]-Danish ERSTORG number (SE) MUST be stated in the correct format.
(string-length(string()) = 10 and substring(string(), 1, 2) = 'DK' and string-length(translate(substring(string(), 3, 8), '1234567890', '')) = 0)PEPPOL-COMMON-R053 is a fatal rule in the format layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
This rule requires that any cbc:EndpointID, cac:PartyIdentification/cbc:ID, or cbc:CompanyID element carrying @schemeID = '0198' contains a value exactly 10 characters long, beginning with the uppercase letters DK, followed by 8 digits. Because the rule is severity fatal, an invoice with any such value that does not match this exact pattern is rejected. The test checks total length 10, first two characters equal DK (case-sensitive), and that the remaining 8 characters consist only of digits.
How to fix
Set the value of the affected element(s) to a 10-character string: two uppercase letters DK followed by exactly 8 digits, for example DK12345678. Ensure there are no spaces, hyphens, lowercase letters, or extra characters. If the value is correct in the source system, check that the element carries the correct schemeID='0198' attribute; the rule only applies to these elements with that scheme.
Guidance on this rule. The original text above is authoritative.
Where to go next
PEPPOL-COMMON-R053 changed in 2 published Peppol BIS Billing UBL release comparisons:
- PEPPOL-COMMON-R053 in 3.0.20 → 3.0.21: Severity raised
- PEPPOL-COMMON-R053 in 3.0.19 → 3.0.20: New rule
Validate an invoice against these rules · All release changes