Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Is it possible to create a booking silently with an end date lower than the current date?

Solved953 views4th August 2022Booking Manager reservation silent booking SRM Wizard
-1
Michiel Clepkens [SLC] [DevOps Advocate]1.31K 4th August 2022 0 Comments

Hi Dojo

I'm trying to create a booking with an end date lower than the current date using my own custom booking wizard but this does not seem to work. The following exception is thrown when calling the Skyline.DataMiner.Library.Solutions.SRM.BookingManager.CreateNewBooking(...) method:

Failed to create reservation TestReservation due to: Skyline.DataMiner.Library.Exceptions.InvalidBookingDataException: EndDate cannot be lower than the current date
Property name: EndDate
at Skyline.DataMiner.Library.Solutions.SRM.Model.Booking.ValidateRecurrence(ISrmContext context)
at Skyline.DataMiner.Library.Solutions.SRM.Model.Booking.Validate(ISrmContext context)
at Skyline.DataMiner.Library.Solutions.SRM.FastBookingCreation.BookingBuilder.CreateBooking(Booking bookingData)

If this is indeed not possible using the CreateNewBooking method, is there an alternative? Maybe I can use a different method?

Thank you in advance!

Kind regards

Michiel Clepkens [SLC] [DevOps Advocate] Selected answer as best 4th August 2022

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Matthias Declerck [SLC] [DevOps Advocate]2.75K Posted 4th August 2022 1 Comment

Hi Michiel,

It is not possible to create new bookings that lay in the past. No alternatives afaik.
Having the End date lower than the current Date also means that Start date is in the past... So I assume you create bookings just to archive them?

Would you be so kind to elaborate what your user story is?
EDIT: 1 thing I can think of is that you want to end a booking right 'now'. I would then add half a minute on current UTC DateTime as end time, so that both the solution and the DataMiner system has the decent time to create things and configure the objects nicely, before finishing the booking properly.

Michiel Clepkens [SLC] [DevOps Advocate] Selected answer as best 4th August 2022
Michiel Clepkens [SLC] [DevOps Advocate] commented 4th August 2022

Hi Matthias. Thanks a lot for your answer! There is no need to go further into this discussion for now. I just wanted to know if it is somehow possible. Thank you!

You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin