-
Notifications
You must be signed in to change notification settings - Fork 14
Description
createService.createSimulation fails with:
OperationalError: (OperationalError) table simulations has no column named outputdatasetid u'INSERT INTO simulations (actionid, simulationname, simulationdescription, simulationstartdatetime, simulationstartdatetimeutcoffset, simulationenddatetime, simulationenddatetimeutcoffset, timestepvalue, timestepunitsid, inputdatasetid, outputdatasetid, modelid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' (1, 'My Simulation', 'Some model descipription', '2014-03-01', -6, '2014-03-01', -6, 1.0, 1, None, None, 1)
It is looking for a column called outputdatasetid, however this doesn't exist in the ODM2 schema https://github.com/ODM2/ODM2/blob/master/schemas/ODM2_DBWrench_Schema.xml.
To fix:
Remove OutputDataSetID from the models.Simulations table