Element 'ram:RoleCode' may occur at maximum 1 times.
The same ram:ManufacturerTradeParty contains ram:RoleCode more than once.
At most one ram:RoleCode is allowed within this element for the manufacturer. Multiple occurrences repeat this role field.
The product manufacturer has multiple ram:RoleCode elements. Remove the extra occurrence so the element appears only once.
- Locate
ram:ManufacturerTradePartyfor the product on the invoice line. - Check its
ram:RoleCodeelements and leave no more than one. - Generate the invoice again and validate it again.
<ram:ManufacturerTradeParty> <ram:RoleCode>A</ram:RoleCode> <ram:RoleCode>B</ram:RoleCode> </ram:ManufacturerTradeParty>
<ram:ManufacturerTradeParty> <ram:RoleCode>A</ram:RoleCode> </ram:ManufacturerTradeParty>
Technical details
The test counts the direct ram:RoleCode elements within ram:ManufacturerTradeParty and allows no more than one.
This rule applies within ram:ManufacturerTradeParty for a product on an invoice line.
rule/@context)assert/@test)