Allowance amount

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

This allowance is missing ram:ActualAmount, or the element occurs more than once. It must occur exactly once for each such allowance.

What the rule means

ram:ActualAmount specifies the amount of the allowance. Without exactly one amount, the allowance cannot be quantified unambiguously.

Please provide the allowance amount

The amount for a document-level allowance is missing or has been provided more than once. Exactly one amount makes the allowance unambiguous.

What to do
  1. Add exactly one ram:ActualAmount to the relevant ram:SpecifiedTradeAllowanceCharge.
  2. Remove any additional ram:ActualAmount elements if more than one is present.
  3. Generate the invoice again and validate it.
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 counts ram:ActualAmount in the context of an allowance where ram:ChargeIndicator is false and requires the count to equal 1.

Where the rule applies

The rule applies to a document-level allowance in ram:SpecifiedTradeAllowanceCharge within the document settlement. It concerns entries where ram:ChargeIndicator has the value false.

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