Element 'ram:Name' must occur exactly 1 times.
Within ram:BuyerTradeParty, ram:Name does not occur exactly once. The name element is missing or appears more than once.
The buyer name identifies the buyer party in the invoice. Exactly one ram:Name element is required for this purpose in ram:BuyerTradeParty.
ram:Name is missing from the buyer element, or it appears more than once. Exactly one name element identifies the buyer there unambiguously.
- Find
ram:Nameinram:BuyerTradeParty. - Add the element if it is missing, or remove duplicates so that it occurs exactly once.
- Generate the invoice again and validate it once more.
<ram:BuyerTradeParty/>
<ram:BuyerTradeParty> <ram:Name/> </ram:BuyerTradeParty>
Technical details
The XPath test counts the direct child elements ram:Name within ram:BuyerTradeParty and requires the count to be 1.
The rule applies within ram:BuyerTradeParty in the trade agreement.
rule/@context)assert/@test)