Element 'ram:InvoiceSpecifiedReferencedDocument' may occur at maximum 1 times.
ram:InvoiceSpecifiedReferencedDocument occurs more than once under ram:SpecifiedAdvancePayment. In this context, this element is allowed no more than once.
The advance payment can contain at most one referenced document. Multiple references are not provided for in this structure.
The advance payment contains multiple ram:InvoiceSpecifiedReferencedDocument elements. Only one such element is provided for here, and you can adjust the XML accordingly.
- Find the
ram:InvoiceSpecifiedReferencedDocumentelements underram:SpecifiedAdvancePayment. - Remove the excess reference elements so that no more than one remains.
- Regenerate the invoice and check it again.
<ram:SpecifiedAdvancePayment> <ram:InvoiceSpecifiedReferencedDocument/> <ram:InvoiceSpecifiedReferencedDocument/> </ram:SpecifiedAdvancePayment>
<ram:SpecifiedAdvancePayment> <ram:InvoiceSpecifiedReferencedDocument/> </ram:SpecifiedAdvancePayment>
Technical details
The check counts the ram:InvoiceSpecifiedReferencedDocument elements under ram:SpecifiedAdvancePayment and requires the count to be no greater than one.
The rule applies to ram:SpecifiedAdvancePayment within the invoice settlement.
rule/@context)assert/@test)