Element 'ram:RoleCode' may occur at maximum 1 times.
The ram:SalesAgentTradeParty element contains more than one ram:RoleCode. This context allows no more than one role code.
The limit ensures that multiple role codes are not specified for the sales agent in this location.
Several ram:RoleCode elements are present in the sales agent section. This element may appear there no more than once.
- Find
ram:SalesAgentTradePartyin the agreement. - Remove any extra
ram:RoleCodeelements so that no more than one remains. - Generate the invoice again and validate it.
<ram:SalesAgentTradeParty> <ram:RoleCode>A</ram:RoleCode> <ram:RoleCode>B</ram:RoleCode> </ram:SalesAgentTradeParty>
<ram:SalesAgentTradeParty> <ram:RoleCode>A</ram:RoleCode> </ram:SalesAgentTradeParty>
Technical details
The rule counts the direct ram:RoleCode elements under ram:SalesAgentTradeParty and allows zero or one.
The rule applies to ram:RoleCode within ram:SalesAgentTradeParty in the agreement.
rule/@context)assert/@test)