Schedule - The date and times you entered were invalid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2014 06:27 AM
I have built a wizard which is used to add a record to the Schedule Entry table (cmn_schedule_span). The wizard works and the record is inserted correctly but a get an error message "The date and times you entered were invalid". I trying to workout what is causing this as everything looks fine to me and the record is inserted. See screenshots below:
Wizard Form
Error Message appears
Schedule Entry
Code used to populate Date/Time field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2014 07:19 AM
So this creates the Schedule Entry, which I don't think accepts the timezone. The time zone comes from the Schedule. How do we set the schedule? and is there a timezone set there?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2014 07:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2014 08:00 AM
I have found the business rule (Schedule Item validate) which is calling a Script Include (ScheduleEntryValidation) which has the following if statement which is causing the error message:
if (this.cmn_schedule_span.start_date_time.nil() || this.cmn_schedule_span.end_date_time.nil()) {
gs.addErrorMessage(gs.getMessage("The dates and times you entered were not valid"));
this._valid = false;
}
It is against the Schedule Entry table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2014 12:59 PM
Anybody else got any ideas? I have tried passing the date/time using GlideDateTime but that didn't work either.