Jump to content

Error getting data: condition must have a maximum duration.


YogurtYoda

Recommended Posts

For those like me who keep getting this error:

Error getting data: condition must have a maximum duration. Consider using removeLongerThan() to apply a maximum duration. Click the wrench icon to add a Maximum Capsule duration.

The resolution seemed to make sense to apply removeLongerThan() or setMaximumDuration() to the signal, but the correct answer is to set it to the capsule.

For example, this is the incorrect formula I attempted.

$series.aggregate(maxValue(), $capsules, endKey(), 0s)

Here is the resolution:

$series.aggregate(maxValue(), $capsules.setMaximumDuration(40h), endKey(), 0s)

or

$series.aggregate(maxValue(), $capsules.removeLongerThan(40h), endKey(), 0s)

 

Hope this helps others who didn't have luck searching this specific alarm previously.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...