Opened 17 years ago
Closed 12 years ago
#287 closed defect (fixed)
Carriage Return - Line Feed in data causes an exception
| Reported by: | Mark J. Millard | Owned by: | Pete Cyr |
|---|---|---|---|
| Priority: | minor | Milestone: | Beta 3 |
| Component: | Curator Tool | Version: | 1.0.3660.32558 |
| Severity: | Keywords: | ||
| Cc: | pete.cyr@… | Database Engine: | SQL Server |
| Operating System: | XP Pro 32 bit |
Description
I was moving data imported that was originally imported from Oracle text field to Access. It appears as though there might be a carriage return - line feed or line feed. An exception was thrown. We may need to filter these out and/or provide some user options as to how these are treated in the transfer from on program like Excel or Access with ctrl-c/ctrl-v or drag and drop.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
Exception Text
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at GRINGlobal.Client.CuratorTool.GRINGlobalClientCuratorTool.ImportTextToDataTableUsingKeys(String rawImportText, DataTable destinationTable, Char[] rowDelimiters, Char[] columnDelimiters, Int32& badRows, Int32& missingRows)
at GRINGlobal.Client.CuratorTool.GRINGlobalClientCuratorTool.ux_datagridviewMain_KeyDown(Object sender, KeyEventArgs e)
at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.DataGridView.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.DataGridView.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.DataGridView.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.3603 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
GRINGlobal-CuratorTool
Assembly Version: 1.0.3660.32558
Win32 Version: 1.0.3660.32558
CodeBase: file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/GRINGlobal-CuratorTool.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
GRINGlobal.Client.Common
Assembly Version: 1.0.3639.29568
Win32 Version: 1.0.3639.29568
CodeBase: file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/GRINGlobal.Client.Common.DLL
Assembly Version: 1.0.3659.37532
Win32 Version: 1.0.3659.37532
CodeBase: file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/Forms/AccessionForm.dll
Assembly Version: 1.0.3639.29568
Win32 Version: 1.0.3639.29568
CodeBase: file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/Forms/ImageForm.dll
Assembly Version: 1.0.3639.29568
Win32 Version: 1.0.3639.29568
CodeBase: file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/Forms/InventoryForm.dll
Assembly Version: 1.0.3639.29569
Win32 Version: 1.0.3639.29569
CodeBase: file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Curator%20Tool/Forms/OrderForm.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
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
6_1mca7b
Assembly Version: 1.0.3639.29568
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.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.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 (11)
comment:1 by , 16 years ago
| Status: | new → addressed |
|---|
comment:2 by , 16 years ago
| Status: | addressed → released |
|---|
comment:3 by , 12 years ago
| Cc: | added |
|---|
The problem is still in version 1.9.6.32 of the CT. I moved a row out of the CT to Excel 2013. I put an alt-c ENTER carriage return line feed in a text field. I then dragged the row back in to the CT in edit mode. Dragging the row did not throw an exception so this ticket is fixed for that. However a ctl-c ctl-v update of the row did throw an exception. The documentation on this problem needs to describe what happens if the dragging-dropping behavior for this continues. The update for the field dropped all data after the line feed and put a double quotation mark before the first character dragging from Excel 2013.
comment:4 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | released → closed |
Closing to see if I can reopen with another status.
comment:5 by , 12 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
Reopened because ctrl-v/ctrl-c gave an exception.
comment:6 by , 12 years ago
| Status: | reopened → addressed |
|---|
After code changes made in Curator Tool v1.9.6.36 - data being imported to the Curator Tool should properly replace embedded NewLines and CarriageReturns to the text <newline> and <carriagereturn> in the text.
comment:7 by , 12 years ago
This was further enhanced in v1.9.7.37 with the Excel linefeed replaced by a <br>. This will show up properly in a web browser. No exceptions are thrown.
comment:8 by , 12 years ago
| Status: | addressed → released |
|---|
comment:10 by , 12 years ago
| Status: | released → verified |
|---|
Works still in v.1.9.6.41. No reports from NPGS testers regarding problems. Closing ticket.
comment:11 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | verified → closed |
Works still in v.1.9.6.41. No reports from NPGS testers regarding problems. Closing ticket.

I tried to replicate this several different ways and could not get the exception error. So I presume that this was handled in a previous build - please verify and close the ticket.