# Hide Error On Time Series

**URL:** <https://forum.inductiveautomation.com/t/hide-error-on-time-series/83930>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 8, 2024, 5:38pm UTC](https://forum.inductiveautomation.com/t/hide-error-on-time-series/83930 "2024-01-08T17:38:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![HelloWorld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HelloWorld](https://forum.inductiveautomation.com/u/HelloWorld)\
**Post date:** [January 8, 2024, 5:38pm UTC](https://forum.inductiveautomation.com/t/hide-error-on-time-series/83930/1 "2024-01-08T17:38:40Z")

</div>

![Screenshot (43)](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/5/e54b32807c2235bcdd79a385c9778dfb6c11e342.png)

I am wondering if there is a way to hide this error message when a product is not chosen. When the popup loads up, I want the user to choose a product. But if no product is chosen, the error "The statement did not return a result set" occurs. The red error is just ugly.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 8, 2024, 5:40pm UTC](https://forum.inductiveautomation.com/t/hide-error-on-time-series/83930/2 "2024-01-08T17:40:39Z")

</div>

The most correct answer would be to change whatever unseen thing is ultimately running that query to not run that query before an initial value is populated.

Or maybe use a custom property to run the query (if it's a binding) and an expression binding to only actually display that query result if it has good quality.

---

<div class="post-metadata">

**Author:** ![HelloWorld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HelloWorld](https://forum.inductiveautomation.com/u/HelloWorld)\
**Post date:** [January 8, 2024, 5:42pm UTC](https://forum.inductiveautomation.com/t/hide-error-on-time-series/83930/3 "2024-01-08T17:42:47Z")

</div>

The query is a named query on the data binding of both charts.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 8, 2024, 5:44pm UTC](https://forum.inductiveautomation.com/t/hide-error-on-time-series/83930/4 "2024-01-08T17:44:22Z")

</div>

Within the binding dialog, you should have an option for Overlay Opt-out.

---

<div class="post-metadata">

**Author:** ![HelloWorld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HelloWorld](https://forum.inductiveautomation.com/u/HelloWorld)\
**Post date:** [January 8, 2024, 5:45pm UTC](https://forum.inductiveautomation.com/t/hide-error-on-time-series/83930/5 "2024-01-08T17:45:22Z")

</div>

That is what I was looking for thanks

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 8, 2024, 5:52pm UTC](https://forum.inductiveautomation.com/t/hide-error-on-time-series/83930/6 "2024-01-08T17:52:31Z")

</div>

An alternative I've used is to have a label with "Select product" (or whatever) and toggle the chart's `props.position.display` with an expression binding something like,  
`isGood({this.props.series[0].data})`

Bind the label's display prop to the `!` "not" of the chart display property.
