Payee country code

Error FX-SCH-A-000917 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 included in the code list assigned to the country.

What the rule means

ram:CountryID identifies the country of the postal address. The rule permits an empty value or a value from the associated code list.

Please use an allowed country code for the payee

The value in ram:CountryID of the postal address is not allowed. It must be empty or come from the associated code list.

What to do
  1. Locate ram:CountryID in PostalTradeAddress under PayeeTradeParty.
  2. Check the value and use only an entry from the associated code list or an empty value.
  3. Regenerate the invoice and validate it again.
Technical details

The check accepts an empty string or a value listed in FACTUR-X_EXTENDED_codedb.xml under code list ID 10.

Where the rule applies

The rule applies to the value of ram:CountryID in the payee’s postal address under PayeeTradeParty.

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