Element 'ram:CompleteNumber' must occur exactly 1 times.
CompleteNumber is missing from FaxUniversalCommunication or occurs more than once. CompleteNumber must appear exactly once.
The buyer agent’s fax 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 fax communication. Exactly one CompleteNumber element resolves this issue.
- Find
FaxUniversalCommunicationin 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:FaxUniversalCommunication/> </ram:DefinedTradeContact> </ram:BuyerAgentTradeParty>
<ram:BuyerAgentTradeParty> <ram:DefinedTradeContact> <ram:FaxUniversalCommunication> <ram:CompleteNumber>+33123456789</ram:CompleteNumber> </ram:FaxUniversalCommunication> </ram:DefinedTradeContact> </ram:BuyerAgentTradeParty>
Technical details
The test counts the direct CompleteNumber child elements of FaxUniversalCommunication and requires exactly one.
The rule applies to FaxUniversalCommunication within the DefinedTradeContact of BuyerAgentTradeParty.
rule/@context)assert/@test)