Element 'ram:RoleCode' may occur at maximum 1 times.
ram:SellerTaxRepresentativeTradeParty contains more than one ram:RoleCode element. In this context, ram:RoleCode may occur no more than once.
The rule limits the number of role codes in the seller’s tax representative details to no more than one.
The seller’s tax representative details contain multiple ram:RoleCode elements. This section allows no more than one such element.
- Remove any extra
ram:RoleCodeelements fromram:SellerTaxRepresentativeTradeParty. - Regenerate the invoice and validate it again.
<ram:SellerTaxRepresentativeTradeParty> <ram:RoleCode>A</ram:RoleCode> <ram:RoleCode>B</ram:RoleCode> </ram:SellerTaxRepresentativeTradeParty>
<ram:SellerTaxRepresentativeTradeParty> <ram:RoleCode>A</ram:RoleCode> </ram:SellerTaxRepresentativeTradeParty>
Technical details
The test counts direct ram:RoleCode elements in the ram:SellerTaxRepresentativeTradeParty context and allows no more than one.
The rule applies to ram:RoleCode within ram:SellerTaxRepresentativeTradeParty in the invoice agreement.
rule/@context)assert/@test)