Disallowed code list for ClassCode

Error FX-SCH-A-001145 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 the @listID attribute on ram:ClassCode is not included in the code list allowed by this rule. The test also accepts an empty value.

What the rule means

This value associates the product classification code with a code list. A disallowed list value can prevent the code from being classified unambiguously.

Please provide an allowed code list for `ram:ClassCode`

A value is provided for @listID on ram:ClassCode, but this rule does not allow it. You can check the value against the permitted code list.

What to do
  1. Find ram:ClassCode in the invoice line’s product classification.
  2. Check the value of @listID against the permitted code list.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty value or a value listed in enumeration 9 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to ram:ClassCode within 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($codeValue9)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=9]/enumeration[@value=$codeValue9]