Financial adjustment amount

Error FX-SCH-A-000962 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:SpecifiedFinancialAdjustment, or the element occurs more than once. The amount must be included exactly once.

What the rule means

ram:ActualAmount provides the actual amount of the financial adjustment. Without exactly one amount, the adjustment cannot be quantified unambiguously.

Please add the financial adjustment amount

The financial adjustment is missing its amount, or the amount is included more than once. Make sure it is included once.

What to do
  1. Locate ram:SpecifiedFinancialAdjustment at document level.
  2. Make sure ram:ActualAmount occurs in it exactly once.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedFinancialAdjustment/>
✓ Correct
<ram:SpecifiedFinancialAdjustment>
  <ram:ActualAmount>0</ram:ActualAmount>
</ram:SpecifiedFinancialAdjustment>
Technical details

The XPath test requires exactly one child element ram:ActualAmount under each ram:SpecifiedFinancialAdjustment.

Where the rule applies

The rule applies to ram:ActualAmount within ram:SpecifiedFinancialAdjustment at document level.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedFinancialAdjustment
Test expression (assert/@test)
count(ram:ActualAmount)=1