PEPPOL-COMMON-R049: Swedish organization number MUST be stated in the correct format
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[PEPPOL-COMMON-R049]-Swedish organization number MUST be stated in the correct format.
string-length(normalize-space()) = 10 and string(number(normalize-space())) != 'NaN' and u:checkSEOrgnr(normalize-space())PEPPOL-COMMON-R049 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
The rule requires that the value in cbc:EndpointID[@schemeID = '0007'], cac:PartyIdentification/cbc:ID[@schemeID = '0007'], or cbc:CompanyID[@schemeID = '0007'] is a Swedish organization number in the correct format. The value, after ignoring surrounding whitespace, must be exactly 10 characters long, be convertible to a number, and pass the u:checkSEOrgnr function. If any of these conditions is not met, the document is rejected.
How to fix
Set the relevant element with schemeID = '0007' to a valid Swedish organization number. It must be 10 characters long after trimming whitespace, be numeric, and pass the u:checkSEOrgnr validation. If you are unsure what passes that function, check the rule's implementation or use a known valid Swedish organization number.
Guidance on this rule. The original text above is authoritative.
Where to go next
PEPPOL-COMMON-R049 changed in 2 published Peppol BIS Billing UBL release comparisons:
- PEPPOL-COMMON-R049 in 3.0.15 → 3.0.17: Test expression rewritten
- PEPPOL-COMMON-R049 in 3.0.10 → 3.0.15: New rule
Validate an invoice against these rules · All release changes