Element 'ram:Name' must occur exactly 1 times.
ram:Name is missing from ram:InvoiceeTradeParty or occurs more than once. The element must appear exactly once.
The name is required so that the invoicee is identified by name in the invoice. The rule permits exactly one name element.
ram:Name is missing for the invoicee or appears more than once. The invoice must contain exactly one ram:Name.
- Find
ram:InvoiceeTradePartyin the invoice. - Add
ram:Nameif it is missing, or remove extra occurrences so that exactly one remains. - Generate the invoice again and validate it once more.
<ram:InvoiceeTradeParty/>
<ram:InvoiceeTradeParty> <ram:Name>Example</ram:Name> </ram:InvoiceeTradeParty>
Technical details
The test counts the direct ram:Name elements in ram:InvoiceeTradeParty and requires exactly one.
The rule applies to ram:Name within ram:InvoiceeTradeParty, the invoicee.
rule/@context)assert/@test)