Fehlercodes · Peppol BIS 3.0 · SE
Swedish organization number MUST be in the correct format
So lautet die Ablehnung wörtlich: „[PEPPOL-EN16931-R049] PEPPOL-EN16931-R049 fires when a party's legal entity ID (BT-30 / cac:PartyLegalEntity/cbc:CompanyID) declares scheme 0007 (Swedish Organisationsnummer) but the value isn't a valid Swedish org number — 10 digits, all numeric, passing the Luhn checksum. In newer Peppol releases this rule was renamed PEPPOL-COMMON-R049, but the EN16931 label is still returned by many national validators and corporate ingest pipelines.“
The assertion runs on cac:PartyLegalEntity/cbc:CompanyID[@schemeID='0007']. It requires string-length(.) = 10, that every character is a digit, and that the number passes the Swedish Luhn-based check digit. Values like '556677-8899' (with a hyphen), '5566778899X' (11 characters), or '5566778890' (wrong check digit) all fail.
<cac:PartyLegalEntity> <cbc:CompanyID schemeID="0007">556677-8899</cbc:CompanyID> </cac:PartyLegalEntity>
<cac:PartyLegalEntity> <cbc:CompanyID schemeID="0007">5566778899</cbc:CompanyID> </cac:PartyLegalEntity>