The country identifier of the delivery address must be allowed

Error FX-SCH-A-001119 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 found in the code list used by this rule. The test accepts an empty checked code value or a value contained in code list ID 10.

What the rule means

ram:CountryID associates the postal address with a country. A value that is not allowed cannot be associated with a valid country entry under this rule.

Please use an allowed country identifier for the delivery address

The value of ram:CountryID in the postal address of the ultimate ship-to party does not match an allowed entry in the checked code list. The rule accepts an empty checked code value or a value listed there.

What to do
  1. Locate ram:CountryID in the postal address of the ultimate ship-to party and check its value.
  2. Compare the value with the entries in the code list used by this rule.
  3. Generate the invoice again and validate it.
Technical details

The test passes if $codeValue10 is empty or occurs as an enumeration/@value in codedb/cl[@id=10].

Where the rule applies

The rule applies to the value of ram:CountryID in the postal address of the ultimate ship-to party of an invoice line.

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