Orchestrator Upgrade Failure With Migration Failed Increment Quartz

Orchestrator Upgrade Failure with Migration failed: Increment > 60 : 60

Issue Description: Orchestrator Upgrade Failure

Error Details: Error is thrown in Log file generated during the Upgrade:

"System.Exception: Migration failed: Increment > 60 : 60

System.FormatException: Increment > 60 : 60

at UiPath.Scheduler.Core.Schedulers.Cron.CronExpression.CheckIncrementRange(Int32 incr, Int32 type)

at UiPath.Scheduler.Core.Schedulers.Cron.CronExpression.CheckNext(Int32 pos, String s, Int32 val, Int32 type)

at UiPath.Scheduler.Core.Schedulers.Cron.CronExpression.StoreExpressionVals(Int32 pos, String s, Int32 type)

at UiPath.Scheduler.Core.Schedulers.Cron.CronExpression.BuildExpression(String expression)

at UiPath.Scheduler.Core.Schedulers.Cron.CronExpression..ctor(String cronExpression)

at UiPath.Orchestrator.Scheduling.BackgroundTasks.SystemSchedulesManager.GetTimeoutFronCron(String cronText) in C:\or-bld-ag-56163091-we\_work\1\s\src\Core\Scheduling\BackgroundTasks\SystemSchedulesManager.cs:line 218

at UiPath.Orchestrator.Scheduling.BackgroundTasks.SystemSchedulesManager.AddOrUpdateScheduleAsync(ISystemJobDescriptor systemJobDescriptor) in C:\or-bld-ag-56163091-we\_work\1\s\src\Core\Scheduling\BackgroundTasks\SystemSchedulesManager.cs:line 159

at

Resolution: The issue is with the incorrect cron Expression

There are two ways where cron expression can create an issue

  1. Db table [quartz].[QRTZ_CRON_TRIGGERS].
  2. Keys in the Orchestartor.config.dll file

The team needs to check and update with correct cron syntax. Test these out in Cron Expression Generator & Explainer - Quartz .