Error message - Adding to Option Manager - BEOpt
Received this error message when including a pre-existing option from my library into the current model.
Message: The following application error has occurred in BEopt v3.0.1.0. Please report this to the BEopt development team and restart the application.
Update of database failed.
Stack Trace: at NREL.BEopt.BEoptCommon.DBManagement.SaveObject(SQLiteCommand cmd, IList`1 Parameters, String SQL) in C:\git\beopt\Source\BEoptSettings\Database\DBManagement.cs:line 1041 at NREL.BEopt.ObjLibCS.Option.ReRunRules(Option BaseOption) in C:\git\beopt\Source\BEoptObjLibCS\Measures\Option.cs:line 951 at NREL.BEopt.ObjLibCS.Option.set_SaveToProject(Boolean value) in C:\git\beopt\Source\BEoptObjLibCS\Measures\Option.cs:line 306 at NREL.BEopt.UICS.OptionManager.dgvOptions_CellMouseDown(Object sender, DataGridViewCellMouseEventArgs e) in C:\git\beopt\Source\BEoptUICS\OptionManager.cs:line 616
Inner Exception:
Source: System.Data.SQLite
TargetSite: System.Data.SQLite.SQLiteErrorCode Reset(System.Data.SQLite.SQLiteStatement)
Message: constraint failed
UNIQUE constraint failed: PhysicalProperty.OptionGUID, PhysicalProperty.PhysicalPropertyTypeID
Stack Trace: at System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt) at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt) at System.Data.SQLite.SQLiteDataReader.NextResult() at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave) at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior) at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior) at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery() at NREL.BEopt.BEoptCommon.DBManagement.SaveObject(SQLiteCommand cmd, IList`1 Parameters, String SQL) in C:\git\beopt\Source\BEoptSettings\Database\DBManagement.cs:line 1037