Element 'ram:Name' must occur exactly 1 times.
ram:Name does not occur exactly once in ram:PayeeTradeParty. The element is either missing or occurs more than once.
The name identifies the payee. The XML structure requires exactly one ram:Name element for this purpose.
The payee’s name is missing or entered more than once. You can correct this by using exactly one ram:Name element.
- Locate
ram:PayeeTradePartyin the invoice data. - Ensure that it contains exactly one
ram:Nameelement. - Generate the invoice again and validate it once more.
<ram:PayeeTradeParty/>
<ram:PayeeTradeParty> <ram:Name>Empfänger GmbH</ram:Name> </ram:PayeeTradeParty>
Technical details
The rule counts the direct ram:Name elements in ram:PayeeTradeParty and requires the count to be one.
The rule applies to ram:PayeeTradeParty at document level.
rule/@context)assert/@test)