Completed
Last Updated: 11 May 2022 10:24 by ADMIN
Release R2 2022
Alyssa
Created on: 27 Sep 2021 10:01
Type: Bug Report
3
IndexOutOfRangeException if Day of Week is not selected in scheduled task or alert

If you unselect all the days from the Day of the Week in the recurrence rule of a scheduled task of data alert, the task can be saved but will throw an Internal Server Error and you won't be able to list the available tasks on the server.

The linked muted video demonstrates the problem.

Here is the error stack trace produced by the ServiceAgent:

Telerik.ReportServer.ServiceAgent.exe Information: 0 : Loaded 37 tasks in total.
Telerik.ReportServer.ServiceAgent.exe Error: 0 : System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Telerik.WinControls.UI.Scheduler.ICalendar.CalHelper.TryParseRecurrenceRuleProperties(RecurrenceRule result, IEnumerable`1 keywordPairs)
   at Telerik.WinControls.UI.Scheduler.ICalendar.CalHelper.TryParseRRuleCore(String valueToParse, RecurrenceRule& result)
   at Telerik.ReportServer.Web.Utils.Appointment..ctor(DateTime startUtc, String recurrenceRule)
   at Telerik.ReportServer.ServiceAgent.Tasks.TaskInfo.UpdateNextOccurrenceTime(DateTime utcFrom, DateTime utcTo)
   at Telerik.ReportServer.ServiceAgent.Services.SchedulingService.CalculatePendingTasks(List`1 pendingTasks)
   at Telerik.ReportServer.ServiceAgent.Services.SchedulingService.MainLoop()
   at Telerik.ReportServer.ServiceAgent.Services.SchedulingService.StartMain()

0 comments