Element 'ram:BusinessProcessSpecifiedDocumentContextParameter' may occur at maximum 1 times.
ram:BusinessProcessSpecifiedDocumentContextParameter occurs more than once in rsm:ExchangedDocumentContext.
The document context may contain no more than one parameter for the business process.
ram:BusinessProcessSpecifiedDocumentContextParameter occurs more than once in the document context. Remove the extra occurrences; the element may also be absent.
- Check
rsm:ExchangedDocumentContextand keep no more than oneram:BusinessProcessSpecifiedDocumentContextParameterin it. - Generate the invoice again and validate it once more.
<rsm:ExchangedDocumentContext> <ram:BusinessProcessSpecifiedDocumentContextParameter/> <ram:BusinessProcessSpecifiedDocumentContextParameter/> </rsm:ExchangedDocumentContext>
<rsm:ExchangedDocumentContext> <ram:BusinessProcessSpecifiedDocumentContextParameter/> </rsm:ExchangedDocumentContext>
Technical details
The XPath test counts the direct ram:BusinessProcessSpecifiedDocumentContextParameter elements in rsm:ExchangedDocumentContext and requires a count of no more than 1.
The rule applies within the document context, rsm:ExchangedDocumentContext.
rule/@context)assert/@test)