Reason for 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 the element occurs more than once. The reason must be provided exactly once.

What the rule means

ram:Reason describes the reason for the financial adjustment and makes its business purpose understandable.

Please provide the reason for the financial adjustment

The financial adjustment is missing its reason, or the reason is included more than once. Provide the reason once so the adjustment is understandable.

What to do
  1. Locate ram:SpecifiedFinancialAdjustment at document level.
  2. Make sure ram:Reason 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:Reason>Motif</ram:Reason>
</ram:SpecifiedFinancialAdjustment>
Technical details

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

Where the rule applies

The rule applies to ram:SpecifiedFinancialAdjustment at document level in the invoice settlement.

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