InvoiceValidator.eu

PEPPOL-COMMON-R052

warningPeppol BIS Billing 3.0profileCIIUBL

Danish chamber of commerce number (P) MUST be stated in the correct format.

Why it fails

A Danish P-number (production unit) is malformed.

How to fix it

Ten digits, no spaces.

What the validator checks

CII — context ram:URIID[@schemeID = '0096'] | ram:ID[@schemeID = '0096'] | ram:GlobalID[@schemeID = '0096']

(string-length(string()) = 10) and (string-length(translate(substring(string(), 1, 10),'1234567890', '')) = 0)

UBL — context cbc:EndpointID[@schemeID = '0096'] | cac:PartyIdentification/cbc:ID[@schemeID = '0096'] | cbc:CompanyID[@schemeID = '0096']

(string-length(string()) = 10) and (string-length(translate(substring(string(), 1, 10),'1234567890', '')) = 0)

Related rules

Part of PEPPOL-COMMON — Peppol identifier formats.

Check your own invoice against PEPPOL-COMMON-R052

…or paste the XML instead

Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.

This is a Peppol BIS Billing 3.0 rule: an invoice can be perfectly valid EN 16931 and still be rejected by it.