Account
English

SE-R-004: Swedish organisation numbers consist of 10 characters

Peppol national rule · Error · UBL, CII

StandardPeppol BIS Billing 3.0 country rules (NL, DE, IT, SE, DK, NO, GR, IS)CountrySwedenSeverityError: the invoice is rejectedSyntaxUBL, CIIApplies toOnly 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.

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)) = 10

CII

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.

Check your invoice →

Same check via API:

curl -F file=@invoice.xml https://einvoicechecker.com/v1/validate

Related rules

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.