SE-R-004: Swedish organisation numbers consist of 10 characters
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[SE-R-004]-Swedish organisation numbers consist of 10 characters.
string-length(normalize-space(cbc:CompanyID)) = 10SE-R-004 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 applies to the supplier's legal entity when its postal address country is Sweden (SE) and a cbc:CompanyID is present. The cbc:CompanyID value, after ignoring surrounding whitespace, must be exactly 10 characters long. If it is not, the document fails validation.
How to fix
For a Swedish supplier (cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'SE') with a cbc:CompanyID, set cbc:CompanyID to a value that is exactly 10 characters long, not counting leading or trailing spaces.
Guidance on this rule. The original text above is authoritative.
Where to go next
SE-R-004 changed in 1 published Peppol BIS Billing UBL release comparison:
- SE-R-004 in 3.0.17 → 3.0.18: Severity raised
Validate an invoice against these rules · All release changes