Element 'ram:Name' must occur exactly 1 times.
In InvoicerTradeParty, ram:Name is missing or occurs more than once. The rule requires exactly one occurrence.
The name identifies the invoice issuer in the settlement. Exactly one occurrence provides an unambiguous value.
The name is missing from InvoicerTradeParty or is present more than once. You can adjust the XML so that ram:Name occurs exactly once.
- Locate
InvoicerTradePartyin the settlement. - Check that
ram:Nameoccurs exactly once. - Generate the invoice again and validate it once more.
<ram:InvoicerTradeParty> <ram:Name>Issuer A</ram:Name> <ram:Name>Issuer B</ram:Name> </ram:InvoicerTradeParty>
<ram:InvoicerTradeParty> <ram:Name>Issuer</ram:Name> </ram:InvoicerTradeParty>
Technical details
The check counts the direct ram:Name elements in InvoicerTradeParty and requires the count to be 1.
Within InvoicerTradeParty in the settlement, the element ram:Name must occur exactly once.
rule/@context)assert/@test)