CUAHSI / HydroDesktop

HydroDesktop is a free and open source GIS enabled desktop application that helps you search for, download, visualize, and analyze hydrologic and climate data registered with the CUAHSI Hydrologic Information System. HydroDesktop is part of the legacy CUAHSI toolkit and is not under active development. Click the "releases" link below to download the latest installer for Microsoft Windows.
73 stars 20 forks source link

Unhandled Exception #154

Open xhqiao89 opened 6 years ago

xhqiao89 commented 6 years ago

LucADunoyer[CodePlex]
Version: 1.6.13.2 Description: Error: System.Data.SyntaxErrorException: Syntax error in the expression. at System.Data.ExpressionParser.Parse() at System.Data.DataExpression..ctor(DataTable table, String expression, Type type)

at System.Data.Select..ctor(DataTable table, String filterExpression, String sort, DataViewRowState recordStates)

at System.Data.DataTable.Select(String filterExpression) at SeriesView.SeriesSelector.SetupDatabase() at SeriesView.SeriesSelector.RefreshSelection() at HydroDesktop.DataDownload.DataDownloadPlugin.DownloadManager_Completed(Object sender, RunWorkerCompletedEventArgs e) in g:\TeamCity\buildAgent\work\e54ee16d10a0068\Source\DataDownload\DataDownload\DataDownloadPlugin.cs:line 759

at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at HydroDesktop.DataDownload.Downloading.DownloadManager.RaiseCompletedEvent(RunWorkerCompletedEventArgs e) in g:\TeamCity\buildAgent\work\e54ee16d10a0068\Source\DataDownload\DataDownload\Downloading\DownloadManager.cs:line 237

at HydroDesktop.DataDownload.Downloading.DownloadManager._worker_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e) in g:\TeamCity\buildAgent\work\e54ee16d10a0068\Source\DataDownload\DataDownload\Downloading\DownloadManager.cs:line 229

at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)

at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)

xhqiao89 commented 6 years ago

mogikanin[CodePlex]
This issue reproduced when search and download variable with some special characters in name (e.g. quotes). Probably the same for ], [, %, *, and \ characters, but i do not found such non empty variables.

Now it's fixed. Also created related hydrocatalog issue https://hydrocatalog.codeplex.com/workitem/72