Provide the characteristic description no more than once

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 ApplicableProductCharacteristic. The element may occur no more than once.

What the rule means

The rule limits the description of a product characteristic to one element per ApplicableProductCharacteristic. This keeps the characteristic structurally unambiguous.

Please provide the characteristic description no more than once

The description appears more than once for a product characteristic. You can remove the duplicates; the description is optional.

What to do
  1. Locate the affected ApplicableProductCharacteristic.
  2. Remove duplicate ram:Description elements so that no more than one remains.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:ApplicableProductCharacteristic>
  <ram:Description>Description A</ram:Description>
  <ram:Description>Description B</ram:Description>
</ram:ApplicableProductCharacteristic>
✓ Correct
<ram:ApplicableProductCharacteristic>
  <ram:Description>Description</ram:Description>
</ram:ApplicableProductCharacteristic>
Technical details

The test counts the direct ram:Description elements of ApplicableProductCharacteristic and permits a count of 0 or 1.

Where the rule applies

The rule applies to ApplicableProductCharacteristic within the product 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