Element 'ram:RoleCode' may occur at maximum 1 times.
ram:RoleCode occurs more than once in ram:SalesAgentTradeParty. The element may occur no more than once.
The rule limits the number of role codes for the party specified as the sales agent to at most one.
More than one ram:RoleCode element is entered for the sales agent. You can correct the invoice by ensuring that no more than one role code is included there.
- Locate
ram:SalesAgentTradePartyin the agreement information. - Check the
ram:RoleCodeelements it contains. - Remove any extra
ram:RoleCodeelements so that no more than one remains. - Generate the invoice again and validate it.
<ram:SalesAgentTradeParty> <ram:RoleCode>1</ram:RoleCode> <ram:RoleCode>2</ram:RoleCode> </ram:SalesAgentTradeParty>
<ram:SalesAgentTradeParty> <ram:RoleCode>1</ram:RoleCode> </ram:SalesAgentTradeParty>
Technical details
The rule counts the direct ram:RoleCode elements in ram:SalesAgentTradeParty and permits at most one.
This rule applies to ram:RoleCode within ram:SalesAgentTradeParty in the agreement information.
rule/@context)assert/@test)