Element 'ram:RoleCode' may occur at maximum 1 times.
ram:ItemSellerTradeParty contains more than one ram:RoleCode. The element may occur at most once in this section.
ram:RoleCode states a role in the context of the seller details for the invoice line. Multiple occurrences would state the role more than once in the same section.
The seller details for the invoice line contain ram:RoleCode more than once. You can resolve this by removing the duplicate occurrence.
- Find
ram:ItemSellerTradePartyfor the relevant invoice line. - Make sure it contains at most one
ram:RoleCode. - Regenerate the invoice and validate it again.
Technical details
The test counts the direct ram:RoleCode elements in ram:ItemSellerTradeParty and permits zero or one occurrence.
The rule applies within ram:ItemSellerTradeParty in the seller details for the invoice line.
rule/@context)assert/@test)