Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

StrategyUpdateJob Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Great. Thanks for your efforts in testing.
    Josh P.NinjaTrader Customer Service

    Comment


      #17
      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


        #18
        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


          #19
          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


            #20
            Originally posted by gyoung View Post
            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.
            Thanks. Please let us know as you have a reproducible scenario.

            Comment


              #21
              Dierk,
              I have been running the same strategy this AM without any issues whatsoever.
              I am not really sure what is going on with this one.
              I will continue to test and once I have a reproducible scenario, I will send it to you for analysis.

              Comment


                #22
                Thanks. Sounds good

                Comment


                  #23
                  I just experienced this error on NT7B8 after a fresh install. I'm using SampleMACrossOver as my strategy with default settings. I have it running on 2 charts (both 5 Renko with FDAX 03-10).

                  Attached is message pop-up.
                  Attached Files

                  Comment


                    #24
                    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


                      #25
                      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


                        #26
                        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


                          #27
                          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'
                          Attached Files

                          Comment


                            #28
                            jdfagan,

                            Are you able to reproduce? Can you provide background information on the workspace? Thank you.
                            Josh P.NinjaTrader Customer Service

                            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 Geovanny Suaza  
                            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                            0 responses
                            349 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by Mindset, 02-09-2026, 11:44 AM
                            0 responses
                            104 views
                            0 likes
                            Last Post Mindset
                            by Mindset
                             
                            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                            0 responses
                            560 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by RFrosty, 01-28-2026, 06:49 PM
                            0 responses
                            560 views
                            1 like
                            Last Post RFrosty
                            by RFrosty
                             
                            Working...
                            X