Element 'ram:URIUniversalCommunication' may occur at maximum 1 times.
URIUniversalCommunication occurs more than once in BuyerAgentTradeParty. This element may appear there at most once.
The XML structure allows at most one URI communication element for the buyer agent. Multiple occurrences do not conform to this structure.
The invoice contains multiple URIUniversalCommunication elements for the buyer agent. You can resolve this by limiting the number of these elements to one.
- Find
URIUniversalCommunicationwithinBuyerAgentTradeParty. - Remove the extra occurrences so that no more than one element remains.
- Generate the invoice again and validate it once more.
<ram:BuyerAgentTradeParty> <ram:URIUniversalCommunication/> <ram:URIUniversalCommunication/> </ram:BuyerAgentTradeParty>
<ram:BuyerAgentTradeParty> <ram:URIUniversalCommunication/> </ram:BuyerAgentTradeParty>
Technical details
The test counts the direct URIUniversalCommunication child elements of BuyerAgentTradeParty and requires the count to be less than or equal to one.
The rule applies to the URIUniversalCommunication element within BuyerAgentTradeParty.
rule/@context)assert/@test)