Error using Timeseries.makeNorm


Calling Timeseries.makeNorm is producing the error pasted below. There’s a date mis-alignment, but I’m not sure how this is occurring. Where is tsStart and tsEnd defined?

return Timeseries.makeNorm(NormTimeseriesDoubleSpec.make({
start: start,
end: end,
interval: interval,
data: newPressure

stack:"Error: MetricEngine error : MetricEngine error : ↵Stitching failed for metric=SimpleMetric,srcId=CFE001,srcType=OilGasWell,start=2018-01-07T00:00:00.000,end=2018-04-04T00:00:00.000,interval=DAYbecause=Invalid input for extend : inputStart=2018-01-07T00:00:00.000, inputEnd=2018-04-04T00:00:00.000,tsStart=2018-04-06T00:00:00.000,tsEnd=2018-04-06T00:00:00.000↵


This error seems to be coming from a different place than the api call that has been pasted here. Could you please provide the exact values for data field as well and I will be able to provide more information.


Hi Rohit,

The Code that we applied was:

var customMetric = SimpleMetric.make({
  id: "SimpleMetric_OilGasWell",
  name: "SimpleMetric",
  srcType: "OilGasWell",
  expression: "offset(ids,150)"


console.log("Eval Now")

var results = OilGasWell.evalMetrics({
    expressions: ["SimpleMetric"],
    start: "2018-01-12T00:00:00",
    end: "2018-04-09T00:00:00",
    interval: "DAY"
}, [customMetric]);



offset is the function we are calling that seems to be causing the error, the code in Alistair’s comment was the makeNorm at the end of the offset function, ids is passed to the function from the evalMetric