Invalid country identifier for the InvoicerTradeParty

Error FX-SCH-A-000902 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 contained in the code list identified by 10. An empty value is also accepted by the test condition.

What the rule means

When provided, the country identifier must match a value allowed by code list 10. A value outside that list cannot identify the country in accordance with the rule.

Please use an allowed country identifier in `ram:CountryID`

The value of ram:CountryID is not recognized by the rule as an allowed country identifier. You can correct the entry using code list 10.

What to do
  1. Locate ram:CountryID in ram:PostalTradeAddress of ram:InvoicerTradeParty.
  2. Check the value against code list 10.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts the value of ram:CountryID if it is empty or found as an enumeration/@value in code list 10.

Where the rule applies

The rule applies to ram:CountryID in the postal address ram:PostalTradeAddress of ram:InvoicerTradeParty.

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