Open Castronova opened 9 years ago
Note: This error is occurring for multiple database types. @Castronova did you write code to work around this issue? If, so could you post that snippet as well?
It looks like this error is because the result object does not have a ResultID
specified, but ResultUUID
instead...user error. I suggest that the createTimeSeriesResults function is modified to accept an integer for ResultID
rather than the Result
object. This would make it consistent with other api functions, e.g. createSamplingFeature
, createAffiliation
, createAction
, createResult
, etc
Might also want to added some assertions to the createService to catch these errors and provide more useful error messages.
The following exception is raised when inserting a timeSeriesResult record into a sqlite database:
FlushError: Instance <TimeSeriesResults at 0x108ddecd0> has a NULL identity key.
The snippet of code below will duplicate this error.