Wednesday, 25 October 2017

Windows Task Scheduler - Value does not fall within the expected range.

When you create a scheduled task trigger using the Windows Task Scheduler you may see the error "Value does not fall within the expected range".

Whilst this looks like a serious error.

The issue appears to be when you create a "Monthly" scheduled task on specific days and tick the "<Select all days>" option.

Be warned the task is not updated, however if you double click the trigger again the user interface will have corrected itself by unticking the <Select all days> option, but leaving all of the days selected. You can then click OK and OK again and the task will be updated.

You can also manually check each of the days in the list.

This is the latest in a few issues I've found with the Windows Task Scheduler, as documented in this blog.

1 comment:

  1. You can potentially lose data because of this bug. If you create a new trigger 'On a schedule', pick 'Monthly', select a month, pick 'First' and 'Last', then select all days. Now press OK, then press OK again, the error appears. When you re-open this trigger, you will notice only 'First' is picked and 'Last' has been deselected!