The country code in the end user’s address must be allowed

Error FX-SCH-A-000720 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

A non-empty value of ram:CountryID is not included in the code list designated for countries. This check also accepts an empty value.

What the rule means

A non-empty country code must match an entry in the country code list with identifier 10. This restricts the value to codes designated for countries.

Please use an allowed country code in the end user’s address

The non-empty value of ram:CountryID in the end user’s address is not allowed. The rule accepts an empty value or a value included in the designated country code list.

What to do
  1. Locate ram:CountryID in ram:PostalTradeAddress under ProductEndUserTradeParty.
  2. Check any non-empty value against the code list designated for countries.
  3. Regenerate the invoice and validate it again.
Technical details

The check accepts an empty value of ram:CountryID or a value present in the code list with id=10.

Where the rule applies

The rule checks ram:CountryID in the end user’s postal address under ProductEndUserTradeParty.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:ProductEndUserTradeParty/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]