Allowed country code for the invoicee

Error FX-SCH-A-000876 Factur-X

Value of 'ram:CountryID' is not allowed.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The value of ram:CountryID is not included in the list of values allowed for the country designation.

What the rule means

An allowed country value identifies the country of the invoicee’s postal address.

Please use an allowed country code for the invoicee

The value of ram:CountryID in the invoicee’s address is not allowed. Use a value from the applicable code list.

What to do
  1. Locate ram:CountryID in the invoicee’s postal address.
  2. Check its value against the code list applicable to the country designation.
  3. Regenerate the invoice and validate it again.
Technical details

The rule compares the value of ram:CountryID with entries in the code list identified as 10; this test does not reject an empty value.

Where the rule applies

The rule applies to the value of ram:CountryID in the invoicee’s postal address.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:InvoiceeTradeParty/ram:PostalTradeAddress/ram:CountryID
Test expression (assert/@test)
string-length($codeValue10)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=10]/enumeration[@value=$codeValue10]