Element 'ram:CompleteNumber' must occur exactly 1 times.
ram:CompleteNumber is missing from ram:TelephoneUniversalCommunication or occurs more than once. It must occur exactly once.
The contact’s telephone communication contains exactly one complete number element in this XML context.
ram:CompleteNumber is missing from the contact’s telephone communication or appears more than once. Make sure the element is present exactly once.
- Find the contact in
ram:DefinedTradeContactunderram:PayerTradeParty. - Check that
ram:TelephoneUniversalCommunicationcontains exactly oneram:CompleteNumber. - Generate the invoice again and validate it.
<ram:PayerTradeParty> <ram:DefinedTradeContact> <ram:TelephoneUniversalCommunication/> </ram:DefinedTradeContact> </ram:PayerTradeParty>
<ram:PayerTradeParty> <ram:DefinedTradeContact> <ram:TelephoneUniversalCommunication> <ram:CompleteNumber/> </ram:TelephoneUniversalCommunication> </ram:DefinedTradeContact> </ram:PayerTradeParty>
Technical details
The rule counts direct ram:CompleteNumber elements under ram:TelephoneUniversalCommunication and requires exactly one occurrence.
The rule applies to ram:CompleteNumber within the contact’s telephone communication under ram:PayerTradeParty/ram:DefinedTradeContact.
rule/@context)assert/@test)