Reason for the financial adjustment

Error FX-SCH-A-000383 Factur-X

Element 'ram:Reason' 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:Reason is missing from ram:SpecifiedFinancialAdjustment or occurs more than once. It must occur exactly once.

What the rule means

ram:Reason describes the reason for the financial adjustment. If it is missing or occurs more than once, the adjustment is not described with exactly one reason.

Please provide the reason for the financial adjustment exactly once

The reason for the financial adjustment is missing or appears more than once. A single ram:Reason describes the adjustment with exactly one reason.

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

The test counts the direct ram:Reason 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:Reason)=1