Element 'ram:Name' must occur exactly 1 times.
ram:Name does not occur exactly once in ram:BuyerTradeParty. The element is either missing or occurs more than once.
The buyer information must contain exactly one name element so that the buyer is identified unambiguously on the invoice.
The buyer information is missing ram:Name or contains it more than once. A single name element corrects this issue.
- Check
ram:BuyerTradePartyforram:Name. - Make sure exactly one
ram:Nameelement is present. - Generate the invoice again and validate it again.
<ram:BuyerTradeParty/>
<ram:BuyerTradeParty> <ram:Name>Example Buyer</ram:Name> </ram:BuyerTradeParty>
Technical details
The XPath test count(ram:Name)=1 checks that exactly one direct ram:Name child element is present.
The rule applies to ram:Name within the buyer information ram:BuyerTradeParty.
rule/@context)assert/@test)