Allowed shipping party country code

Error FX-SCH-A-000805 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 country code list used by this rule.

What the rule means

The code list defines which values are allowed as country identifiers. A different value does not identify the country of the shipping party’s address with a code recognized by this rule.

Please check the country code in the shipping party address

The value of ram:CountryID in the shipping party’s address is not accepted by this rule. Leave it empty or use a value included in the applicable code list.

What to do
  1. Check the value of ram:CountryID in ram:PostalTradeAddress.
  2. Leave the value empty or use a value included in the code list.
  3. Generate the invoice again and validate it.
Good to know

For this rule, an empty value or an entry from code list 10 is allowed.

Technical details

The test accepts an empty value or a value present in the code list identified by 10.

Where the rule applies

The rule applies to ram:CountryID in ram:PostalTradeAddress of ram:ShipFromTradeParty.

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