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