Element 'ram:InvoiceCurrencyCode' must occur exactly 1 times.
ram:InvoiceCurrencyCode is missing from ram:ApplicableHeaderTradeSettlement or occurs more than once. The rule requires exactly one such element.
The invoice currency must be specified exactly once in the document-level settlement information.
ram:InvoiceCurrencyCode is missing from the settlement information or appears more than once. Adjust the information so that it occurs exactly once.
- Find
ram:ApplicableHeaderTradeSettlement. - Make sure it contains exactly one
ram:InvoiceCurrencyCodeelement. - Recreate the invoice and validate it again.
<ram:ApplicableHeaderTradeSettlement/>
<ram:ApplicableHeaderTradeSettlement> <ram:InvoiceCurrencyCode/> </ram:ApplicableHeaderTradeSettlement>
Technical details
The rule counts the direct ram:InvoiceCurrencyCode elements within ram:ApplicableHeaderTradeSettlement and requires a count of one.
The rule applies to ram:InvoiceCurrencyCode within the document-level settlement information (ram:ApplicableHeaderTradeSettlement).
rule/@context)assert/@test)