OD aplication stop working
Posted: Mon Jun 05, 2017 6:58 am
Hello,
I have problem with stability of the aplication OD 16.2.131.0. Everything was O.K. till number of patient 131. I added patient number 132 and started to fill the chart. The aplication suddenly stopped work and OD was closed. Can you help me with the problem?
Thank you.
Tomas
There is log:
MySql.Data.MySqlClient.MySqlException (0x80004005): Duplicate entry '0' for key 'PRIMARY'
v OpenDentBusiness.DataConnection.NonQ(String commands, Boolean getInsertID, OdSqlParameter[] parameters) v D:\Dental16.2\OpenDentBusiness\Db\DataConnection.cs:line 757
v OpenDentBusiness.DataCore.NonQ(String command, Boolean getInsertID, OdSqlParameter[] parameters) v D:\Dental16.2\OpenDentBusiness\Db\DataCore.cs:line 34
v OpenDentBusiness.Db.NonQ(String command, Boolean getInsertID, OdSqlParameter[] parameters) v D:\Dental16.2\OpenDentBusiness\Db\Db.cs:line 86
v OpenDentBusiness.Crud.ToothInitialCrud.Insert(ToothInitial toothInitial, Boolean useExistingPK) v D:\Dental16.2\OpenDentBusiness\Crud\ToothInitialCrud.cs:line 138
v OpenDentBusiness.Crud.ToothInitialCrud.Insert(ToothInitial toothInitial) v D:\Dental16.2\OpenDentBusiness\Crud\ToothInitialCrud.cs:line 110
v OpenDentBusiness.ToothInitials.Insert(ToothInitial init) v D:\Dental16.2\OpenDentBusiness\Data Interface\ToothInitials.cs:line 33
v OpenDentBusiness.ToothInitials.SetValueQuick(Int64 patNum, String tooth_id, ToothInitialType initialType, Single moveAmt) v D:\Dental16.2\OpenDentBusiness\Data Interface\ToothInitials.cs:line 81
v OpenDental.ContrChart.butMixed_Click(Object sender, EventArgs e) v D:\Dental16.2\OpenDental\Main Modules\ContrChart.cs:line 8848
v System.Windows.Forms.Control.OnClick(EventArgs e)
v System.Windows.Forms.Button.OnClick(EventArgs e)
v OpenDental.UI.Button.OnClick(EventArgs ea) v D:\Dental16.2\OpenDental\UI\Button.cs:line 155
v System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
v System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
v System.Windows.Forms.Control.WndProc(Message& m)
v System.Windows.Forms.ButtonBase.WndProc(Message& m)
v System.Windows.Forms.Button.WndProc(Message& m)
v System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
v System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
v System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I have problem with stability of the aplication OD 16.2.131.0. Everything was O.K. till number of patient 131. I added patient number 132 and started to fill the chart. The aplication suddenly stopped work and OD was closed. Can you help me with the problem?
Thank you.
Tomas
There is log:
MySql.Data.MySqlClient.MySqlException (0x80004005): Duplicate entry '0' for key 'PRIMARY'
v OpenDentBusiness.DataConnection.NonQ(String commands, Boolean getInsertID, OdSqlParameter[] parameters) v D:\Dental16.2\OpenDentBusiness\Db\DataConnection.cs:line 757
v OpenDentBusiness.DataCore.NonQ(String command, Boolean getInsertID, OdSqlParameter[] parameters) v D:\Dental16.2\OpenDentBusiness\Db\DataCore.cs:line 34
v OpenDentBusiness.Db.NonQ(String command, Boolean getInsertID, OdSqlParameter[] parameters) v D:\Dental16.2\OpenDentBusiness\Db\Db.cs:line 86
v OpenDentBusiness.Crud.ToothInitialCrud.Insert(ToothInitial toothInitial, Boolean useExistingPK) v D:\Dental16.2\OpenDentBusiness\Crud\ToothInitialCrud.cs:line 138
v OpenDentBusiness.Crud.ToothInitialCrud.Insert(ToothInitial toothInitial) v D:\Dental16.2\OpenDentBusiness\Crud\ToothInitialCrud.cs:line 110
v OpenDentBusiness.ToothInitials.Insert(ToothInitial init) v D:\Dental16.2\OpenDentBusiness\Data Interface\ToothInitials.cs:line 33
v OpenDentBusiness.ToothInitials.SetValueQuick(Int64 patNum, String tooth_id, ToothInitialType initialType, Single moveAmt) v D:\Dental16.2\OpenDentBusiness\Data Interface\ToothInitials.cs:line 81
v OpenDental.ContrChart.butMixed_Click(Object sender, EventArgs e) v D:\Dental16.2\OpenDental\Main Modules\ContrChart.cs:line 8848
v System.Windows.Forms.Control.OnClick(EventArgs e)
v System.Windows.Forms.Button.OnClick(EventArgs e)
v OpenDental.UI.Button.OnClick(EventArgs ea) v D:\Dental16.2\OpenDental\UI\Button.cs:line 155
v System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
v System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
v System.Windows.Forms.Control.WndProc(Message& m)
v System.Windows.Forms.ButtonBase.WndProc(Message& m)
v System.Windows.Forms.Button.WndProc(Message& m)
v System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
v System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
v System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)