Use an allowed country code for the final delivery address

Error FX-SCH-A-000843 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 country code list used by this rule. An empty value also passes this specific test.

What the rule means

An allowed country value associates the delivery address with a country included in the code list. The test also explicitly permits an empty value.

Please use an allowed country code for the final delivery address

The entered value of ram:CountryID is not recognized by the code list used for this test. An empty value also passes this specific test.

What to do
  1. Open ram:CountryID in the postal address under UltimateShipToTradeParty.
  2. Use a value from the country code list allowed by the test, or leave the value empty.
  3. Generate the invoice again and validate it again.
Technical details

The test accepts an empty checked code value or a value listed as an enumeration in code list 10.

Where the rule applies

The rule checks the value of ram:CountryID in the postal address of UltimateShipToTradeParty.

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