What could be the reason to have sporadic SRM reservations with pre-roll and start events at the same time? In the configuration, we have a pre-roll of one hour, but from time to time, new bookings get created with both events at the same time:
The bookings are created via automation, using the BookingManager helper with the TryrCreateNewBooking method. If I delete it and try it again with the same parameters, it works fine most of the time. What could be causing this sporadic behavior, and how can I troubleshoot this?
Pre-Roll and Post-Roll configuration can be configured in two diferent ways:
- Default way, using Skyline Booking Manager Element.
- Skyline.DataMiner.Library.Solutions.SRM.Model.Booking class
Skyline Booking Manager Element defaults:
The usage of these values may be disabled or enabled as an operator sees fit.
If you are using BookingManager class to create your bookings you can debug your booking creation logging what is configured on Booking Manager Element by:
Skyline.DataMiner.Library.Solutions.SRM.Model.Booking class
When using TryCreateNewBooking the user is free to use different configuration from what is defined in Booking Manager Element.
All TryCreateNewBooking calls rely on the Skyline.DataMiner.Library.Solutions.SRM.Model.Booking class.
On this class you will find a reference to Recurrence.
This object may be customized by the user to set custom Pre-Roll, custom Post-Roll and many other Time related properties so that your booking can have different values from what is defined in the Skyline Booking Manager Element.
Further debug can still be done.
If you see a reservation reflecting Pre-Roll values that are not inline with the provided configuration make sure to go into List view Component under the Bookings Tab and check the Pre-Roll and Post-Roll times are as expected.
Another alternative is going through the Reservation Instance object (after TryCreateNewBooking) and verify the ReservationInstance.PreRoll and ReservationInstance.PostRoll.