Allowed country value

Error FX-SCH-A-000921 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 non-empty and does not match a value in the country code list used by this rule.

What the rule means

The country value is checked against a defined code list. A value not listed there cannot be recognized as an allowed country value.

Please use an allowed country value for the payee’s address

The value entered in ram:CountryID is not included in the country code list used by this rule. Change it to a value from that list.

What to do
  1. Check the value of ram:CountryID in the payee’s address.
  2. Replace any unlisted value with a value from the country code list used by this rule.
  3. Generate the invoice again and validate it again.
Technical details

The test permits an empty value; otherwise, the value of ram:CountryID must occur in the code list with identifier 10.

Where the rule applies

Applies to the value of ram:CountryID in the postal address of the payee’s legal organization.

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