ram:Description at most once

Error FX-SCH-A-000625 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

ram:SpecifiedTradeProduct contains ram:Description more than once. This element may occur no more than once.

What the rule means

The limit prevents multiple description elements for the same product details. ram:Description is optional here but must not be repeated.

Please include the product description no more than once

ram:Description appears more than once in the invoice line’s product details. The element may be absent or appear once.

What to do
  1. Look for repeated ram:Description elements in ram:SpecifiedTradeProduct.
  2. Remove the extra occurrences so that ram:Description appears no more than once.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeProduct>
  <ram:Description>Produit</ram:Description>
  <ram:Description>Détails</ram:Description>
</ram:SpecifiedTradeProduct>
✓ Correct
<ram:SpecifiedTradeProduct>
  <ram:Description>Produit</ram:Description>
</ram:SpecifiedTradeProduct>
Technical details

The rule counts direct ram:Description child elements of ram:SpecifiedTradeProduct and requires count(ram:Description) <= 1.

Where the rule applies

The rule applies to ram:Description within ram:SpecifiedTradeProduct on an invoice line.

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