zenwalk / mapaction-toolbox

Automatically exported from code.google.com/p/mapaction-toolbox
0 stars 0 forks source link

Meaningless error message (to most) when filename is duplicated #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. File 1 given name - e.g. wrl_admn_ad_py_s0_esri_pp
2. File 2 given the same name - e.g. wrl_admn_ad_py_s0_esri_pp - ok symbol 
comes up suggesting that the name is good.
3. One clicking OK to confirm name the following dialog box displays - 
An error occured whilst renaming [filename]. 
Error HRESULT E_FAIL has been returned froma call to a COM component. 
System.Runtime.IneropServices.COMException (0x80004005): Error HRESULT E_FAIL 
has been returned froma call to COM component.
at ESRI.ArcGIS.Geodatabase.IDataset.Rename(StringName)
at 
mapaction.datanames.api.DataNameESRIFeatureClass.performeRename(StringstrNewName
)
at mapaction.datanames.api.AbstractDataName.renameStringstrNewName)
at mapaction.datanames.gui.DataRenameDialog.OK_Button_Click(Object sender, 
EventArgs e)

What is the expected output? What do you see instead?
Expect some sort of message that says - duplicate filename as new name is 
entered or on confirmation

What version of the product are you using? On what operating system?

Current version, windows 7
Please provide any additional information below.

Original issue reported on code.google.com by matt.si...@googlemail.com on 31 May 2011 at 12:45

GoogleCodeExporter commented 9 years ago
Just to check. At step 2. you are using the tool to rename File2 to match 
File1? It *should* give you a sensible warning that a file with this name 
already exists, but instead it crashes? Is that right?

Original comment by andrewphilipsmith on 20 Jul 2011 at 4:30

GoogleCodeExporter commented 9 years ago

Original comment by andrewphilipsmith on 4 Mar 2013 at 3:29