Element 'ram:GrandTotalAmount' must occur exactly 1 times.
ram:SpecifiedTradeSettlementHeaderMonetarySummation does not contain ram:GrandTotalAmount exactly once. The element is missing or occurs more than once.
ram:GrandTotalAmount gives the invoice total. Requiring it exactly once keeps this total unambiguous.
The totals are missing ram:GrandTotalAmount, or the element appears more than once. Providing it exactly once clearly states the invoice total.
- Open
ram:SpecifiedTradeSettlementHeaderMonetarySummation. - Make sure it contains
ram:GrandTotalAmountexactly once. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation/>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:GrandTotalAmount>0</ram:GrandTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Technical details
The test counts the direct ram:GrandTotalAmount children of ram:SpecifiedTradeSettlementHeaderMonetarySummation and requires a count of 1.
In the document-level totals within ram:SpecifiedTradeSettlementHeaderMonetarySummation.
rule/@context)assert/@test)