Element 'ram:CompleteNumber' must occur exactly 1 times.
CompleteNumber is missing from TelephoneUniversalCommunication or occurs more than once. CompleteNumber must appear exactly once.
The buyer agent’s telephone communication requires exactly one CompleteNumber element. Without it, the complete number provided for this structure is absent.
CompleteNumber is missing or appears more than once in the buyer agent’s telephone communication. Exactly one CompleteNumber element resolves this issue.
- Find
TelephoneUniversalCommunicationin the buyer agent’s contact. - Make sure it contains exactly one
CompleteNumberelement. - Generate the invoice again and validate it once more.
<ram:BuyerAgentTradeParty> <ram:DefinedTradeContact> <ram:TelephoneUniversalCommunication/> </ram:DefinedTradeContact> </ram:BuyerAgentTradeParty>
<ram:BuyerAgentTradeParty> <ram:DefinedTradeContact> <ram:TelephoneUniversalCommunication> <ram:CompleteNumber>+33123456789</ram:CompleteNumber> </ram:TelephoneUniversalCommunication> </ram:DefinedTradeContact> </ram:BuyerAgentTradeParty>
Technical details
The test counts the direct CompleteNumber child elements of TelephoneUniversalCommunication and requires exactly one.
The rule applies to TelephoneUniversalCommunication within the DefinedTradeContact of BuyerAgentTradeParty.
rule/@context)assert/@test)