Peppol BIS Billing 3.0 · rule
UBL-CR-591
What does UBL-CR-591 mean? A UBL invoice should not include the InvoiceLine Item OriginCountry Name
Why did my invoice fail UBL-CR-591?
The official rule states: "A UBL invoice should not include the InvoiceLine Item OriginCountry Name". The Name element under InvoiceLine/Item (Item/OriginCountry) exists in the generic UBL 2.1 schema but is not mapped to any EN 16931 business term, so a core-compliant invoice must leave it out. Receivers validating against EN 16931 will flag it because data in unmapped elements cannot be reliably processed. EN 16931 carries the item origin country (BT-159) only as cac:OriginCountry/cbc:IdentificationCode (an ISO 3166-1 code), not as a country name.
Official rule text
A UBL invoice should not include the InvoiceLine Item OriginCountry Name
Common causes
- Writing the country name (e.g. "Slovenia") into cbc:Name instead of the code into cbc:IdentificationCode
- A mapper populating both name and code fields
How do I fix it?
<cac:OriginCountry> <cbc:IdentificationCode>SI</cbc:IdentificationCode> </cac:OriginCountry>
Related rules
UBL-CR-001 · UBL-CR-002 · UBL-CR-003 · UBL-CR-004 · UBL-CR-005 · UBL-CR-006 · UBL-CR-007 · UBL-CR-008
Paste it into the live demo, or call POST /v1/validate. See the quickstart.