Payment terms description at most once

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

Within ram:SpecifiedTradePaymentTerms, ram:Description occurs more than once. This element may occur at most once in this context.

What the rule means

The description contains textual information about the payment terms. A defined occurrence limit keeps the XML structure for this information unambiguous.

Please include the payment terms description only once

The invoice contains multiple ram:Description elements in the payment terms. Only one such element is allowed in this context.

What to do
  1. Locate ram:SpecifiedTradePaymentTerms in the invoice.
  2. Check its ram:Description elements and remove the duplicate occurrence.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradePaymentTerms>
  <ram:Description>Condition A</ram:Description>
  <ram:Description>Condition B</ram:Description>
</ram:SpecifiedTradePaymentTerms>
✓ Correct
<ram:SpecifiedTradePaymentTerms>
  <ram:Description>Condition de paiement</ram:Description>
</ram:SpecifiedTradePaymentTerms>
Technical details

The test counts the direct ram:Description elements in ram:SpecifiedTradePaymentTerms and permits no more than one.

Where the rule applies

The rule applies within ram:SpecifiedTradePaymentTerms at document level.

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