# Named query cannot be found in project resource

**URL:** <https://forum.inductiveautomation.com/t/named-query-cannot-be-found-in-project-resource/58575>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [April 19, 2022, 1:28am UTC](https://forum.inductiveautomation.com/t/named-query-cannot-be-found-in-project-resource/58575 "2022-04-19T01:28:05Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [April 20, 2022, 2:32am UTC](https://forum.inductiveautomation.com/t/named-query-cannot-be-found-in-project-resource/58575/8 "2022-04-20T02:32:19Z")

</div>

Yes, but you can easily use `sendMessage` to a gateway message handler and then use `getLogger()` which will cause the logger to always be run from the gateway scope.

Not recommended for mass use, but for troubleshooting purposes where you don’t have access to the local consoles, it works quite well.

---

_[View the full topic](https://forum.inductiveautomation.com/t/named-query-cannot-be-found-in-project-resource/58575)._
