# Named Query exception error

**URL:** <https://forum.inductiveautomation.com/t/named-query-exception-error/75756>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 30, 2023, 7:14am UTC](https://forum.inductiveautomation.com/t/named-query-exception-error/75756 "2023-06-30T07:14:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adarsh\_K](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Adarsh\_K](https://forum.inductiveautomation.com/u/Adarsh_K)\
**Post date:** [June 30, 2023, 7:14am UTC](https://forum.inductiveautomation.com/t/named-query-exception-error/75756/1 "2023-06-30T07:14:51Z")

</div>

Getting exceptional error while binding the named query to a label , Even when the named query exist error says named query doesn't exist .

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

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 30, 2023, 11:41am UTC](https://forum.inductiveautomation.com/t/named-query-exception-error/75756/2 "2023-06-30T11:41:27Z")

</div>

Your screenshot doesn't include a view of your defined named queries. Is the `PlantName` query in a folder? If so, you need the full path. (Use the search button to the right of the "Path" field to see and pick from the available named queries.)

---

<div class="post-metadata">

**Author:** ![Adarsh\_K](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Adarsh\_K](https://forum.inductiveautomation.com/u/Adarsh_K)\
**Post date:** [June 30, 2023, 12:24pm UTC](https://forum.inductiveautomation.com/t/named-query-exception-error/75756/3 "2023-06-30T12:24:03Z")

</div>

Yes I already verified the path of the named query (No space in name of the query), removed binding and tried rebinding and saving the project again . Still same issue.  
BTW I can see green tick which says its valid named query rite ?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/5/75928322caa4d3b8ae78a937ebdf8126a0386527.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 30, 2023, 12:27pm UTC](https://forum.inductiveautomation.com/t/named-query-exception-error/75756/4 "2023-06-30T12:27:12Z")

</div>

Is it a new named query that you haven't saved yet? Is there any whitespace at the end of the name?

---

<div class="post-metadata">

**Author:** ![Adarsh\_K](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Adarsh\_K](https://forum.inductiveautomation.com/u/Adarsh_K)\
**Post date:** [June 30, 2023, 12:27pm UTC](https://forum.inductiveautomation.com/t/named-query-exception-error/75756/5 "2023-06-30T12:27:44Z")

</div>

Nope!, Verified that too!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 30, 2023, 12:28pm UTC](https://forum.inductiveautomation.com/t/named-query-exception-error/75756/6 "2023-06-30T12:28:17Z")

</div>

Huh. No idea. Anything in the gateway logs that look related?
