I have been struggling with this error for awhile, It seems there is a casting error my assumption would be there is int and it should be bigint
The temporary solution I am using right now I delete the SQL DB and report again but this issue keeps happen every like 4-6 hours which is annoying
Based on my experience the cause of the issue as explained one of the number which suppose to be int grow and become big int which can't be casted anymore
I hope this info help your team
2024-02-03 00:30:07:996 Exception has been thrown by the target of an invocation.
2024-02-03 00:30:07:997 Specified cast is not valid.
2024-02-03 00:30:07:998 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Specified cast is not valid.
at System.Data.SQLite.SQLiteDataReader.VerifyType(Int 32 i, DbType typ)
at System.Data.SQLite.SQLiteDataReader.GetDouble(Int3 2 i)
at NinjaTrader.Cbi.Execution.DbGetExecutions1(IDbComm and cmd)
at NinjaTrader.Cbi.Execution.DbGet(Account account, Instrument instrument, DateTime minTime, DateTime maxTime)
at NinjaTrader.Gui.Chart.ChartBars.LoadExecutionsByAc count(ChartBars chartBars, Account account, ChartControl chartControl)
at NinjaTrader.Gui.Chart.ChartBars.CollectExecutions( ChartControl chartControl)
at NinjaTrader.Gui.Chart.ChartControl.<>c__DisplayCla ss438_0.<OnGetBarsCallback>b__0(Bars bars, ChartControl chartControl, ChartBars chartBars2, Int32 generation)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeIn ternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Comment