Allowed product classification identifier

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 provided for @listID on ram:ClassCode is not in the permitted value list. An empty checked code value is exempt from this check.

What the rule means

The permitted value list limits the identifiers that can be used for a product classification code. A value not in the list cannot be assigned to this classification in accordance with the rule.

Please use an allowed identifier for the product classification code

The identifier on ram:ClassCode is not in the permitted value list. You can compare the value with an entry in that list.

What to do
  1. Locate the affected ram:ClassCode in the product classification.
  2. Check the value of @listID against the value list permitted by this rule.
  3. Replace a value that is not listed with an allowed value.
  4. Regenerate the invoice and check it again.
Technical details

The rule permits an empty checked code value; otherwise, the value must occur in the enumeration of code list 9.

Where the rule applies

The rule applies to the @listID attribute of ram:ClassCode within a product classification (ram:DesignatedProductClassification) on 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]