Element 'ram:Name' must occur exactly 1 times.
In ram:BuyerTaxRepresentativeTradeParty, ram:Name does not occur exactly once. The element is either missing or present more than once.
The rule requires exactly one name for the buyer’s tax representative.
There is not exactly one ram:Name element for the buyer’s tax representative. You can resolve this by providing the name once.
- Locate
ram:BuyerTaxRepresentativeTradeParty. - Make sure it contains exactly one
ram:Nameelement. - Generate the invoice again and validate it once more.
<ram:BuyerTaxRepresentativeTradeParty/>
<ram:BuyerTaxRepresentativeTradeParty> <ram:Name>Example Representative</ram:Name> </ram:BuyerTaxRepresentativeTradeParty>
Technical details
The check tests whether the number of direct ram:Name elements in ram:BuyerTaxRepresentativeTradeParty is one.
The rule applies to ram:Name within ram:BuyerTaxRepresentativeTradeParty, that is, the buyer’s tax representative.
rule/@context)assert/@test)