Element 'ram:RoleCode' may occur at maximum 1 times.
The ram:SellerTaxRepresentativeTradeParty element contains more than one ram:RoleCode element. In this context, ram:RoleCode may occur at most once.
The rule limits the number of role codes for the tax representative to one. It does not require a role code to be present.
More than one ram:RoleCode element is provided for the tax representative. This rule allows no more than one here.
- Locate
ram:SellerTaxRepresentativeTradePartyin the invoice. - Remove the extra
ram:RoleCodeelements so that no more than one remains. - Generate the invoice again and validate it again.
<ram:SellerTaxRepresentativeTradeParty> <ram:RoleCode>1</ram:RoleCode> <ram:RoleCode>2</ram:RoleCode> </ram:SellerTaxRepresentativeTradeParty>
<ram:SellerTaxRepresentativeTradeParty> <ram:RoleCode>1</ram:RoleCode> </ram:SellerTaxRepresentativeTradeParty>
Technical details
The test counts ram:RoleCode elements directly under ram:SellerTaxRepresentativeTradeParty and requires a count of no more than one.
The rule applies to ram:RoleCode within ram:SellerTaxRepresentativeTradeParty.
rule/@context)assert/@test)