Use an allowed country code for the ship-to party

Error FX-SCH-A-001100 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 non-empty value of ram:CountryID is not included in the defined country code list. This check allows an empty value.

What the rule means

An allowed country value identifies the postal address with a country from the defined code list.

Please use an allowed country code for the ship-to party

The value of ram:CountryID is not in the defined country code list. Use an allowed value from that list or leave the element empty.

What to do
  1. Find ram:CountryID in the ship-to party’s postal address.
  2. Check its value against the defined country code list, or leave the element empty.
  3. Generate the invoice again and validate it.
Technical details

An empty value passes this check; otherwise, the value of ram:CountryID must match an entry in the code list identified by 10.

Where the rule applies

This rule applies to the value of ram:CountryID in the ship-to party’s postal address within an invoice line.

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