Use an allowed country identifier

Error FX-SCH-A-000628 Factur-X

Value of 'ram:ID' 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:ID is not included in the country code list used by this rule. This test also accepts an empty value.

What the rule means

An allowed country value enables the country of origin to be identified consistently.

Please use an allowed country identifier for the country of origin

The ram:ID value for the country of origin was not found in the associated country code list. You can use an allowed country identifier or leave the value empty.

What to do
  1. Check the value of ram:ID in ram:OriginTradeCountry.
  2. Use a value from the country code list allowed by this rule, or leave the value empty.
  3. Regenerate the invoice and validate it again.
Technical details

The test accepts an empty ram:ID value or a value listed in code list 7.

Where the rule applies

The rule applies to ram:ID inside ram:OriginTradeCountry for a product on an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedTradeProduct/ram:OriginTradeCountry/ram:ID
Test expression (assert/@test)
string-length($codeValue7)=0 or document('FACTUR-X_EN16931_codedb.xml')/codedb/cl[@id=7]/enumeration[@value=$codeValue7]