Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"localization failed" errors new in version 8.0.20.0

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

    "localization failed" errors new in version 8.0.20.0

    Yesterday, using version 8.0.19.0, all of my code was operational with no exceptions. Today, using version 8.0.20.0, a lot of "InvalidOperationException" exceptions are thrown with a description of "Cannot retrieve property 'Name/GroupName/etc' because localization failed." This causes extremely long load times for indicators, and likely other NinjaTrader types. None of the built-in indicators seem to have this problem, but every one of my custom indicators suffers. My indicators do have a common inheritance hierarchy, but it is nothing unusual. I am certain this was not happening yesterday. I am definitely open to the possibility that I've simply done something wrong, but I sure do not know what.

    Any ideas or recommendations?

    See the following article for more information:

    #2
    Hello mroberts_nos,

    Based on the error I would make a guess that this relates to the way your custom scripts properties were coded. Can you check in one of the scripts which is currently having the error and look at your public properties, do they look like the following specifically with the ResourceType = included?



    Code:
    [Range(1, int.MaxValue), NinjaScriptProperty]
    [Display([B]ResourceType = typeof(Custom.Resource),[/B] Name = "Period", GroupName = "NinjaScriptParameters", Order = 0)]
    public int Period
    { get; set; }
    If so, you need to remove that part of the property. This code is used for internal indicators to locate language resource strings but does not work/need to be used with custom code. Your properties should look like:

    Code:
    [Range(1, int.MaxValue), NinjaScriptProperty]
    [Display(Name = "Period", GroupName = "NinjaScriptParameters", Order = 0)]
    public int Period
    { get; set; }


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by snoussi, Today, 12:26 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by f.saeidi, Today, 12:35 PM
    0 responses
    1 view
    0 likes
    Last Post f.saeidi  
    Started by SnailHorn, 05-02-2024, 10:49 PM
    3 responses
    29 views
    0 likes
    Last Post SnailHorn  
    Started by giulyko00, Today, 11:49 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by marksingh87, 02-13-2024, 04:55 PM
    6 responses
    213 views
    1 like
    Last Post mshrstv
    by mshrstv
     
    Working...
    X