Peppol BIS Billing 3.0.21 · UBL

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

Peppol BIS Billing 3.0.21 · UBL

fatalbusiness

Original rule text

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

Stored validation assertion
((not(contains(normalize-space(.), ' ')) and contains(' 1A AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XI YE YT ZA ZM ZW ', concat(' ', normalize-space(.), ' '))))

BR-CL-14 is a fatal rule in the business layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.

What this rule requires

This fatal rule requires the country code element (cac:Country/cbc:IdentificationCode in UBL, ram:CountryID in CII) to contain an ISO 3166-1 country code from the list allowed by the rule, with no spaces in the value after whitespace is trimmed. A document fails if the element is empty or whitespace-only, if the code is not in the accepted list (such as a wrong or lower-case code), or if the value contains an internal space.

How to fix

Set the country code element to the applicable two-letter ISO 3166-1 alpha-2 code exactly as listed in the rule, in upper case, for example DE for Germany, FR for France, or US for the United States. Remove any spaces from the value. If the element is empty, populate it with the correct code.

Guidance on this rule. The original text above is authoritative.

Where to go next

No published Peppol BIS Billing UBL release comparison lists a change to BR-CL-14.

Validate an invoice against these rules · All release changes