This project is read-only.

Adding a nutrient coefficient set gives an error


It seems that you can export and import and delete a new coefficient set for an existing nutrient, but just using the "Add..." function gives the below error dump after 1) specifying the new name and 2) the land cover type, then 3) hitting OK. Note: this is on OpenNSPECT v, built on April 3, 2014. This is the OpenNSPECT 1.2 beta release

OpenNSPECT (4/3/2014)

System.InvalidOperationException: Update requires a valid InsertCommand when passed DataRow collection with new rows.
at System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
at System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.Update(DataTable dataTable)
at OpenNspect.PollutantsForm.AddCoefficient(String& strCoeffName, String& strLCType) in C:\Users\Dave.Eslinger\Documents\Visual Studio 2012\Projects\OpenNSPECT\Source\OpenNspect\OpenNspect.MapWindow4Plugin\Forms\Advanced Settings\PollutantsForm.vb:line 505