At most one product characteristic value

Error FX-SCH-A-000384 Factur-X

Element 'ram:Value' 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 product characteristic contains more than one ram:Value element. This element may occur at most once in each ram:ApplicableProductCharacteristic.

What the rule means

A product characteristic can be expressed by at most one value. Multiple values in the same place do not meet the required XML structure.

Please provide at most one value for each product characteristic

ram:Value appears more than once for a product characteristic. You can adjust the entry so that it contains at most one value.

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

The rule checks the number of direct ram:Value elements in the context of ram:ApplicableProductCharacteristic and allows zero or one.

Where the rule applies

The rule applies to ram:Value within a product characteristic (ram:ApplicableProductCharacteristic) on an invoice line.

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