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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    77 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    27 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    63 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X