At most one ram:Description per product characteristic

Error FX-SCH-A-001144 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:Description occurs more than once in ram:ApplicableProductCharacteristic. The test allows at most one such element.

What the rule means

The description of a product characteristic is stated at most once within ram:ApplicableProductCharacteristic.

Please provide the product characteristic description only once

ram:Description was provided more than once in ram:ApplicableProductCharacteristic. The description may occur there only once.

What to do
  1. Find ram:Description in ram:ApplicableProductCharacteristic.
  2. Make sure the element occurs there no more than once.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ApplicableProductCharacteristic>
  <ram:Description>First description</ram:Description>
  <ram:Description>Second description</ram:Description>
</ram:ApplicableProductCharacteristic>
✓ Correct
<ram:ApplicableProductCharacteristic>
  <ram:Description>Product description</ram:Description>
</ram:ApplicableProductCharacteristic>
Technical details

The XPath counts the child ram:Description elements and requires their number to be no greater than one.

Where the rule applies

The rule applies in ram:ApplicableProductCharacteristic of an invoice line.

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