Jump to content

Error getting data: condition must have a maximum duration.


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.

  • Like 5
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...