Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8B11 - Unhandled Exception: The given key was not present in the dictionary

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

    NT8B11 - Unhandled Exception: The given key was not present in the dictionary

    1) Created strategy in wizard. Did not unlock code.

    Connected to Playback-MR.

    Went to view it in the editor (to see why it entered at midnight since there is no VIX data for the secondary series at that time), and got an unhandled exception.

    It's trying to bring up the builder but is failing.

    image:






    The details:

    Code:
    2016-05-15 23:05:11:420 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=RealizedProfitLoss currency=UsDollar value=*****
    2016-05-15 23:05:51:322 *************** unhandled exception trapped ***************
    2016-05-15 23:05:51:322 The given key was not present in the dictionary.
    2016-05-15 23:05:51:332 System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at NinjaTrader.Gui.NinjaScript.Wizard.WizardViewModel.LoadSelectedStrategy()
       at NinjaTrader.Gui.NinjaScript.Wizard.WizardViewModel..ctor(WizardWindow owner, ScriptType initialScriptType, String loadItem)
       at NinjaTrader.Gui.NinjaScript.Wizard.WizardWindow.OnLoaded(Object sender, RoutedEventArgs e)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
       at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
       at MS.Internal.LoadedOrUnloadedOperation.DoWork()
       at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       at System.Windows.Interop.HwndTarget.OnResize()
       at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
    Last edited by sledge; 05-15-2016, 09:22 PM.

    #2
    Hello sledge,

    Thanks for your post.

    I was able to recreate with and without market replay. It seems if you attempt to open a locked strategy (note the file shows a lock in the NS editor) that the error is produced.

    I will write this up and will update this thread when I have further information.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GwFutures1988, Today, 02:48 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    6 responses
    29 views
    0 likes
    Last Post ScottWalsh  
    Started by frankthearm, Today, 09:08 AM
    10 responses
    36 views
    0 likes
    Last Post frankthearm  
    Started by mmenigma, Today, 02:22 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by NRITV, Today, 01:15 PM
    2 responses
    9 views
    0 likes
    Last Post NRITV
    by NRITV
     
    Working...
    X