Error integral found out-of-order times in time column

When running a query that uses an integral aggregate, I’m getting an Internal Server Error: “error integral found out-of-order times in time column”

I can’t find any information about this error - any ideas how to resolve it?

Thanks!

Hello @Tom_HH,
Welcome! Hmm I’m not sure. Can you please share your input data, your query, and your expected output? Thanks.

I get this error periodically, usually when there are time sequence differences between measurements-- sometimes caused by an equipment rebooting but there are a number of potential causes.

Usually I can switch from integral-of-sums to sum-of-integrals or sum-of-integrals-of-aggregateWindows, though to get the information I am looking for, although that method increases my error margin and sometimes causes issues with graphing.

So, my addition to the question: is there any way to “catch errors” in Flux that would let me automatically switch to the coarser calculation method?