Exactly one allowance amount

Error FX-SCH-A-000544 Factur-X

Element 'ram:ActualAmount' must occur exactly 1 times.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

In the relevant ram:SpecifiedTradeAllowanceCharge, ram:ActualAmount is missing or occurs more than once. The test requires exactly one occurrence.

What the rule means

ram:ActualAmount contains the actual amount of the allowance on the invoice line. A single amount value is required to specify the allowance unambiguously.

Please provide exactly one amount for the allowance

The allowance on the invoice line does not contain one unambiguous actual amount. You can represent it with exactly one ram:ActualAmount.

What to do
  1. Locate the relevant ram:SpecifiedTradeAllowanceCharge on the invoice line.
  2. Add exactly one ram:ActualAmount or remove any duplicates.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:ActualAmount>10.00</ram:ActualAmount>
</ram:SpecifiedTradeAllowanceCharge>
Technical details

The test requires count(ram:ActualAmount) to equal 1 in the selected allowance.

Where the rule applies

The rule applies to the ram:ActualAmount amount in an allowance at invoice line level.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/ udt:Indicator="false"]
Test expression (assert/@test)
count(ram:ActualAmount)=1