Element 'ram:RoleCode' may occur at maximum 1 times.
ram:SellerTradeParty contains more than one ram:RoleCode.
The seller details can contain at most one role code.
More than one role code is entered in the seller details. You can resolve this by limiting the number of ram:RoleCode elements to one at most.
- Check the
ram:RoleCodeelements insideram:SellerTradeParty. - Remove any extra
ram:RoleCodeelements so that no more than one remains. - Generate the invoice again and validate it.
<ram:SellerTradeParty> <ram:RoleCode>A</ram:RoleCode> <ram:RoleCode>B</ram:RoleCode> </ram:SellerTradeParty>
<ram:SellerTradeParty> <ram:RoleCode>A</ram:RoleCode> </ram:SellerTradeParty>
Technical details
The rule counts the direct ram:RoleCode elements under ram:SellerTradeParty and allows zero or one.
Within ram:SellerTradeParty, which contains the seller’s details.
rule/@context)assert/@test)