At most one product description

Error FX-SCH-A-001149 Factur-X

Element 'ram:Description' may occur at maximum 1 times.

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

A referenced product contains more than one ram:Description element. This element may occur at most once within ram:IncludedReferencedProduct.

What the rule means

The structure allows at most one description for each referenced product. Multiple descriptions in this place do not match the required XML structure.

Please use at most one description for each referenced product

ram:Description appears more than once for a referenced product. You can adjust the entry so that it contains at most one description.

What to do
  1. Locate the affected ram:IncludedReferencedProduct.
  2. Remove any extra ram:Description elements so that at most one remains.
  3. Regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<ram:IncludedReferencedProduct>
  <ram:Description>A</ram:Description>
  <ram:Description>B</ram:Description>
</ram:IncludedReferencedProduct>
✓ Correct
<ram:IncludedReferencedProduct>
  <ram:Description>A</ram:Description>
</ram:IncludedReferencedProduct>
Technical details

The rule counts the direct ram:Description elements in the context of ram:IncludedReferencedProduct and allows zero or one.

Where the rule applies

The rule applies to ram:Description within a referenced product (ram:IncludedReferencedProduct) on an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedTradeProduct/ram:IncludedReferencedProduct
Test expression (assert/@test)
count(ram:Description)<=1