Element 'ram:OccurrenceDateTime' must occur exactly 1 times.
ram:OccurrenceDateTime does not occur exactly once in ram:ActualDeliverySupplyChainEvent. The element is either missing or occurs more than once.
The occurrence date states when the actual delivery took place. Exactly one date is required to identify the delivery time unambiguously.
The actual delivery event is missing its occurrence date, or the date is provided more than once. You can adjust the information so that exactly one date is present.
- Locate
ram:ActualDeliverySupplyChainEventin the invoice line. - Make sure that it contains
ram:OccurrenceDateTimeexactly once. - Generate the invoice again and validate it again.
<ram:ActualDeliverySupplyChainEvent/>
<ram:ActualDeliverySupplyChainEvent> <ram:OccurrenceDateTime/> </ram:ActualDeliverySupplyChainEvent>
Technical details
The check counts the direct ram:OccurrenceDateTime elements within ram:ActualDeliverySupplyChainEvent and requires the count to be 1.
The rule applies to ram:ActualDeliverySupplyChainEvent in an invoice line.
rule/@context)assert/@test)