Element 'ram:CompleteNumber' must occur exactly 1 times.
ram:CompleteNumber does not occur exactly once in ram:TelephoneUniversalCommunication: it is either missing or occurs more than once.
ram:CompleteNumber contains the complete telephone number. Exactly one such element is required for the telephone reference to have an unambiguous structure.
ram:CompleteNumber is missing from the telephone communication reference or occurs more than once. You can adjust the reference so that it contains exactly one such element.
- Find
ram:TelephoneUniversalCommunicationin the ship-to party contact. - Add exactly one
ram:CompleteNumberelement inside it, or remove any extra occurrences. - Regenerate the invoice and validate it again.
<ram:TelephoneUniversalCommunication/>
<ram:TelephoneUniversalCommunication> <ram:CompleteNumber>+33123456789</ram:CompleteNumber> </ram:TelephoneUniversalCommunication>
Technical details
The test counts the direct ram:CompleteNumber elements under ram:TelephoneUniversalCommunication and requires exactly one occurrence.
The rule applies to ram:TelephoneUniversalCommunication within the ship-to party contact for the delivery address of an invoice line.
rule/@context)assert/@test)