Element 'ram:RoleCode' may occur at maximum 1 times.
ram:ManufacturerTradeParty contains more than one ram:RoleCode element. In this context, the element may occur at most once.
The manufacturer’s role must not be repeated in this XML context.
ram:RoleCode is entered more than once for the manufacturer. Remove the duplicate entry so the role is not specified multiple times.
- Locate
ram:ManufacturerTradePartyin the invoice-line product. - Remove any extra
ram:RoleCodeelements there. - Regenerate the invoice and validate it again.
<ram:ManufacturerTradeParty> <ram:RoleCode/> <ram:RoleCode/> </ram:ManufacturerTradeParty>
<ram:ManufacturerTradeParty> <ram:RoleCode/> </ram:ManufacturerTradeParty>
Technical details
The check counts the direct ram:RoleCode children of ram:ManufacturerTradeParty and passes when their number is at most one.
The rule applies to ram:ManufacturerTradeParty of an invoice-line product.
rule/@context)assert/@test)