Element 'ram:RoleCode' may occur at maximum 1 times.
ram:RoleCode occurs more than once in ram:ShipFromTradeParty.
The rule limits the number of role codes for the ship-from party to at most one. Under this rule, ram:RoleCode may be absent.
ram:RoleCode appears more than once in ram:ShipFromTradeParty. Remove the extra occurrences so that the role code is provided no more than once.
- Locate
ram:ShipFromTradePartyin the delivery information. - Check whether
ram:RoleCodeoccurs more than once there and remove any extra occurrences. - Generate the invoice again and validate it.
<ram:ShipFromTradeParty> <ram:RoleCode/> <ram:RoleCode/> </ram:ShipFromTradeParty>
<ram:ShipFromTradeParty> <ram:RoleCode/> </ram:ShipFromTradeParty>
Technical details
The Schematron condition checks whether the number of direct ram:RoleCode elements in the context is at most one.
The rule applies to ram:RoleCode in ram:ShipFromTradeParty within the delivery information.
rule/@context)assert/@test)