getMaxSimulationForModel query failed: ERROR: invalid input syntax for type timestamp: "" at character 92