Hi - From yesterday my algo that was running normally stopped working and shows this error that is related to the data I assume. I really appreciate it if you could help me with it. The error is as below:

[ERROR] FATAL UNHANDLED EXCEPTION:Engine.Run(): Error running algorithm System.ArgumentException: Unable to locate next market open within two weeks.,   at QuantConnect.Securities.SecurityExchangeHours.GetNextMarketOpen(DateTime localDateTime, Boolean extendedMarket) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Securities/SecurityExchangeHours.cs:line 317,   at QuantConnect.Scheduling.TimeRules.<>c__DisplayClass16_0.<AfterMarketOpen>b__1(DateTime date) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Scheduling/TimeRules.cs:line 168,   at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext(), atSystem.L∈q.Eνmerab≤.WhereSe≤ctEνmerab≤Itera→r2.MoveNext(),   at QuantConnect.Scheduling.ScheduledEvent.get_NextEventUtcTime() in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Scheduling/ScheduledEvent.cs:line 80,   at QuantConnect.Lean.Engine.RealTime.BacktestingRealTimeHandler.<>c.<GetScheduledEventsSortedByTime>b__11_0(KeyValuePair2x)∈LeanCloudCI.Builderb∈DebugsrcQuantCo∩ectLeanEng∈eRealTimeBacktest∈gRealTimeHand≤r.cs:l∈e158, atSystem.L∈q.Eνmerab≤Sorter2.ComputeKeys(TElement[] elements, Int32 count),   at System.Linq.EnumerableSorter1.ComputeMap(TE≤ment[]e≤ments,Int32count), atSystem.L∈q.Eνmerab≤Sorter1.Sort(TElement[] elements, Int32 count),   at System.Linq.OrderedEnumerable1.GetEνmera→r()+MoveNext(), atSystem.L∈q.Eνmerab≤.Se≤ctIPartitionItera→r2.ToList(),   at QuantConnect.Lean.Engine.RealTime.BacktestingRealTimeHandler.GetScheduledEventsSortedByTime() in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Engine/RealTime/BacktestingRealTimeHandler.cs:line 156,   at QuantConnect.Lean.Engine.RealTime.BacktestingRealTimeHandler.Setup(IAlgorithm algorithm, AlgorithmNodePacket job, IResultHandler resultHandler, IApi api, IIsolatorLimitResultProvider isolatorLimitProvider) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Engine/RealTime/BacktestingRealTimeHandler.cs:line 52,   at QuantConnect.Lean.Engine.Engine.Run(AlgorithmNodePacket job, AlgorithmManager manager, String assemblyPath, WorkerThread workerThread) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Engine/Engine.cs:line 291
 

Author

S.T.E

June 2022