This looks like the task was deleted before calling ActivateTask() method. Please be sure to always use Refresh() method before accessing to any task, sicne this will quarantee you that TaskScheduler always has actual list of task items. Also you may set AutoRefresh to True and this should help.