listID required for product classification

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 ram:ClassCode in the product classification is missing the listID attribute.

What the rule means

listID identifies the code list from which the product classification code originates.

Please identify the code list for the product classification

The product classification does not specify which code list is used for ram:ClassCode. You can resolve this by adding that information to the invoice.

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

The @listID test checks only whether the attribute is present.

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)
@listID