Element 'ram:Name' must occur exactly 1 times.
ram:InvoicerTradeParty does not contain exactly one ram:Name element. The name is either missing or occurs more than once.
The rule requires exactly one name entry for the invoicing party.
The invoicing party’s details are missing ram:Name, or the element occurs more than once. The XML entry can be adjusted to contain exactly one name element.
- Find
ram:InvoicerTradePartyin the settlement details. - Ensure it contains exactly one
ram:Nameelement. - Generate the invoice again and validate it again.
<ram:InvoicerTradeParty/>
<ram:InvoicerTradeParty> <ram:Name>Example Invoicing Party</ram:Name> </ram:InvoicerTradeParty>
Technical details
The test counts the direct ram:Name elements in ram:InvoicerTradeParty and requires a count of 1.
The rule applies to ram:Name within ram:InvoicerTradeParty in the settlement details.
rule/@context)assert/@test)