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