Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I have used quartz scheduling and I am getting the following exception every time I go to edit a schedule that is not a one time schedule. (that is its weekly or hourly.

C#
2015-04-08 08:34:00.0464[SubscriptionService] JobScheduler Exception :   System.Collections.Generic.KeyNotFoundException: The given key was not present  in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at ReportingService.ReportEngine.GetParameterProperty(String param, Dictionary`2 dataset)
   at ReportingService.ProgrammabilityManager..ctor(IEnumerable`1 procs, Dictionary`2 list, CallType callType, ReportEngine engine)
   at ReportingService.ReportEngine.GetReportData(IEnumerable`1 parameter, IEnumerable`1 proc, IEnumerable`1 join, IEnumerable`1 field)
   at ReportingService.ReportEngine.ProcessReportData(String section, String name, String[] parameters)
   at ReportingService.ReportEngine.GetParameterizedReport(String section, String name, String format, String[] parameters)
   at Zone24x7.MX4Broker.Services.ScheduledJobExecuter.RetrieveScheduledJob(String id)
   at Zone24x7.MX4Broker.Services.Job.LongRunningJob(Object obj)


But every time the edit button is clicked in my application, I am creating a new trigger and new job. Does this have something to do with editing a schedule? Is this because of not using RescheduleJob method? Please advice.
Posted
Comments
Garth J Lancaster 7-Apr-15 23:50pm    
mate - you need to post your code so we can see how you are attempting to update the schedule - this (from the error) seems to be a clue "The given key was not present in the dictionary" - this is likely the job key ... so, update your question with the code and we'll see if anyone can spot the issue
mayooran99 8-Apr-15 1:04am    
Could you provide me with an example on how to reschedule a job?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900