Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

There was an error generating the XML document.

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

    There was an error generating the XML document.

    Anyone got any tips for resolving this error?

    "There was an error generating the XML document"

    It happens on a custom indicator of mine with just 1 simple parameter.

    #region Properties
    [NinjaScriptProperty]
    [Display(Name="AutoT", Description="Autotrade", Order=0, GroupName="Parameters")]
    public bool AutoT
    { get; set; }


    I sent the indicator to support, but as you can put this part in code itself in a clean indicator and it does not error... I have always had an issue with this one indicator. The whole NT app has been uninstalled and re-installed from clean many times, no difference, so I know it is the indicator code causing it.

    The trace log only shows the error as

    2017-05-11 18:07:25:328 ERROR: Could not save indicator 'pjsLights:' There was an error generating the XML document.


    So no help there as to what might be causing it. These are 'unhandled exceptions', so bugs, in my mind. If they were handled errors, they obviously would be 'caught' and reported cleanly.

    This error can be reproduced when saving any chart window with the indicator on, or trying to save as a template.

    I'm not asking for a NT support response (I have, but tired of being told it's my pc and to asked to uninstall and rebuild my workspace which takes me hours when I know it is OK), but if anyone has come across this and has any luck resolving, please do let me know. This (apart from a documented bug in NT) is the only other issue I have with the platform, despite daily use, but unfortunately they are show stopping issues going forward.

    Given the above sample can be put in a new indicator and it will save and this is the only coded parameter, I wonder what else re an indicator NT tries to save as XML?

    In case it makes any difference, this indicator adds 6 plots and 6 dataseries, but as far as I know, that's just coded and not stored as XML when saving a template. The indicator itself works perfectly, just as a result of the error, the charts do not save and have to be rebuilt on every load.

    Many thanks.

    #2
    Hello pjsmith,

    Thank you for your note.

    Without the full code we're unable to test on our end.

    If you'd like to upload the full code I can take a look and see if anything jumps out. Or if you'd prefer to email a copy, send to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread, and the files.

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_AlanP View Post
      Hello pjsmith,

      Thank you for your note.

      Without the full code we're unable to test on our end.

      If you'd like to upload the full code I can take a look and see if anything jumps out. Or if you'd prefer to email a copy, send to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread, and the files.

      I look forward to your reply.
      Hi,

      Thanks for the quick response.

      I have dropped you an email. Thank you.

      Comment


        #4
        How was this error fixed?

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        7 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        4 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        12 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        13 views
        0 likes
        Last Post bltdavid  
        Working...
        X