Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error: Failed to execute DB job 'StrategyUpdateJob

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

    Error: Failed to execute DB job 'StrategyUpdateJob

    I keep getting this error on beta 8. I am using the GAIN demo conection for forex.

    Failed to execute DB job 'StrategyUpdateJob': ObjectSpace: Entity Object not being Tracked - NinjaTrader.Strategy.StrategyData:bc4c5eacb1be4bfe 83c13f17fe68425c
    Any ideas?
    thanks

    #2
    Sorry no. Would you have a reproducible scenario? Thanks

    Comment


      #3
      Was getting the same error

      I uninstalled then reinstalled and it fixed the problem. Give that a try.

      -Tom

      Comment


        #4
        Thanks Tom...will give it a go.

        Comment


          #5
          This is what appears in the trace;
          2010-02-21 19:14:54:601 (AMP Futures) Cbi.OrderStatusEventArgs.Process: Order='7c647f855b3f492c9fbb6330b149918a/Sim101' Name='Stop_3' New state=Accepted Instrument='6B 03-10' Action=BuyToCover Limit price=0 Stop price=1.5572 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''
          2010-02-21 19:14:54:601 (AMP Futures) Cbi.OrderStatusEventArgs.Process: Order='5da0d56c108e4a9e92dc9a498eb63cd8/Sim101' Name='Target_3' New state=Accepted Instrument='6B 03-10' Action=BuyToCover Limit price=1.5392 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
          2010-02-21 19:14:54:601 (AMP Futures) Cbi.OrderStatusEventArgs.Process: Order='5da0d56c108e4a9e92dc9a498eb63cd8/Sim101' Name='Target_3' New state=Working Instrument='6B 03-10' Action=BuyToCover Limit price=1.5392 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
          2010-02-21 19:14:55:210 (AMP Futures) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='RealizedProfitLoss' Currency='Unknown' Value=0
          2010-02-21 19:14:55:547 Db.Globals.StrategyUpdateJob3: WARNING: 6B 03-10 Globex
          2010-02-21 19:14:55:870 Failed to execute DB job 'StrategyUpdateJob': ObjectSpace: Entity Object not being Tracked - NinjaTrader.Strategy.StrategyData:1fbd287a071d4798 a1d591080e42849e

          2010-02-21 19:45:45:022 (AMP Futures) Cbi.Order.Change: Order='5da0d56c108e4a9e92dc9a498eb63cd8/Sim101' Name='Target_3' State=Working Instrument='6B 03-10' Action=BuyToCover Limit price=1.5387 Stop price=0 Quantity=1 Strategy='gcCurrencyRange' Type=Limit Tif=Gtc Oco='' Filled=0 Fill price=0 Token='5da0d56c108e4a9e92dc9a498eb63cd8' Gtd='01/12/2099 12:00:00 AM'
          Does this part of the trace "ItemType='RealizedProfitLoss' Currency='Unknown' Value=0" help at all?
          If the error is related to RealizedProfitLoss, then I only have two separate if statements that might indirectly reference that object, they are:
          Code:
          if  (Performance.RealtimeTrades.TradesPerformance.Currency.CumProfit <= -2000 || Position.GetProfitLoss(Close[0], PerformanceUnit.Currency) < -1500)
          
          if (Position.GetProfitLoss(Close[0], PerformanceUnit.Points) < Instrument.MasterInstrument.Round2TickSize(channelWidthAtEntry *  -1))
          I also see that RealizedProfitLoss is a member of NinjaTrader.Cbi.AccountItemType...and I definitely do not reference that explicitly in my strategy.
          If these if statements look problematic, they have been running successfully on NT 6.5 for 8 months, 5 days a week with no problems.
          Last edited by astrolobe; 02-22-2010, 04:56 AM.

          Comment


            #6
            I believe we isolated the source of trouble. Next update will hold a fix. Thanks for reporting back.

            Comment


              #7
              I just got this error again with NT7B10

              Failed to execute DB job 'StrategyUpdateJob': ObjectSpace: Entity Object not being Tracked - NinjaTrader.Strategy.StrategyData:6ec4f44d2b6f45b4 816e1f0ba7920553

              Was this revised in this release or was the fix planned for next release?

              Comment


                #8
                That's odd. It should have been fixed for that release. Please double check you are on NT7B10 (Help->About).

                If you are: is there any way you could provide a reproducible scenario? Thanks

                Comment


                  #9
                  Dierk,
                  I am on version 10, see attached.

                  I am running the exact strategy on two machines, one XP, one Vista.
                  The XP machine has not had this error since I installed B10.
                  The Vista machine is the one I am having issues with.
                  I ran this same strategy all day yesterday on both machines without a glitch.
                  As in my previous posts, I cannot determine what is causing it to occur the first time.

                  Once this happens, I need to reset my DB to move forward, which is not optimal.

                  I will prune down my strategy and see if I can get something to send into support but I cannot give you a scenario that recreates the issue.
                  Attached Files

                  Comment


                    #10
                    Still no sure ... could you please paste the relevant sections of the trace file holding the exception info? Thanks

                    Comment


                      #11
                      Also: Are you doing something like enabling or disabling your strategy by your custom code? Thanks

                      Comment


                        #12
                        Dierk,
                        I am not enabling/disabling the strategy from within the code, only via the chart menus.

                        Here are errors from within the trace file.

                        2010-02-26 11:09:59:456 (AMP Demo) Cbi.Connection.ProcessEventArgs.OrderStatusEventAr gs: Order='ef138af243b1437aaab8bb0ab9b64b7c/Sim101' Name='Buy to cover' New state=Initialized Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
                        2010-02-26 11:09:59:457 (AMP Demo) Cbi.Order.Update1: oldid='ef138af243b1437aaab8bb0ab9b64b7c' Order='ef138af243b1437aaab8bb0ab9b64b7c/Sim101' Name='Buy to cover' New state=Initialized Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
                        2010-02-26 11:09:59:457 (AMP Demo) Cbi.Order.Submit: Order='ef138af243b1437aaab8bb0ab9b64b7c/Sim101' Name='Buy to cover' State=Initialized Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Strategy='GBT3AVG' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='b6d6dda5ea954d89ac14abfe7165563d' Gtd='12/1/2099 12:00:00 AM'
                        2010-02-26 11:09:59:457 (AMP Demo) Cbi.Simulator.Submit: Order='ef138af243b1437aaab8bb0ab9b64b7c/Sim101' Name='Buy to cover' State=Initialized Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Strategy='GBT3AVG' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='b6d6dda5ea954d89ac14abfe7165563d' Gtd='12/1/2099 12:00:00 AM'
                        2010-02-26 11:09:59:457 (AMP Demo) Cbi.Connection.ProcessEventArgs.OrderStatusEventAr gs: Order='b6d6dda5ea954d89ac14abfe7165563d/Sim101' Name='Buy to cover' New state=PendingSubmit Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
                        2010-02-26 11:09:59:457 (AMP Demo) Cbi.Order.Update1: oldid='ef138af243b1437aaab8bb0ab9b64b7c' Order='b6d6dda5ea954d89ac14abfe7165563d/Sim101' Name='Buy to cover' New state=PendingSubmit Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
                        2010-02-26 11:09:59:482 (AMP Demo) Cbi.OrderStatusEventArgs.Process: Order='ef138af243b1437aaab8bb0ab9b64b7c/Sim101' Name='Buy to cover' New state=Initialized Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
                        2010-02-26 11:09:59:483 (AMP Demo) Cbi.OrderStatusEventArgs.Process: Order='b6d6dda5ea954d89ac14abfe7165563d/Sim101' Name='Buy to cover' New state=PendingSubmit Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
                        2010-02-26 11:09:59:784 (AMP Demo) Cbi.Connection.ProcessEventArgs.OrderStatusEventAr gs: Order='b6d6dda5ea954d89ac14abfe7165563d/Sim101' Name='Buy to cover' New state=Accepted Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
                        2010-02-26 11:09:59:784 (AMP Demo) Cbi.Order.Update1: oldid='b6d6dda5ea954d89ac14abfe7165563d' Order='b6d6dda5ea954d89ac14abfe7165563d/Sim101' Name='Buy to cover' New state=Accepted Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
                        2010-02-26 11:09:59:785 (AMP Demo) Cbi.Connection.ProcessEventArgs.OrderStatusEventAr gs: Order='b6d6dda5ea954d89ac14abfe7165563d/Sim101' Name='Buy to cover' New state=Working Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
                        2010-02-26 11:09:59:785 (AMP Demo) Cbi.Order.Update1: oldid='b6d6dda5ea954d89ac14abfe7165563d' Order='b6d6dda5ea954d89ac14abfe7165563d/Sim101' Name='Buy to cover' New state=Working Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
                        2010-02-26 11:09:59:785 (AMP Demo) Cbi.Simulator.Fill1: id='b6d6dda5ea954d89ac14abfe7165563d' maxFillQuantity=1 price=1.365
                        2010-02-26 11:09:59:785 (AMP Demo) Cbi.Simulator.Fill2: id='b6d6dda5ea954d89ac14abfe7165563d' fillQuantity=1 price=1.365
                        2010-02-26 11:09:59:785 (AMP Demo) Cbi.Simulator.FillNow: id='b6d6dda5ea954d89ac14abfe7165563d' state='Working' instrument='6E 03-10' quantity=1 filled=0 price=1.365
                        2010-02-26 11:09:59:785 (AMP Demo) Cbi.Connection.ProcessEventArgs.OrderStatusEventAr gs: Order='b6d6dda5ea954d89ac14abfe7165563d/Sim101' Name='Buy to cover' New state=Filled Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=1 Fill price=1.365 Error=NoError Native error=''
                        2010-02-26 11:09:59:785 (AMP Demo) Cbi.Order.Update1: oldid='b6d6dda5ea954d89ac14abfe7165563d' Order='b6d6dda5ea954d89ac14abfe7165563d/Sim101' Name='Buy to cover' New state=Filled Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=1 Fill price=1.365 Error=NoError Native error=''
                        2010-02-26 11:09:59:786 (AMP Demo) Cbi.Connection.ProcessEventArgs.ExecutionUpdateEve ntArgs: Execution='f8e6ef827c6e4f7582aa385fe9207718' Instrument='6E 03-10' Account='Sim101' Exchange=Default Price=1.365 Quantity=1 Market position=Long Operation=Insert Order='b6d6dda5ea954d89ac14abfe7165563d' Time='2/26/2010 11:09:59 AM'
                        2010-02-26 11:09:59:788 (AMP Demo) Cbi.Connection.ProcessEventArgs.PositionUpdateEven tArgs1: Instrument='6E 03-10' Account='Sim101' Avg price=1.365 Quantity=0 Market position=Short Operation=Remove Currency=Unknown
                        2010-02-26 11:09:59:789 (AMP Demo) Cbi.OrderStatusEventArgs.Process: Order='b6d6dda5ea954d89ac14abfe7165563d/Sim101' Name='Buy to cover' New state=Accepted Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
                        2010-02-26 11:09:59:790 (AMP Demo) Cbi.OrderStatusEventArgs.Process: Order='b6d6dda5ea954d89ac14abfe7165563d/Sim101' Name='Buy to cover' New state=Working Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
                        2010-02-26 11:09:59:791 (AMP Demo) Cbi.OrderStatusEventArgs.Process: Order='b6d6dda5ea954d89ac14abfe7165563d/Sim101' Name='Buy to cover' New state=Filled Instrument='6E 03-10' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=1 Fill price=1.365 Error=NoError Native error=''
                        2010-02-26 11:09:59:792 (AMP Demo) Cbi.ExecutionEventArgs.Process: Execution='f8e6ef827c6e4f7582aa385fe9207718' Instrument='6E 03-10' Account='Sim101' Exchange=Default Price=1.365 Quantity=1 Market position=Long Operation=Insert Order='b6d6dda5ea954d89ac14abfe7165563d' Time='2/26/2010 11:09:59 AM'
                        2010-02-26 11:09:59:795 (AMP Demo) Cbi.PositionUpdateEventArgs.Process: Instrument='6E 03-10' Account='Sim101' Avg price=1.365 Quantity=0 Market position=Short Operation=Remove Currency=Unknown
                        2010-02-26 11:09:59:798 (AMP Demo) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='BuyingPower' Currency='Unknown' Value=199539.4
                        2010-02-26 11:09:59:799 (AMP Demo) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='CashValue' Currency='Unknown' Value=99769.7000000001
                        2010-02-26 11:09:59:799 (AMP Demo) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='ExcessEquity' Currency='Unknown' Value=199539.4
                        2010-02-26 11:09:59:799 (AMP Demo) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='InitialMargin' Currency='Unknown' Value=0
                        2010-02-26 11:09:59:799 (AMP Demo) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='RealizedProfitLoss' Currency='Unknown' Value=-177.740000000008
                        2010-02-26 11:10:00:660 Failed to execute DB job 'StrategyUpdateJob': ObjectSpace: Entity Object not being Tracked - NinjaTrader.Strategy.StrategyData:6ec4f44d2b6f45b4 816e1f0ba7920553
                        2010-02-26 11:10:00:706 (AMP Demo) Cbi.AccountUpdateEventArgs.Process: Account='Sim101' ItemType='RealizedProfitLoss' Currency='Unknown' Value=-177.740000000008
                        2010-02-26 11:10:16:477 (AMP Demo) Hosted.Adapter.OnLineUpdate: account='77777' fcm='Dorman' ib='Demo' exchange='CME' ticker='ESH0' orderNum=14235212 context=0 orderType=Stop action=Buy quantity=1 limitPrice=-1 stopPrice=1105.25 tif=Day orderState=Accepted filled=0 avgFillPrice=-1 text=''

                        Comment


                          #13
                          Thanks. Hmm .. still no idea. I needed to think about that one.

                          Comment


                            #14
                            My XP machine is working fine where before I experienced the error on both platforms.
                            Do not know if this helps or not.

                            Comment


                              #15
                              I guess not. But thanks anyway.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by bee1943, Today, 09:55 AM
                              0 responses
                              1 view
                              0 likes
                              Last Post bee1943
                              by bee1943
                               
                              Started by giulyko00, Yesterday, 11:49 AM
                              4 responses
                              24 views
                              0 likes
                              Last Post giulyko00  
                              Started by NUVERSA, Today, 09:31 AM
                              1 response
                              7 views
                              0 likes
                              Last Post NinjaTrader_BrandonH  
                              Started by rene69851, 05-02-2024, 03:25 PM
                              2 responses
                              29 views
                              0 likes
                              Last Post NinjaTrader_Kimberly  
                              Started by ttrader23, Yesterday, 09:04 AM
                              8 responses
                              37 views
                              0 likes
                              Last Post NinjaTrader_Gaby  
                              Working...
                              X