Element 'ram:CompleteNumber' must occur exactly 1 times.
Under ram:TelephoneUniversalCommunication, ram:CompleteNumber does not occur exactly once. The rule requires exactly one such element.
ram:CompleteNumber carries the complete number for the contact’s telephone communication. Exactly one element follows the expected XML structure.
The contact’s telephone communication is missing ram:CompleteNumber, or the element occurs more than once. You can adjust the XML so that it contains exactly one element.
- Find the telephone communication under
DefinedTradeContactinShipToTradeParty. - Make sure
ram:TelephoneUniversalCommunicationcontains exactly oneram:CompleteNumberelement. - Regenerate the invoice and check it again.
<ram:TelephoneUniversalCommunication/>
<ram:TelephoneUniversalCommunication> <ram:CompleteNumber/> </ram:TelephoneUniversalCommunication>
Technical details
The XPath test counts the direct ram:CompleteNumber elements in ram:TelephoneUniversalCommunication and requires exactly one.
Applies to the contact’s telephone communication under DefinedTradeContact in ShipToTradeParty.
rule/@context)assert/@test)