Include a list identifier with the classification code

Error FX-SCH-A-000296 Factur-X

Attribute '@listID' is required in this context.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The listID attribute is missing from ram:ClassCode. The attribute is required in this context.

What the rule means

The list identifier states which code list the classification code belongs to. Without this attribute, the code's list association is not fully specified.

Please add the list identifier to the classification code

The product's classification code is missing its list identifier. Add the missing attribute so the code's list association is specified.

What to do
  1. Locate the affected ram:ClassCode in DesignatedProductClassification.
  2. Add the listID attribute to the element.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:DesignatedProductClassification>
  <ram:ClassCode>123</ram:ClassCode>
</ram:DesignatedProductClassification>
✓ Correct
<ram:DesignatedProductClassification>
  <ram:ClassCode listID="...">123</ram:ClassCode>
</ram:DesignatedProductClassification>
Technical details

The test directly checks whether the listID attribute is present on ram:ClassCode.

Where the rule applies

The rule applies to ram:ClassCode within DesignatedProductClassification of an invoice-line product.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedTradeProduct/ram:DesignatedProductClassification/ram:ClassCode
Test expression (assert/@test)
@listID