Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error message; failed to execute DB job

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

    Error message; failed to execute DB job

    ''Failed to execute DB job 'StrategyUpdateJob'. A foreign key value cannot be inserted because a corresponding primary key value does not exist. [Foreign key constraint name= FK__nt_strategy2execution_00000000000028B ]

    i have about 6 strategies running. Some of them are the same exact strategy but on different symbols. So are same symbol but the strategy was activated at different times. I'm getting these errors and some of the orders are not executing.

    Whatsup?

    #2
    calhawk01, this is potentially an issue with your db file. I would suggest saving your applied strategies / parameters and then resetting the db under Tools > Options > Data. Then please recheck on newly added instances of your scripts.

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      calhawk01, this is potentially an issue with your db file. I would suggest saving your applied strategies / parameters and then resetting the db under Tools > Options > Data. Then please recheck on newly added instances of your scripts.

      How I saving..."your applied strategies / parameters"?

      Comment


        #4
        Hello jmagaia,

        Thanks for your post.

        NinjaTrader_Bertrand was referring to ensuring that the strategies them selves were saved along with an parameters settings. Through the normal course of strategy creation you end up saving the strategy. Each time you compile you save the strategy. The parameters are what was set up in the strategy user interface in case there were non- standard settings the user applied. These could be saved by screenshots. Under normal circumstances you would not need to do this. In this case it was because of a specific issue related to the database.

        NinjaTrader has a back-up and restore capability here is a link to the helpguide section on this subject: http://ninjatrader.com/support/helpG...p__restore.htm

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        55 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        142 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X