Element 'ram:InvoiceCurrencyCode' must occur exactly 1 times.
In ram:ApplicableHeaderTradeSettlement, ram:InvoiceCurrencyCode does not occur exactly once. The element is missing or occurs more than once.
The invoice currency identifies the currency of the invoice amounts. Exactly one currency element makes this information unambiguous at document level.
ram:InvoiceCurrencyCode is missing from the invoice settlement information, or the element occurs more than once. You can correct the count so that exactly one element is present.
- Locate
ram:ApplicableHeaderTradeSettlement. - Make sure the section contains exactly one
ram:InvoiceCurrencyCodeelement. - Generate the invoice again and validate it.
<ram:ApplicableHeaderTradeSettlement/>
<ram:ApplicableHeaderTradeSettlement> <ram:InvoiceCurrencyCode/> </ram:ApplicableHeaderTradeSettlement>
Technical details
The XPath condition counts the direct ram:InvoiceCurrencyCode child elements and requires exactly one.
The rule applies to the document-level settlement information in ram:ApplicableHeaderTradeSettlement.
rule/@context)assert/@test)