Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
StrategyUpdateJob Error
Collapse
X
-
I got the same error once again now that I have upgraded to NT7B7.
Did not happen at first.
Failed to execute DB job 'StrategyUpdateJob': ObjectSpace: Entity Object not being Tracked - NinjaTrader.Strategy.StrategyData:7fdffb84c8c549e0 90a63de422f7a7d8
It failed on every entry and exit after it happened the first time.
Will try to simplify the strategy tomorrow and post.
Comment
-
I got a similar error message when applying the SampleMultiTimeFrame strategy. The error message is:
Failed to execute DB job 'StrategyUpdateJob': Could not load file or assembly 'System.Data.SqlServerCe, Version=3.5.1.0. Culture=neural, PublicKey Token=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
By the way, I am using NT7 beta 7. No such problems presents in beta 6.
Comment
-
fskidd,
I actually had to uninstall and reinstall NT7, including deleting the NT7 directory.
I believe there are other posts that explain the reason for this. (i.e. on migration to NTB7, the database becomes corrupted and needs to be rebuilt during the installation process)
Please backup any and all of your changes before you try this step.
Comment
-
Thanks. Please let us know as you have a reproducible scenario.Originally posted by gyoung View PostI got the same error once again now that I have upgraded to NT7B7.
Did not happen at first.
Failed to execute DB job 'StrategyUpdateJob': ObjectSpace: Entity Object not being Tracked - NinjaTrader.Strategy.StrategyData:7fdffb84c8c549e0 90a63de422f7a7d8
It failed on every entry and exit after it happened the first time.
Will try to simplify the strategy tomorrow and post.
Comment
-
JD,
I have been trying to get something that is reproducible so that the team can debug and I have been unsuccessful so far.
What I have found is that if I have a separate strategy for each chart, I do not get the error. Strategy1, Strategy2,,,StrategyN.
I am going to continue down this path until someone is able to give them a reproducible environment they can debug.
Comment
-
Gary,
On NT 6.5 with our production machines, we frequently run same strategies StrategyX across different chart instances (sometimes against same symbol but with different param values and sometimes against different symbols). So this is a must have scenario as it works fine in 6.5. Are you able to reproduce this issue always if you have same StrategyX but 2 instances of them running on 2 different chart instances like I demonstrated? Or is it just that you only sometimes get this error and only when its the same strat across different charts?
JD
Comment
-
JD,
I was running the same strategy on multiple charts, same instrument but different parameters as well as on different instruments and the error was not consistent.
Some days, it would not error until late in the afternoon. Other times, every execution. No pattern.
I cannot find the root cause at this point.
I agree, this issue needs to be resolved.
There must be some sort of global shared variable or value tied to the strategy name that is being corrupted or otherwise being locked out.
Comment
-
I just got this error after saving my Untitled1 workspace to a new one named "QA" and noticed the Entity Object not being Tracked is in the trace file just before the exception that caused error to pop up (see attachment). Perhaps this will help somehow..
Code:2010-02-09 14:26:19:558 in OnUnhandledThreadException 2010-02-09 14:26:19:587 ********* exception trapped ********* 2010-02-09 14:26:19:587 ObjectSpace: Entity Object not being Tracked - NinjaTrader.Strategy.StrategyData:7e23e24789674495b5fae61ff1b8b503 2010-02-09 14:26:19:587 at Wilson.ORMapper.Internals.Context.get_Item(Object entityObject) at Wilson.ORMapper.Transaction.PersistChanges(ICollection entityObjects, PersistDepth persistDepth) at Wilson.ORMapper.ObjectSpace.PersistChanges(ICollection entityObjects, PersistDepth persistDepth) at Wilson.ORMapper.ObjectSpace.PersistChanges(Object entityObject) at NinjaTrader.Strategy.StrategyGridDisplay.RenameWorkspace(String oldName, String newName) at NinjaTrader.Gui.WorkspaceOptions.SaveWorkspaceAs(String filename, String asFilename) at NinjaTrader.Gui.ControlCenterForm.OnSaveWorkspaceAs(Object sender, EventArgs e) at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 2010-02-09 14:26:19:601 Strategy.StrategyBase.CancelAllOrders: Order='bb2da862f9b74dd0845718094787603d/Sim101' Name='Close position' State=Filled Instrument='FDAX 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Strategy='SampleMACrossOver' Type=Market Tif=Gtc Oco='' Filled=1 Fill price=5565 Token='bb2da862f9b74dd0845718094787603d' Gtd='12/1/2099 12:00:00 AM' 2010-02-09 14:26:19:602 Strategy.StrategyBase.CancelAllOrders: Order='ba97c7b2dd224b62afb29a1b31595ed7/Sim101' Name='Close position' State=Filled Instrument='FDAX 03-10' Action=Sell Limit price=0 Stop price=0 Quantity=1 Strategy='SampleMACrossOver' Type=Market Tif=Gtc Oco='' Filled=1 Fill price=5557.5 Token='ba97c7b2dd224b62afb29a1b31595ed7' Gtd='12/1/2099 12:00:00 AM' 2010-02-09 14:26:19:693 Strategy.StrategyBase.CancelAllOrders: Order='7ca4f4fb490b4a65865dc143d355204c/Sim101' Name='Close position' State=Filled Instrument='FDAX 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Strategy='SampleMACrossOver' Type=Market Tif=Gtc Oco='' Filled=1 Fill price=5565 Token='7ca4f4fb490b4a65865dc143d355204c' Gtd='12/1/2099 12:00:00 AM' 2010-02-09 14:26:19:693 Strategy.StrategyBase.CancelAllOrders: Order='bc433ecec7ed450280504b4400b3c727/Sim101' Name='Close position' State=Filled Instrument='FDAX 03-10' Action=Sell Limit price=0 Stop price=0 Quantity=1 Strategy='SampleMACrossOver' Type=Market Tif=Gtc Oco='' Filled=1 Fill price=5557.5 Token='bc433ecec7ed450280504b4400b3c727' Gtd='12/1/2099 12:00:00 AM'
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
603 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
349 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
104 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
560 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment