Allowed value for the country identifier

Error FX-SCH-A-000435 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 check. A non-empty value must be allowed in that list.

What the rule means

The country identifier associates the postal address with a country. A non-empty value from the specified code list ensures that the country is identified consistently and unambiguously.

Please use an allowed value for the tax representative’s country identifier

The value of ram:CountryID in the tax representative’s postal address is not in the allowed country code list. The check also permits an empty value.

What to do
  1. Locate ram:CountryID in the tax representative’s postal address.
  2. Use a value allowed by the country code list, or leave the value empty.
  3. Regenerate the invoice and validate it again.
Technical details

The test accepts an empty value or a value listed as an enumeration in codedb/cl with id 7.

Where the rule applies

The rule applies to the value of ram:CountryID in the postal address of the seller’s tax representative.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:CountryID
Test expression (assert/@test)
string-length($codeValue7)=0 or document('FACTUR-X_BASIC-WL_codedb.xml')/codedb/cl[@id=7]/enumeration[@value=$codeValue7]