Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DB job error launching NT7

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

    DB job error launching NT7

    When launching NT7 I'm getting the following:

    "Failed to execute DB job 'StrategyUpdateJob': There was an error generating the XML document: Object reference not set to an instance of an object."

    No clue what's happening there - can I ignore this?

    #2
    This might be an issue related to a former error on migrating your NT6.5 DB. Please delete your DB file <my documents>/NinjaTrader7/db/NinjaTrader.sdf.

    In case the issue persists, then one of your strategies has a coding bug which would prevent it from being XML serialized. I then suggest consulting the MS docs on what you needed to check for to make sure you strategy could be XML serialized.

    Comment


      #3
      Originally posted by NinjaTrader_Dierk View Post
      This might be an issue related to a former error on migrating your NT6.5 DB. Please delete your DB file <my documents>/NinjaTrader7/db/NinjaTrader.sdf.

      In case the issue persists, then one of your strategies has a coding bug which would prevent it from being XML serialized. I then suggest consulting the MS docs on what you needed to check for to make sure you strategy could be XML serialized.
      As far as I remember I did not report any NT6.5 migration errors - which thread are you thinking about?

      What are the implications of deleting the NinjaTrader.sdf file?

      Finally, I am not doing any XML serialization - right now I only have on strategy in NT7 and it is not persisting anything.

      Comment


        #4
        Btw

        If I temporarily rename NinjaTrader.sdf to a BAK file I lose all my settings, which would take me a long time to reset. So, before I waste hours doing that I'd like to get an idea what causes this error and what exactly is being persisted to XML. I for one am not writing any XML files, so your previous comment confuses me a bit.

        Comment


          #5
          The public properties of your strategy are persisted by XML serialization. You need to code these properties so they would comply to the restrictions of XML serialization. Please consult the relevant MS docs for details or use the strategy wizard so see how public properties needed to look like in order to properly being XML serialized.. Thanks

          Comment


            #6
            Got it

            Okay, I get it - this is the same concept as with Java beans serialization, a concept I'm familiar with. Fact is however that I have implemented my public vars in that fashion (private plus getter/setter).

            Comment


              #7
              One of these getter/setter causes exception below.

              Comment


                #8
                I doubt it - I checked them and they look standard. Before we jump to conclusions - is there anything else that could trigger this error?

                Comment


                  #9
                  Not that I'm aware of

                  Comment


                    #10
                    Not helping

                    Well - first up I'd like to get the latest NT7 binary - it was mentioned by Josh in a separate thread and although I have asked

                    THREE TIMES!!!!!

                    by now nobody is sending the URL. Once you guys finally relent to sending me the latest binary I would be happy to continue testing the beta.

                    FYI - I have gone through all my setters/getters and they are good. This never happened in NT6, so why is it happening now? I sense this is a bug.

                    Comment


                      #11
                      Since this still is not a public beta yet, you had been sent a mail with the URL. In case you have not received this mail then you needed to check your spam blockers. In case you need to get this mail again, please contact "sales AT ninjatrader DOT com" and ask for the NT7B4 announcement mail again.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      629 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      364 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      105 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      564 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      568 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X