Element 'ram:ModeCode' must occur exactly 1 times.
ram:ModeCode does not occur exactly once in ram:SpecifiedLogisticsTransportMovement. The element is either missing or occurs more than once.
The code specifies the transport mode for the stated transport movement. Exactly one occurrence ensures that this information is present unambiguously.
ram:ModeCode is missing from the transport section or occurs more than once. Providing exactly one occurrence will resolve the issue.
- Locate
ram:SpecifiedLogisticsTransportMovementin the consignment information. - Check that it contains exactly one
ram:ModeCode. - Generate the invoice again and validate it.
<ram:SpecifiedLogisticsTransportMovement/>
<ram:SpecifiedLogisticsTransportMovement> <ram:ModeCode/> </ram:SpecifiedLogisticsTransportMovement>
Technical details
The Schematron condition checks whether exactly one direct ram:ModeCode element occurs in the context.
The rule applies to the transport movement ram:SpecifiedLogisticsTransportMovement within the consignment information.
rule/@context)assert/@test)