Use an allowed country code

Error FX-SCH-A-000443 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 included in the code list used by this rule.

What the rule means

The code list defines which country values are allowed for ram:CountryID.

Please use an allowed country code for the seller’s address

The value of ram:CountryID in the seller’s address is not allowed by the applicable code list. Replace it with a value listed there.

What to do
  1. Find ram:CountryID in ram:PostalTradeAddress.
  2. Check its value against the code list used by this rule.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty code value or a value listed as an enumeration in code list 7.

Where the rule applies

The rule applies to ram:CountryID in the seller’s postal address.

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