PEPPOL-COMMON-R052: Danish chamber of commerce number (P) MUST be stated in the correct format
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[PEPPOL-COMMON-R052]-Danish chamber of commerce number (P) MUST be stated in the correct format.
(string-length(string()) = 10) and (string-length(translate(substring(string(), 1, 10),'1234567890', '')) = 0)PEPPOL-COMMON-R052 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
For UBL, the rule applies to cbc:EndpointID[@schemeID = '0096'], cac:PartyIdentification/cbc:ID[@schemeID = '0096'], and cbc:CompanyID[@schemeID = '0096']. The element content must be exactly 10 characters long and consist only of digits (0-9). A document fails validation if any of these elements does not meet that pattern.
How to fix
Ensure the relevant element with @schemeID = '0096' contains exactly 10 digits and no other characters. If the value has non-digit characters or a length other than 10, correct it in the source data or system. This applies to any of the three element paths listed.
Guidance on this rule. The original text above is authoritative.
Where to go next
PEPPOL-COMMON-R052 changed in 2 published Peppol BIS Billing UBL release comparisons:
- PEPPOL-COMMON-R052 in 3.0.20 → 3.0.21: Severity raised
- PEPPOL-COMMON-R052 in 3.0.19 → 3.0.20: New rule
Validate an invoice against these rules · All release changes