# Gateway Error executing historical tag read

**URL:** <https://forum.inductiveautomation.com/t/gateway-error-executing-historical-tag-read/58616>\
**Category:** General Discussion\
**Tags:** ignition81, python, ignition80, vision, scripting\
**Created:** [April 20, 2022, 5:55am UTC](https://forum.inductiveautomation.com/t/gateway-error-executing-historical-tag-read/58616 "2022-04-20T05:55:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GOKULAKANNAN\_P](https://avatars.discourse-cdn.com/v4/letter/g/0ea827/32.png) [@GOKULAKANNAN\_P](https://forum.inductiveautomation.com/u/GOKULAKANNAN_P)\
**Post date:** [April 20, 2022, 5:55am UTC](https://forum.inductiveautomation.com/t/gateway-error-executing-historical-tag-read/58616/1 "2022-04-20T05:55:25Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/a/ea62ed0be9ca89f111862a0307c10cb6784ace51.png)  
Hello,

I got this error continuously in Gateway . I Used History tag in Easy chart component .

**Error:**

> java.lang.IllegalArgumentException: Requested timestamp is previous to an already requested time. All requests must go forward in time. Received '-1' after '0'
> 
> at com.inductiveautomation.ignition.gateway.sqltags.history.query.processing.Interpolator.getValueAt(Interpolator.java:77)
> 
> at com.inductiveautomation.ignition.gateway.sqltags.history.query.columns.DefaultHistoryColumn.finishAggregationWindow(DefaultHistoryColumn.java:166)
> 
> at com.inductiveautomation.ignition.gateway.sqltags.history.query.columns.DefaultHistoryColumn.process(DefaultHistoryColumn.java:118)
> 
> at com.inductiveautomation.gateway.tags.history.query.DatasourceQueryExecutor.loadValue(DatasourceQueryExecutor.java:509)
> 
> at com.inductiveautomation.gateway.tags.history.query.DatasourceQueryExecutor.loadValue(DatasourceQueryExecutor.java:93)
> 
> at com.inductiveautomation.ignition.gateway.sqltags.history.query.AbstractHistoryLoader.processData(AbstractHistoryLoader.java:159)
> 
> at com.inductiveautomation.ignition.gateway.sqltags.history.query.AggregateHistoryQueryExecutor.processData(AggregateHistoryQueryExecutor.java:107)
> 
> at com.inductiveautomation.ignition.gateway.sqltags.history.query.HistoryWriter.readData(HistoryWriter.java:316)
> 
> at com.inductiveautomation.ignition.gateway.sqltags.history.query.HistoryWriter.execute(HistoryWriter.java:230)
> 
> at com.inductiveautomation.ignition.gateway.sqltags.history.TagHistoryManagerImpl.queryHistory(TagHistoryManagerImpl.java:536)
> 
> at com.inductiveautomation.ignition.gateway.tags.model.ProjectDefaultTagManagerFacade.queryHistory(ProjectDefaultTagManagerFacade.java:428)
> 
> at com.inductiveautomation.ignition.gateway.servlets.gateway.functions.QueryTagHistory.invoke(QueryTagHistory.java:96)
> 
> at com.inductiveautomation.ignition.gateway.servlets.Gateway.doPost(Gateway.java:405)
> 
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> 
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> 
> at com.inductiveautomation.ignition.gateway.bootstrap.MapServlet.service(MapServlet.java:86)
> 
> at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1391)
> 
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:760)
> 
> at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:547)
> 
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
> 
> at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590)
> 
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
> 
> at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
> 
> at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1607)
> 
> at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
> 
> at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1297)
> 
> at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
> 
> at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
> 
> at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1577)
> 
> at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
> 
> at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1212)
> 
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
> 
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
> 
> at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322)
> 
> at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:59)
> 
> at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
> 
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
> 
> at org.eclipse.jetty.server.Server.handle(Server.java:500)
> 
> at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
> 
> at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)
> 
> at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
> 
> at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270)
> 
> at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
> 
> at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
> 
> at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:543)
> 
> at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:398)
> 
> at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:161)
> 
> at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
> 
> at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
> 
> at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
> 
> at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
> 
> at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
> 
> at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
> 
> at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:388)
> 
> at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
> 
> at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
> 
> at java.base/java.lang.Thread.run(Unknown Source)

---

<div class="post-metadata">

**Author:** ![plo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/plo/32/33875_2.png) [@plo](https://forum.inductiveautomation.com/u/plo)\
**Post date:** [April 20, 2022, 11:47pm UTC](https://forum.inductiveautomation.com/t/gateway-error-executing-historical-tag-read/58616/2 "2022-04-20T23:47:03Z")

</div>

Hello, What version of Ignition are you currently running?

On the Easy Chart, if you enable the “Bypass Tag History Cache” property. Will the error logging stop?

---

<div class="post-metadata">

**Author:** ![dhiraj.pawar](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@dhiraj.pawar](https://forum.inductiveautomation.com/u/dhiraj.pawar)\
**Post date:** [May 28, 2022, 3:12pm UTC](https://forum.inductiveautomation.com/t/gateway-error-executing-historical-tag-read/58616/3 "2022-05-28T15:12:36Z")

</div>

Hello ,  
We are facing same issue. Currently we have 8.1.3 version. I’m trying with enable the “Bypass Tag History Cache” property but facing same error.  
I have checked and found the error occurred due to the tag Historian provider disabled. Could you please help me

Thanks

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/1/a132db807d95ae6ba177dd2f6b249b7065016284.png)

---

<div class="post-metadata">

**Author:** ![James\_Caudle](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@James\_Caudle](https://forum.inductiveautomation.com/u/James_Caudle)\
**Post date:** [May 28, 2025, 4:57pm UTC](https://forum.inductiveautomation.com/t/gateway-error-executing-historical-tag-read/58616/4 "2025-05-28T16:57:03Z")

</div>

Still seeing this on 8.1.42 with Easy Charts.  
The "Bypass Tag History Cache" property seems to 'fix' the problem but I'd rather not bypass a cache. Any insights over the past three years?

---

<div class="post-metadata">

**Author:** ![robertm](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@robertm](https://forum.inductiveautomation.com/u/robertm)\
**Post date:** [September 17, 2025, 4:48pm UTC](https://forum.inductiveautomation.com/t/gateway-error-executing-historical-tag-read/58616/5 "2025-09-17T16:48:44Z")

</div>

Seeing this also, all of a sudden. 8.1.38. And bypass cache has always been enabled.

---

<div class="post-metadata">

**Author:** ![dwacek](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@dwacek](https://forum.inductiveautomation.com/u/dwacek)\
**Post date:** [March 30, 2026, 2:09pm UTC](https://forum.inductiveautomation.com/t/gateway-error-executing-historical-tag-read/58616/6 "2026-03-30T14:09:20Z")

</div>

I’ve been seeing a lot of this lately, if you hover over the magnifying glass it shows which client is causing the issue. I just shutdown that client and the problem stops.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/1/9115c653f181761e9e47e719f03e19590db0102b.png)

DW

---

<div class="post-metadata">

**Author:** ![cassidy.marquis](https://avatars.discourse-cdn.com/v4/letter/c/8c91f0/32.png) [@cassidy.marquis](https://forum.inductiveautomation.com/u/cassidy.marquis)\
**Post date:** [April 16, 2026, 3:52pm UTC](https://forum.inductiveautomation.com/t/gateway-error-executing-historical-tag-read/58616/7 "2026-04-16T15:52:50Z")

</div>

Does anyone know how to resolve this issue when it comes from a Tag Historian Query in a report? I am receiving the same error as mentioned at the start of the thread. I'd prefer not to have to close the client if there is a different solution avaliable.
