Element 'ram:URIID' must occur exactly 1 times.
The element ram:EmailURIUniversalCommunication does not contain exactly one ram:URIID. It is either missing or occurs more than once.
The contact’s email address for the delivery address is provided through ram:URIID. Exactly one value is required.
For the delivery address, the contact’s email communication does not contain exactly one ram:URIID. You can resolve this by adjusting the XML.
- Locate
ram:URIIDunderram:EmailURIUniversalCommunication. - Make sure exactly one
ram:URIIDis present. - Generate the invoice again and validate it once more.
<ram:EmailURIUniversalCommunication/>
<ram:EmailURIUniversalCommunication> <ram:URIID>contact@example.com</ram:URIID> </ram:EmailURIUniversalCommunication>
Technical details
The XPath condition checks whether the number of child elements named ram:URIID is exactly one.
The rule applies to the email communication of the contact under ShipToTradeParty for an invoice line.
rule/@context)assert/@test)