Element 'ram:RoleCode' may occur at maximum 1 times.
The ram:ShipToTradeParty element contains more than one ram:RoleCode element. At most one ram:RoleCode is permitted in this context.
The rule limits the number of role codes for ram:ShipToTradeParty to at most one.
Several ram:RoleCode elements are present in ram:ShipToTradeParty. Only one is allowed in this section.
- Locate
ram:ShipToTradePartyin the delivery section. - Remove extra
ram:RoleCodeelements so that no more than one remains. - Regenerate the invoice and validate it again.
<ram:ShipToTradeParty> <ram:RoleCode>1</ram:RoleCode> <ram:RoleCode>2</ram:RoleCode> </ram:ShipToTradeParty>
<ram:ShipToTradeParty> <ram:RoleCode>1</ram:RoleCode> </ram:ShipToTradeParty>
Technical details
The check counts the direct child elements ram:RoleCode of ram:ShipToTradeParty and requires their number to be no greater than one.
The rule applies within the ram:ShipToTradeParty element in the delivery section.
rule/@context)assert/@test)