InvoiceGlass

A country code is outside the list · BR-CL-14

  • Severity · Error
  • Applies to · UBL / CII
  • Editorial review pending

The check concerns a country code, such as the country in an address. The field expects a code identifying the country. The pinned 1.3.16 CII list differs from the UBL list for some countries. In 1.3.17 both bindings use the same list for this field.

As of

Who can correct it?

The sender can correct the invoice.

How to fix it

  1. Choose the code for the actual value from the rule release’s country list based on ISO 3166-1. Check that your invoicing software uses the list for the selected format.
  2. XML fields in the affected group · UBL cac:Country/cbc:IdentificationCode · CII ram:CountryID

Rule text and source

Paraphrase · The code for a country code, such as the country in an address must come from the rule release’s country list based on ISO 3166-1.

Message to the sender

Subject: Invoice {invoiceNumber} – A country code is outside the list

Hello,

could you clarify a detail on your invoice {invoiceNumber} dated {issueDate} (BR-CL-14)? The check concerns a country code, such as the country in an address. Please check the code against the list for the invoice format and send us the corrected invoice.

Thank you and kind regards

Example

A German address uses DE. Writing Germany in the code field triggers the rule.

UBL

cac:Country/cbc:IdentificationCode

Fails the rule
<cbc:IdentificationCode>Deutschland</cbc:IdentificationCode>

Corrected
<cbc:IdentificationCode>DE</cbc:IdentificationCode>

CII

ram:CountryID

Fails the rule
<ram:CountryID>Deutschland</ram:CountryID>

Corrected
<ram:CountryID>DE</ram:CountryID>

Rule versions

CEN · EN 16931 (KoSIT) 1.3.16

CEN · EN 16931 1.3.17

Validate a file