BR-09
The seller address has no country code (BT-40).
ErrorEN 16931UBLCII
Why it happens
Country was omitted, or written as a country name rather than a code.
How to fix it
Set BT-40 — cac:PostalAddress/cac:Country/cbc:IdentificationCode (UBL), ram:PostalTradeAddress/ram:CountryID (CII) — to an ISO 3166-1 alpha-2 code such as DE, BE or GB. 'Germany' is not valid; 'DE' is.
The official rule
EN 16931, EnglishThe Seller postal address (BG-5) shall contain a Seller country code (BT-40).
Technical detail — where the rule is evaluated and the exact test
| Syntax | Context and assertion |
|---|---|
| UBL | cac:AccountingSupplierParty/cac:Party/cac:PostalAddress |
normalize-space(cac:Country/cbc:IdentificationCode) != '' | |
| CII | /rsm:CrossIndustryInvoice |
normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountryID) != '' |
Check your own invoice
Paste or drop your UBL or CII file into the free validator. It runs the official EN 16931 ruleset plus the German XRechnung layer and lists every rule that fires, BR-09 included — no signup, no limit.
Validate an e-invoice freeFixing the data at source instead? The CSV converter builds a compliant invoice from a spreadsheet export.