ram:ActualAmount must be present

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

ram:ActualAmount is missing from ram:AppliedTradeAllowanceCharge or occurs more than once. Exactly one ram:ActualAmount is required.

What the rule means

ram:ActualAmount contains the amount of the allowance. The rule requires exactly one amount entry for this allowance.

Please provide the amount of the allowance

The amount for the allowance on the gross price is missing or entered more than once. Add exactly one ram:ActualAmount.

What to do
  1. Open the relevant ram:AppliedTradeAllowanceCharge.
  2. Make sure it contains exactly one ram:ActualAmount.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:AppliedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
</ram:AppliedTradeAllowanceCharge>
✓ Correct
<ram:AppliedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:ActualAmount>1</ram:ActualAmount>
</ram:AppliedTradeAllowanceCharge>
Technical details

Within the ram:AppliedTradeAllowanceCharge selected as an allowance, the check is count(ram:ActualAmount)=1.

Where the rule applies

The rule applies within an ram:AppliedTradeAllowanceCharge marked as an allowance on an invoice line’s gross price.

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