Element 'ram:PaymentReference' may occur at maximum 1 times.
ram:PaymentReference occurs more than once in ram:ApplicableHeaderTradeSettlement. No more than one such element may occur.
The document-level settlement information can contain at most one payment reference. Multiple elements would violate this requirement.
The settlement information contains multiple ram:PaymentReference elements. No more than one is allowed in this section.
- Find
ram:PaymentReferencewithinram:ApplicableHeaderTradeSettlement. - Make sure no more than one
ram:PaymentReferenceelement is present there. - Recreate the invoice and validate it again.
<ram:ApplicableHeaderTradeSettlement> <ram:PaymentReference/> <ram:PaymentReference/> </ram:ApplicableHeaderTradeSettlement>
<ram:ApplicableHeaderTradeSettlement> <ram:PaymentReference/> </ram:ApplicableHeaderTradeSettlement>
Technical details
The rule counts the direct ram:PaymentReference elements within ram:ApplicableHeaderTradeSettlement and limits the count to one.
The rule applies to ram:PaymentReference within the document-level settlement information (ram:ApplicableHeaderTradeSettlement).
rule/@context)assert/@test)