Element 'ram:GuidelineSpecifiedDocumentContextParameter' must occur exactly 1 times.
Within rsm:ExchangedDocumentContext, ram:GuidelineSpecifiedDocumentContextParameter does not occur exactly once. The element is missing or appears more than once.
The document profile identifies the guideline that applies to the invoice. Exactly one profile context is required.
The document context is missing the document profile entry, or it appears more than once. You can resolve this by having exactly one such entry there.
- Find
ram:GuidelineSpecifiedDocumentContextParameterinrsm:ExchangedDocumentContext. - Add the element if it is missing, or remove duplicates so that only one remains.
<rsm:ExchangedDocumentContext/>
<rsm:ExchangedDocumentContext> <ram:GuidelineSpecifiedDocumentContextParameter/> </rsm:ExchangedDocumentContext>
Technical details
The XPath test counts the direct child elements ram:GuidelineSpecifiedDocumentContextParameter and requires the count to be 1.
The rule applies within the document context rsm:ExchangedDocumentContext and checks the element ram:GuidelineSpecifiedDocumentContextParameter.
rule/@context)assert/@test)