Element 'ram:LineTotalAmount' must occur exactly 1 times.
ram:LineTotalAmount is missing from ram:SpecifiedTradeSettlementHeaderMonetarySummation or occurs more than once. The check requires exactly one element.
ram:LineTotalAmount is the sum of the invoice lines in the settlement totals and must be stated unambiguously.
ram:LineTotalAmount is missing from the settlement totals or appears more than once. Adjust the entry in ram:SpecifiedTradeSettlementHeaderMonetarySummation.
- Locate
ram:SpecifiedTradeSettlementHeaderMonetarySummation. - Check how many times
ram:LineTotalAmountoccurs in it. - Ensure that it contains exactly one
ram:LineTotalAmount. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeSettlementHeaderMonetarySummation/>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> <ram:LineTotalAmount>...</ram:LineTotalAmount> </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Technical details
The XPath test counts the direct ram:LineTotalAmount elements within ram:SpecifiedTradeSettlementHeaderMonetarySummation and requires the count to be 1.
The rule applies to the settlement totals in ram:SpecifiedTradeSettlementHeaderMonetarySummation.
rule/@context)assert/@test)