Opened 16 years ago

Last modified 16 years ago

#590 released defect

Unhandled exception when creating/saving new dataview with name that already exists

Reported by: rlittle Owned by: bweaver
Priority: major Milestone: Release Candidate 3
Component: Admin Tool Version: 2.0.1635
Severity: Keywords:
Cc: Database Engine: N/A
Operating System: N/A

Description

Create a new dataview and save with the same name as one that already exists, system gives an unhandled exception:

(in new DV, only SQL and dataview name was edited)

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

Exception Text
System.Data.SqlClient.SqlException: Cannot insert duplicate key row in object 'dbo.sys_dataview_sql' with unique index 'ndx_uniq_sds'.
The statement has been terminated.

at GrinGlobal.Business.AdminData.CreateDataViewDefinition(String dvName, Boolean readOnly, String categoryCode, String databaseAreaCode, Int32 databaseAreaSortOrder, Boolean transform, String transformFieldForNames, String transformFieldForCaptions, String transformFieldForValues, String configurationOptions, DataSet dsInfo)
at GrinGlobal.Admin.AdminHostProxy.CreateDataViewDefinition(String dataviewName, Boolean readOnly, String categoryName, String databaseArea, Int32 databaseAreaSortOrder, Boolean transformable, String transformFieldForNames, String transformFieldForCaptions, String transformFieldForValues, String configurationOptions, DataSet dsInfo)
at GrinGlobal.Admin.ChildForms.frmDataview.btnSave_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)

Change History (3)

comment:1 by rlittle, 16 years ago

Version: 2.0.3968 → 2.0.1635

comment:2 by bweaver, 16 years ago

Status: new → addressed

(In [1638]) - fixes #586, org abbrev was not being set properly either.

  • fixes #589, code group editor now writes TEXT_CONTROL for gui_hint at sys_table_field level instead of NULL
  • fixes #590, validation code now checks for existing name before saving
  • fixes #591, Import Wizard now allows csv, tab, pipe, or user to specify their own. Also gives a preview if not a csv (so the user can see if the delimiter they're choosing is the correct one)

comment:3 by bweaver, 16 years ago

Status: addressed → released
Note: See TracTickets for help on using tickets.