Allowed country identifier

Error FX-SCH-A-000943 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

A non-empty value in ram:CountryID is not included in the code list used by this rule. An empty value satisfies this test.

What the rule means

The country identifier specifies the country of the payer’s postal address. A non-empty value must match the permitted code list.

Please check the payer’s country identifier

The country identifier in the payer’s postal address does not match the permitted code list. You can adjust the invoice entry or leave the value empty.

What to do
  1. Locate the postal address under ram:PayerTradeParty.
  2. Check the value in ram:CountryID.
  3. Generate the invoice again and validate it again.
Technical details

The test permits an empty value. Otherwise, ram:CountryID is checked against the entries in code list ID 10.

Where the rule applies

The rule applies to ram:CountryID in the postal address of the payer (ram:PayerTradeParty).

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