Use an allowed listID value

Error FX-SCH-A-000297 Factur-X

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

What the rule means

An allowed value associates the product classification code with a recognized code list.

Please use an allowed value for `listID`

The supplied listID value was not found in the associated code list. You can use a value from the allowed list or leave it empty.

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

The test accepts an empty ram:ClassCode value or a value listed in code list 6.

Where the rule applies

The rule applies to the listID attribute of ram:ClassCode in the product classification of an invoice line.

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