• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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:

    http://screencast.com/t/SkRvHpXe




    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 newuser, Today, 08:37 AM
    0 responses
    1 view
    0 likes
    Last Post newuser
    by newuser
     
    Started by bc24fl, Today, 06:51 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by U0000999, Yesterday, 05:17 AM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by asmmbillah, Today, 05:03 AM
    2 responses
    23 views
    0 likes
    Last Post asmmbillah  
    Started by lordvader34, Today, 06:18 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Working...
    X