Element 'ram:OccurrenceDateTime' must occur exactly 1 times.
ram:OccurrenceDateTime is missing from ram:ActualDeliverySupplyChainEvent or occurs more than once.
The actual delivery date and time places the delivery in time. Requiring exactly one occurrence ensures it is neither missing nor duplicated.
The delivery time is missing from the delivery event or appears more than once. You can adjust the XML so that exactly one ram:OccurrenceDateTime is present.
- Find
ram:ActualDeliverySupplyChainEventin the XML. - Make sure it contains exactly one
ram:OccurrenceDateTime. - Regenerate the invoice and validate it again.
<ram:ActualDeliverySupplyChainEvent/>
<ram:ActualDeliverySupplyChainEvent> <ram:OccurrenceDateTime/> </ram:ActualDeliverySupplyChainEvent>
Technical details
The test checks whether the number of direct ram:OccurrenceDateTime elements in ram:ActualDeliverySupplyChainEvent is one.
The rule applies within the delivery event ram:ActualDeliverySupplyChainEvent.
rule/@context)assert/@test)