Element 'ram:Name' must occur exactly 1 times.
ram:Name is missing from ram:PayerTradeParty or occurs more than once. It must occur exactly once.
The payer’s name must be provided exactly once in this XML context.
ram:PayerTradeParty does not have exactly one ram:Name. Add or correct the element in the XML.
- Find
ram:PayerTradePartyin the invoice. - Make sure it contains exactly one
ram:Nameelement. - Generate the invoice again and validate it.
<ram:PayerTradeParty/>
<ram:PayerTradeParty> <ram:Name/> </ram:PayerTradeParty>
Technical details
The rule counts direct ram:Name elements under ram:PayerTradeParty and requires exactly one occurrence.
The rule applies to the name within document-level ram:PayerTradeParty.
rule/@context)assert/@test)