Element 'ram:RoleCode' may occur at maximum 1 times.
ram:ItemSellerTradeParty contains more than one ram:RoleCode. The element may occur at most once.
The role code describes a role of the invoice line seller. Repeating this element is not permitted by this structure.
ram:RoleCode appears more than once for the invoice line seller. The field may be omitted or included once, but it must not be repeated.
- Locate
ram:ItemSellerTradePartyin the affected invoice line. - Remove extra
ram:RoleCodeelements so that no more than one remains. - Generate the invoice again and validate it again.
<ram:ItemSellerTradeParty> <ram:RoleCode>AA</ram:RoleCode> <ram:RoleCode>BB</ram:RoleCode> </ram:ItemSellerTradeParty>
<ram:ItemSellerTradeParty> <ram:RoleCode>AA</ram:RoleCode> </ram:ItemSellerTradeParty>
Technical details
The rule counts the direct ram:RoleCode elements in ram:ItemSellerTradeParty and allows zero or one occurrence.
The rule applies to ram:RoleCode within ram:ItemSellerTradeParty for an invoice line seller.
rule/@context)assert/@test)