Element 'ram:RoleCode' may occur at maximum 1 times.
ram:BuyerAgentTradeParty contains more than one ram:RoleCode. The element may occur no more than once.
ram:RoleCode specifies the role of the buyer agent. The rule limits the number of these values to one at most.
More than one role code is included for the buyer agent. You can limit the number of ram:RoleCode elements to no more than one.
- Find
ram:BuyerAgentTradeParty. - Check the
ram:RoleCodeelements it contains. - Remove any additional
ram:RoleCodeelements so that no more than one remains. - Generate the invoice again and validate it again.
Technical details
The XPath test requires ram:RoleCode to occur no more than once within ram:BuyerAgentTradeParty; zero occurrences are permitted.
The rule applies within ram:BuyerAgentTradeParty in the seller-buyer agreement.
rule/@context)assert/@test)