errorPeppol BIS 3.0

SE-R-004:Swedish organisation number has wrong length

The seller's Swedish organisation number (organisationsnummer) does not have the required 10 characters. Swedish org numbers are always exactly 10 digits, typically written as XXXXXX-XXXX but stored without the hyphen.

Severity
Fatal
Rule set
Peppol BIS 3.0
Country
All EU
Fix type
AUTO-FIX
Confidence
90%
Category
identifier

Engine Classification

Normalizes the organisation number by removing non-digit characters and padding/trimming to exactly 10 digits

Confidence: 90% · Applied automatically in pipeline

What is SE-R-004?

SE-R-004 is a fatal validation rule defined in the Peppol BIS 3.0 specification. It validates the CompanyID element under Party > PartyLegalEntity in the UBL invoice XML.

When this rule fires, the invoice is non-compliant and will be rejected by Peppol access points and national validation services. The sending system receives a rejection response and the invoice does not reach the buyer.

Target path: cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID

Why This Error Matters

Invoice will be rejected by Swedish validation. Organization number must be 10 digits.

SE-R-004 is a hard failure. Invoices that trigger this rule are rejected at the access point and never reach the recipient. In Peppol networks, this means your sending system receives an MLR (Message Level Response) with a rejection status. The invoice must be corrected and re-sent, adding delay to your payment cycle.

Invoice Navigator can automatically correct this error in your pipeline. The fix is applied with full audit evidence, so your compliance trail remains intact.

Validator Behavior

  • ·Causes invoice rejection
  • ·Rejected by PEPPOL Access Points
  • ·Error returned: SE-R-004
  • ·Specification: Peppol BIS 3.0

How to Fix It

1.

Check the org number

Swedish organisation numbers are always 10 digits: 6 digits, then 4 digits (XXXXXX-XXXX without the hyphen).

2.

Remove formatting

Strip hyphens, spaces, and any other non-digit characters.

3.

Verify the result

The result should be exactly 10 digits. If it is 9 digits, check if a leading zero was dropped.

Before / After

Failing XML
<Invoice>
  <!-- Issue: For Swedish suppliers, organisation numbers consist of 10 ch -->
</Invoice>
Corrected XML
<Invoice>
  <!-- Issue resolved per Peppol BIS 3.0 -->
</Invoice>

Technical Reference

XPathcac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID
SpecPeppol BIS 3.0
Operationnormalize
StrategyNormalizes the organisation number by removing non-digit characters and padding/trimming to exactly 10 digits

Common Causes

  • ·Org number stored with hyphen (556789-1234 = 11 chars)
  • ·Leading zero dropped (567891234 = 9 digits)
  • ·Extra spaces in the value

Seeing this in production? The API handles SE-R-004 automatically. See the fix response →

Commonly Seen In

All invoicing software used by Swedish companies

See Also

Related Errors

Last updated: 27 February 2026

Share this guide:

Handle SE-R-004 Automatically in Your Pipeline

The compliance engine auto-remediates this error with controlled safety policies and evidence pack generation.