Disallowed country identifier

Error FX-SCH-A-000898 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 applicable code list. An empty value is allowed by the test condition.

What the rule means

ram:CountryID identifies the country of the invoicer’s postal address. A disallowed country identifier can prevent the country from being classified correctly.

Please use an allowed country identifier in `ram:CountryID`

The country identifier in the invoicer’s postal address is not in the applicable code list. An allowed value makes it possible to classify the country correctly.

What to do
  1. Locate ram:CountryID in the invoicer’s postal address.
  2. Compare its content with the country identifiers allowed for this field.
  3. Generate the invoice again and validate it once more.
Technical details

The test checks whether the value read from ram:CountryID is empty or occurs in the code list identified by 10.

Where the rule applies

The rule applies to ram:CountryID in the invoicer’s postal address under ram:InvoicerTradeParty.

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