Opened 18 years ago

Last modified 17 years ago

#87 closed defect (fixed)

BZ072 Adding a new order does not work Primary Key missing (Suppliment

Reported by: Mark J. Millard Owned by: Pete Cyr
Priority: blocker Milestone: Beta 1
Component: Curator Tool Version: Beta 3
Severity: critical Keywords: CC1 Client Component 1
Cc: lisa.burke@… Database Engine: N/A
Operating System: N/A

Description

This may be preliminary. I didn't enter an order number because I thought that
was user defined. Here is the detail, at the end.

Pete indicated that orders could not be inserted on 2009-02-05 with version
v1.0.3321.41256 because of a database-middle tier issue (strict adherance to
keys). He is working with Brock on that. This needs testing with next version
with OK from CYR.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

Exception Text
System.Web.Services.Protocols.SoapException:
System.Web.Services.Protocols.SoapException: Server was unable to process
request. ---> MySql.Data.MySqlClient.MySqlException: You have an error in your
SQL syntax; check the manual that corresponds to your MySQL server version for
the right syntax to use near '() values (NULL)' at line 1

at GrinGlobal.Sql.SecureData.HandleException(Exception ex, Boolean addFirst)

in D:\projects\GrinGlobal\GrinGlobal.Sql\SecureData.cs:line 76

at GrinGlobal.Sql.SecureData.HandleException(Exception ex) in

D:\projects\GrinGlobal\GrinGlobal.Sql\SecureData.cs:line 59

at GrinGlobal.Sql.SecureData.Process(SecureDataCallback callback) in

D:\projects\GrinGlobal\GrinGlobal.Sql\SecureData.cs:line 911

at GrinGlobal.Sql.SecureData.Save(DataSet dsSource, Int32 cooperatorID) in

D:\projects\GrinGlobal\GrinGlobal.Sql\SecureData.cs:line 203

at GrinGlobal.Sql.GuiData.GenericDBMS.SaveDataSet(DataSet ds) in

D:\projects\GrinGlobal\GrinGlobal.Sql\GuiData\GenericDBMS.cs:line 671

at GrinGlobal.WebService.GUI.SaveDataSet(Boolean suppressExceptions, String

userName, String password, DataSet ds) in
D:\projects\GrinGlobal\GrinGlobal.WebService\GUI.asmx.cs:line 182

--- End of inner exception stack trace ---
at

System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String

methodName, Object[] parameters)

at GrinGlobal.Client.GrinGlobalGUIWebServices.GUI.SaveDataSet(Boolean

suppressExceptions, String userName, String password, DataSet ds)

at GrinGlobal.Client.GrinGlobalClient.SaveDGVData(DataSet dataToSave)
at GrinGlobal.Client.GrinGlobalClient.ux_buttonSaveData_Click(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(MouseEventArgs 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.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr

wparam, IntPtr lparam)

Loaded Assemblies
mscorlib

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: ​file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll


GrinGlobal.Client

Assembly Version: 1.0.3321.41256
Win32 Version: 1.0.3277
CodeBase: ​file:///C:/000%20Programs/GrinGlobal/GrinGlobal.Client.exe


System.Windows.Forms

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


System

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


System.Drawing

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


System.Data

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll


System.Xml

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll


System.Core

Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.1 built by: SP
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll


System.Configuration

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


System.Web.Services

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll


wsrc7d2r

Assembly Version: 1.0.3321.41256
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


JIT Debugging
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Change History (4)

comment:1 by Mark J. Millard, 18 years ago

On 2009-02-15 I was checking the ctrl-' button. When I pushed the edit key I
get unhandle exception No primary key.

comment:2 by Mark J. Millard, 18 years ago

v1.0.3336.43030 on 2009-02-19

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

Exception Text
System.ArgumentException: Column 'SavedStatus' does not belong to table
get_orders.

at System.Data.DataRow.GetDataColumn(String columnName)
at System.Data.DataRow.get_Item(String columnName)
at GrinGlobal.Client.GrinGlobalClient.ux_buttonSaveData_Click(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(MouseEventArgs 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.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr

wparam, IntPtr lparam)

Loaded Assemblies
mscorlib

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: ​file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll


GrinGlobal.Client

Assembly Version: 1.0.3336.43030
Win32 Version: 1.0.3336
CodeBase:

​file:///C:/Program%20Files/GRIN-Global/Curator%20Tool/GrinGlobal.Client.exe


System.Windows.Forms

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


System

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


System.Drawing

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


System.Data

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll


System.Xml

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll


System.Core

Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.1 built by: SP
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll


System.Configuration

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


System.Web.Services

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll


a2k4xox7

Assembly Version: 1.0.3336.43030
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

​file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


JIT Debugging
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

comment:3 by Mark J. Millard, 18 years ago

Whiteboard: Works on Client v1.0.3341.4145 on 2009-02-23. MJM closed ticket.

Previous whiteboard: On v1.0.3336.43030 on 2009-02-19 Still present, but not
for primary key, for savedstatus 2009-02-15 v1.0.3330.41660 Still present

comment:4 by Mark J. Millard, 17 years ago

Summary: Adding a new order does not work Primary Key missing (Suppliment → BZ072 Adding a new order does not work Primary Key missing (Suppliment
Note: See TracTickets for help on using tickets.