Specifically I am trying to create the contract roll-overs for
ES 12-99
ES 09-99
ES 06-99
ES 03-99
When I click Ok on in the Contract Months dialog box I get the following error in the trace file.
2010-01-04 21:30:21:668 in OnUnhandledThreadException
2010-01-04 21:30:22:089 ********* exception trapped *********
2010-01-04 21:30:22:089 A duplicate value cannot be inserted into a unique index. [ Table name = nt_instrument,Constraint name = nt_instrument_ui ]
2010-01-04 21:30:22:089 at System.Data.SqlServerCe.SqlCeCommand.ProcessResult s(Int32 hr)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteComman dText(IntPtr& pCursor, Boolean& isBaseTableCursor)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteComman d(CommandBehavior behavior, String method, ResultSetOptions options)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQue ry()
at Wilson.ORMapper.Internals.Connection.TransactionCo mmand(Guid transactionId, Type entityType, CommandInfo commandInfo, IDbTransaction transaction, String sqlStatement, Parameter[] parameters)
at Wilson.ORMapper.Internals.Instance.InsertObject(Tr ansaction transaction)
at Wilson.ORMapper.Internals.Instance.PersistChanges( Transaction transaction, PersistDepth persistDepth, Boolean parentDeleted)
at Wilson.ORMapper.Transaction.PersistChanges(ICollec tion entityObjects, PersistDepth persistDepth)
at NinjaTrader.Db.Globals.CreateInstruments(Transacti on transaction, MasterInstrument masterInstrument)
at NinjaTrader.Gui.InstrumentEditor.OnOk(Object sender, EventArgs e)
at System.Windows.Forms.Control.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.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
This is NT7 64 Bit (7.0.0.6) running on Windows 7 Ultimate x64
Thanks
Rich
Comment