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 helpwanted, Today, 03:06 AM
    1 response
    10 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    9 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    387 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X