HomeError code lexicon › BR-CL-14
BR-CL-14 Field BT-40 Code list rules (BR-CL)

Fix BR-CL-14: Seller country code not ISO 3166-1

[BR-CL-14]-Country codes in an invoice MUST be coded using ISO code list 3166-1

BR-CL-14 in your own invoice? Upload the file and find every error in seconds.

What does BR-CL-14 mean?

Country codes in the invoice must be two-letter ISO 3166-1 alpha-2 codes (e.g. DE, AT). Country names are not allowed.

Common causes of BR-CL-14

How to fix BR-CL-14

  1. Find the faulty spot in the XML. Open the XML of the invoice and go to field BT-40 along this XPath://ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountryID
  2. Apply the fix. Code the country code with an alpha-2 code from ISO 3166-1, e.g. 'DE' (Germany), 'AT' (Austria), 'FR' (France), 'IT' (Italy), 'NL' (Netherlands). The rule checks every ram:CountryID, so seller (BT-40), buyer (BT-55) and place of delivery (BT-69). No written-out name, no alpha-3 code.
  3. Validate again. Save the file and validate it again to check that BR-CL-14 is no longer reported.
Concrete fix

Code the country code with an alpha-2 code from ISO 3166-1, e.g. 'DE' (Germany), 'AT' (Austria), 'FR' (France), 'IT' (Italy), 'NL' (Netherlands). The rule checks every ram:CountryID, so seller (BT-40), buyer (BT-55) and place of delivery (BT-69). No written-out name, no alpha-3 code.

XPath//ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountryID

Before / after: the XML example

This is the spot in question before and after the fix (Cross Industry Invoice, ZUGFeRD/Factur-X).

Wrong
<ram:SellerTradeParty>
  <ram:PostalTradeAddress>
    <ram:CountryID>Deutschland</ram:CountryID>
  </ram:PostalTradeAddress>
</ram:SellerTradeParty>
Correct
<ram:SellerTradeParty>
  <ram:PostalTradeAddress>
    <ram:CountryID>DE</ram:CountryID>
  </ram:PostalTradeAddress>
</ram:SellerTradeParty>

Frequent questions about BR-CL-14

Alpha-2 or alpha-3?
Always the two-letter alpha-2 code, e.g. 'DE', not 'DEU'.
Which addresses does the rule cover?
Every ram:CountryID in the document, so the seller (BT-40), buyer (BT-55) and deliver to address (BT-69).

Related error codes

Check BR-CL-14 automatically

Instead of digging through the XML by hand you can validate your ZUGFeRD or XRechnung file online – upload the PDF or the XML and you get every error with rule ID, affected field, fix and XPath, as a readable report or as JSON through the API.

Find every error automatically instead of searching by hand

Upload your ZUGFeRD, Factur-X or XRechnung file – you get every violation back with rule ID, field, fix and XPath.

Validate online for free
Check invoice