Amount of the financial adjustment

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 occurs more than once. It must occur exactly once.

What the rule means

ram:ActualAmount specifies the amount of the financial adjustment. Without exactly one amount value, the adjustment is not stated with an unambiguous amount.

Please provide the financial adjustment amount exactly once

The amount for the financial adjustment is missing or appears more than once. A single ram:ActualAmount provides one amount value.

What to do
  1. Find the relevant ram:SpecifiedFinancialAdjustment.
  2. Make sure it contains exactly one ram:ActualAmount.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedFinancialAdjustment/>
✓ Correct
<ram:SpecifiedFinancialAdjustment>
  <ram:ActualAmount>10.00</ram:ActualAmount>
</ram:SpecifiedFinancialAdjustment>
Technical details

The test counts the direct ram:ActualAmount elements in ram:SpecifiedFinancialAdjustment and requires the count to be 1.

Where the rule applies

The rule applies to a document-level financial adjustment in the settlement information.

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