Element 'ram:ID' may occur at maximum 1 times.
In ram:BuyerTaxRepresentativeTradeParty, ram:ID occurs more than once. The element may appear at most once.
The rule limits the number of buyer tax representative identifiers to one; the ram:ID element is optional.
The buyer’s tax representative has multiple ram:ID elements. The identifier may be omitted, but it must not occur more than once.
- Locate
ram:BuyerTaxRepresentativeTradeParty. - Remove any extra
ram:IDelements so that no more than one remains. - Generate the invoice again and validate it once more.
<ram:BuyerTaxRepresentativeTradeParty> <ram:ID>A</ram:ID> <ram:ID>B</ram:ID> </ram:BuyerTaxRepresentativeTradeParty>
<ram:BuyerTaxRepresentativeTradeParty> <ram:ID>A</ram:ID> </ram:BuyerTaxRepresentativeTradeParty>
Technical details
The check tests whether the number of direct ram:ID elements in ram:BuyerTaxRepresentativeTradeParty is at most one.
The rule applies to ram:ID within ram:BuyerTaxRepresentativeTradeParty, that is, the buyer’s tax representative.
rule/@context)assert/@test)