Element 'ram:ModeCode' must occur exactly 1 times.
ram:ModeCode is missing from ram:SpecifiedLogisticsTransportMovement or occurs more than once. It must occur exactly once.
ram:ModeCode specifies the transport mode for the stated transport movement.
The transport mode is missing from the transport movement information or is entered more than once. You can adjust the XML so it occurs exactly once.
- Locate
ram:SpecifiedLogisticsTransportMovementin the delivery details. - Check that it contains
ram:ModeCodeexactly once. - Generate the invoice again and validate it once more.
<ram:SpecifiedLogisticsTransportMovement/>
<ram:SpecifiedLogisticsTransportMovement> <ram:ModeCode>1</ram:ModeCode> </ram:SpecifiedLogisticsTransportMovement>
Technical details
The XPath counts the direct ram:ModeCode elements in ram:SpecifiedLogisticsTransportMovement; the count must equal 1.
The rule applies to the transport movement information in the delivery details.
rule/@context)assert/@test)