Peppol BIS Billing 3.0.21 · UBL

NO-R-001: For Norwegian suppliers, a VAT number MUST be the country code prefix NO followed by a…

Peppol BIS Billing 3.0.21 · UBL

fatalcountry

Original rule text

[NO-R-001]-For Norwegian suppliers, a VAT number MUST be the country code prefix NO followed by a valid Norwegian organization number (nine numbers) followed by the letters MVA.

Stored validation assertion
cac:PartyTaxScheme[normalize-space(cac:TaxScheme/cbc:ID) = 'VAT']/substring(cbc:CompanyID, 1, 2)='NO' and matches(cac:PartyTaxScheme[normalize-space(cac:TaxScheme/cbc:ID) = 'VAT']/substring(cbc:CompanyID,3), '^[0-9]{9}MVA$')
and u:mod11(substring(cac:PartyTaxScheme[normalize-space(cac:TaxScheme/cbc:ID) = 'VAT']/cbc:CompanyID, 3, 9)) or not(cac:PartyTaxScheme[normalize-space(cac:TaxScheme/cbc:ID) = 'VAT']/substring(cbc:CompanyID, 1, 2)='NO')

NO-R-001 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

This fatal rule applies when the derived supplier country is NO. It checks the VAT number in cac:PartyTaxScheme where cac:TaxScheme/cbc:ID is VAT. The test requires that if the cbc:CompanyID starts with NO, then the remainder must match ^[0-9]{9}MVA$ and the 9 digits must pass the Norwegian mod11 checksum. Because of the final or not(...) clause, a VAT number that does not start with NO passes automatically; therefore the rule fails only when the VAT number begins with NO but is otherwise invalid. The message states that Norwegian suppliers’ VAT numbers must have the NO prefix, which is stricter than the actual test, which does not enforce the NO prefix when the VAT number lacks it.

How to fix

If the document is rejected by this rule, locate the VAT cbc:CompanyID under cac:PartyTaxScheme with cac:TaxScheme/cbc:ID = VAT. If it starts with NO, correct it to exactly NO followed by 9 digits and then MVA, and ensure the 9 digits satisfy the mod11 check. If the supplier is Norwegian but the VAT number does not start with NO, the rule as written will not reject it, but to align with the message and expected format you should set it to NO + 9 digits + MVA.

Guidance on this rule. The original text above is authoritative.

Where to go next

No published Peppol BIS Billing UBL release comparison lists a change to NO-R-001.

Validate an invoice against these rules · All release changes