Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Import symbol already in list causes exception

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

    Import symbol already in list causes exception

    If I am using the import stock symbol list functionality to add symbols to an existing list, and some of the symbols already exist in the list (not in the DB, but the list), this exception is thrown:

    2008-03-01 11:18:48:350 in OnUnhandledThreadException
    2008-03-01 11:18:48:350 ********* exception trapped *********
    2008-03-01 11:18:48:350 Item has already been added. Key in dictionary: '7002ecf8cfae4bc6bf944f7d0e83d197' Key being added: '7002ecf8cfae4bc6bf944f7d0e83d197'
    2008-03-01 11:18:48:350 at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
    at System.Collections.Hashtable.Add(Object key, Object value)
    at Wilson.ORMapper.ObjectSet.Add(Object objectKey, Object entityObject)
    at Wilson.ORMapper.ObjectList.Add(Object entityObject)
    at NinjaTrader.Cbi.StockImport.OnOk(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    This is actually a problem because I keep 1 bulk list for re-screening as I change my strategies. Any chance this can be changed to simply ignore the duplicate symbols so I don't have to dedup the list by hand?

    #2
    It was suppose to ignore duplicates. What version are you using?
    RayNinjaTrader Customer Service

    Comment


      #3
      I'm on beta 9.

      Comment


        #4
        Hmm .. tried to reproduce with a simple list consisting of "AAAA" and "AAAA" but failed.

        Could you please mail me your import list? Thanks

        Comment


          #5
          Disregard. Found the bug. Will be fixed with next update. Thanks for reporting.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ETFVoyageur, 04-30-2024, 02:04 PM
          9 responses
          56 views
          0 likes
          Last Post ETFVoyageur  
          Started by Felix Reichert, 04-26-2024, 02:12 PM
          8 responses
          48 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by Irukandji, Yesterday, 05:50 AM
          2 responses
          9 views
          0 likes
          Last Post Irukandji  
          Started by Creamers, 04-27-2024, 05:32 AM
          10 responses
          66 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by seq2seq, 05-07-2023, 07:26 PM
          7 responses
          566 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Working...
          X