SE-R-003: Swedish organisation numbers should be numeric
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[SE-R-003]-Swedish organisation numbers should be numeric.
string(number(cbc:CompanyID)) != 'NaN'SE-R-003 is a fatal rule in the country layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
The rule requires that when the supplier party is in Sweden (country code 'SE'), the cbc:CompanyID in the PartyLegalEntity must be numeric. The test uses number(cbc:CompanyID) and checks that the result is not 'NaN', so the value must be convertible to a number. A document fails if the CompanyID contains non-numeric characters or is empty.
How to fix
Set the cbc:CompanyID element to a numeric value, e.g. digits without spaces, hyphens, or other non-numeric characters. If the organisation number contains formatting, remove all non-numeric characters so that number() can convert it.
Guidance on this rule. The original text above is authoritative.
Where to go next
SE-R-003 changed in 1 published Peppol BIS Billing UBL release comparison:
- SE-R-003 in 3.0.17 → 3.0.18: Severity raised
Validate an invoice against these rules · All release changes