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 rocketman7, Today, 09:41 AM
    4 responses
    15 views
    0 likes
    Last Post rocketman7  
    Started by selu72, Today, 02:01 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by WHICKED, Today, 02:02 PM
    2 responses
    12 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by f.saeidi, Today, 12:14 PM
    8 responses
    21 views
    0 likes
    Last Post f.saeidi  
    Started by Mikey_, 03-23-2024, 05:59 PM
    3 responses
    51 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Working...
    X