# EasyChart Query Error

**URL:** <https://forum.inductiveautomation.com/t/easychart-query-error/6842>\
**Category:** Ignition\
**Created:** [July 10, 2013, 6:03pm UTC](https://forum.inductiveautomation.com/t/easychart-query-error/6842 "2013-07-10T18:03:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gadgetguru69](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gadgetguru69](https://forum.inductiveautomation.com/u/gadgetguru69)\
**Post date:** [July 10, 2013, 6:03pm UTC](https://forum.inductiveautomation.com/t/easychart-query-error/6842/1 "2013-07-10T18:03:07Z")

</div>

For some reason we are seeing error with the easychart control when running in real time and setting its poll rate to less that 1,000 (1sec). If we set the value to 1,000 then we never see the error.

ERROR [PMIEasyChart-AWT-EventQueue-0] Error running chart query.  
java.lang.Exception: Error running query:  
TagHistory(paths=[Ignition\_Testing/test\_analog\_out\_2], start=Wed Jul 10 12:59:37 CDT 2013, end=Wed Jul 10 13:01:17 CDT 2013, flags=0)@500ms  
On: TestWindow.Root Container.Easy Chart  
at com.inductiveautomation.factorypmi.application.gateway.QueryManager$QueryExecutor.run(QueryManager.java:316)  
at java.lang.Thread.run(Unknown Source)  
Caused by: com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: Unexpected error running tag history query.  
at com.inductiveautomation.factorypmi.application.gateway.TagHistoryQuery.execute(TagHistoryQuery.java:39)  
at com.inductiveautomation.factorypmi.application.gateway.QueryManager$Query.execute(QueryManager.java:690)  
at com.inductiveautomation.factorypmi.application.gateway.QueryManager$Query.access$500(QueryManager.java:663)  
at com.inductiveautomation.factorypmi.application.gateway.QueryManager$QueryExecutor.run(QueryManager.java:314)  
… 1 more  
Caused by: java.lang.IllegalArgumentException: The query range is invalid. The start time is greater than or equal to the end time.  
at com.inductiveautomation.ignition.common.sqltags.history.cache.SubCache.getData(SubCache.java:88)  
at com.inductiveautomation.ignition.common.sqltags.history.cache.TagHistoryCache.query(TagHistoryCache.java:247)  
at com.inductiveautomation.factorypmi.application.gateway.TagHistoryQuery.execute(TagHistoryQuery.java:34)  
… 4 more

---

<div class="post-metadata">

**Author:** ![adamaustin](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adamaustin](https://forum.inductiveautomation.com/u/adamaustin)\
**Post date:** [July 10, 2013, 6:50pm UTC](https://forum.inductiveautomation.com/t/easychart-query-error/6842/2 "2013-07-10T18:50:22Z")

</div>

Nevermind. I have not used the real-time chart option before.
