Element 'ram:Reason' must occur exactly 1 times.
ram:Reason is missing from ram:SpecifiedFinancialAdjustment or occurs more than once. It must occur exactly once.
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.
The reason for the financial adjustment is missing or appears more than once. A single ram:Reason describes the adjustment with exactly one reason.
- Find the relevant
ram:SpecifiedFinancialAdjustment. - Make sure it contains exactly one
ram:Reason. - Generate the invoice again and validate it once more.
<ram:SpecifiedFinancialAdjustment/>
<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.
The rule applies to a document-level financial adjustment in the settlement information.
rule/@context)assert/@test)