Element 'ram:ID' must occur exactly 1 times.
In ram:ExchangedDocument, ram:ID is either missing or occurs more than once. The element must occur exactly once.
ram:ID contains the identifier of the invoice document. It is needed to identify the document.
ram:ID is missing from the document header or appears more than once. Having exactly one such element resolves this issue.
- Locate
ram:ExchangedDocumentin the XML. - Check whether
ram:IDis missing or occurs more than once. - Ensure that
ram:IDoccurs exactly once. - Generate the invoice again and validate it once more.
<ram:ExchangedDocument/>
<ram:ExchangedDocument> <ram:ID>INV-1</ram:ID> </ram:ExchangedDocument>
Technical details
The rule uses count(ram:ID)=1 to check that ram:ID occurs exactly once in the context.
The rule applies in the invoice header element ram:ExchangedDocument.
rule/@context)assert/@test)