Official rule text
[SE-R-004] Swedish organisation numbers consist of 10 characters.
Why this error occurs
The validator evaluates the XPath test above against the context element; the assertion is false for your file.
How to fix it
Compare your file with the rule text and the test expression, adjust the element named in the context, and validate again.
What the validator checks
Checked element (context):
UBL
//cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity[../cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'SE' and cbc:CompanyID]Test (XPath):
string-length(normalize-space(cbc:CompanyID)) = 10CII
rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedLegalOrganization[../ram:PostalTradeAddress/ram:CountryID = 'SE' and ram:ID]Test (XPath):
string-length(normalize-space(ram:ID)) = 10
Check your invoice
Drop your XML or PDF on the validator and every failed rule is linked to its page here. Free, no account, the file is not stored.
Same check via API:
curl -F file=@invoice.xml https://einvoicechecker.com/v1/validateRelated rules
SE-R-001For Swedish suppliers, Swedish VAT-numbers must consist of 14 charactersSE-R-002For Swedish suppliers, the Swedish VAT-numbers must have the trailing 12 characters in…SE-R-003Swedish organisation numbers should be numericSE-R-005For Swedish suppliers, when using Seller tax registration identifier, 'Godkänd för…SE-R-006For Swedish suppliers, only standard VAT rate of 6, 12 or 25 are usedSE-R-007For Swedish suppliers using Plusgiro, the Account ID must be numericSE-R-008For Swedish suppliers using Bankgiro, the Account ID must be numericSE-R-009For Swedish suppliers using Bankgiro, the Account ID must have 7-8 characters
Frequently asked questions
What does SE-R-004 mean?
SE-R-004 is a peppol national rule: Swedish organisation numbers consist of 10 characters.
Will my invoice be rejected because of SE-R-004?
Yes. SE-R-004 is flagged "fatal"; validators (KoSIT, Peppol access points, the German ZRE/OZG-RE portals, KSeF) reject the invoice until it is fixed.
Which formats does SE-R-004 apply to?
Only when the seller (or for some rules the buyer) is in the named country: the rule is triggered by the country code of the party. Dutch rules implement NLCIUS, German rules the XRechnung requirements inside Peppol. Syntax: UBL and CII.
Source: Peppol BIS Billing 3.0.20 national rules (November 2025). Catalogue generated from the official rule sets on 2026-10-15.