Allowed country value for the payer

Error FX-SCH-A-000939 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 neither empty nor present in the code list defined for this element.

What the rule means

ram:CountryID identifies the country of the postal address. A value that is not allowed cannot identify a country using a code accepted by this rule.

Please use an allowed country code for the payer

ram:CountryID in the payer's postal address contains a value that is not in the allowed code list. You can check it against the list that applies to this element.

What to do
  1. Check the value in ram:CountryID in the payer's postal address.
  2. Leave the value empty or use a country code allowed by the code list.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty value or a value from the enumeration of code list ID 10 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the value of ram:CountryID in the payer's postal address.

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