# Query tag issue

**URL:** <https://forum.inductiveautomation.com/t/query-tag-issue/41939>\
**Category:** Ignition\
**Created:** [December 20, 2020, 10:56am UTC](https://forum.inductiveautomation.com/t/query-tag-issue/41939 "2020-12-20T10:56:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshada.bharade18](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@akshada.bharade18](https://forum.inductiveautomation.com/u/akshada.bharade18)\
**Post date:** [December 20, 2020, 10:56am UTC](https://forum.inductiveautomation.com/t/query-tag-issue/41939/1 "2020-12-20T10:56:26Z")

</div>

Hello,  
I am working on a screen in ignition Where I have added a numeric field and linked it with a memory tag but whenever my numeric field is empty it shows me an error.

Basically I have made 2 tags one is memory and the other query, as soon as my memory tag is empty/null the query tag which uses the value of my memory tag gets an error .It will be a great help if anyone guides me to resolve the error.

Thank you,  
Akshada

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [January 4, 2021, 8:51pm UTC](https://forum.inductiveautomation.com/t/query-tag-issue/41939/2 "2021-01-04T20:51:10Z")

</div>

Without knowing the how the values of the tag are being written to (I am guessing it is happening via your screen), there are a couple of ways to handle this scenario:

1. On your Ignition screen where you write a value to the tag, check for an invalid condition and prevent writing to the tag (or write something that makes sense for the invalid condition)
2. Create and expression tag with a [try](https://docs.inductiveautomation.com/display/DOC80/try) function that returns the value of your memory tag that could catch any exception and return a relevant failover value. You would then use the expression tag within your query binding.

Garth
