# \[bug-831\]Unable to use group tags in named queries (transaction groups)

**URL:** <https://forum.inductiveautomation.com/t/bug-831-unable-to-use-group-tags-in-named-queries-transaction-groups/39466>\
**Category:** Ignition Early Access\
**Created:** [October 7, 2020, 4:58pm UTC](https://forum.inductiveautomation.com/t/bug-831-unable-to-use-group-tags-in-named-queries-transaction-groups/39466 "2020-10-07T16:58:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alan\_pereira](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alan_pereira/32/79668_2.png) [@alan\_pereira](https://forum.inductiveautomation.com/u/alan_pereira)\
**Post date:** [October 7, 2020, 4:58pm UTC](https://forum.inductiveautomation.com/t/bug-831-unable-to-use-group-tags-in-named-queries-transaction-groups/39466/1 "2020-10-07T16:58:28Z")

</div>

Hi, I'm using Ignition 8.1 RC1.

I'm trying to create a transaction group that will write to the DB based on a trigger from the PLC. I can't find a way to use group tags in named queries, it will only allow tags from the tag provider (Image 1). But if I were to use the "SQL Query" option instead (Image 2), it will let me use the group tags. See picture below.

**Image 1**

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/9/5918ab33c173238c88f4223f812f3f0377e84872.png)

**Image 2**

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/c/ecbfc6aead5b911949e369cc11c103abcf36e60a.png)

Is it a bug or is it a design limitation?

I mean, there's a workaround, I can create a stored procedure in the DB but I'd rather use a built-in feature that is intended for this.

---

<div class="post-metadata">

**Author:** ![alan\_pereira](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alan_pereira/32/79668_2.png) [@alan\_pereira](https://forum.inductiveautomation.com/u/alan_pereira)\
**Post date:** [October 15, 2020, 9:53pm UTC](https://forum.inductiveautomation.com/t/bug-831-unable-to-use-group-tags-in-named-queries-transaction-groups/39466/2 "2020-10-15T21:53:38Z")

</div>

I would appreciate some support on it.

---

<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:** [October 15, 2020, 11:11pm UTC](https://forum.inductiveautomation.com/t/bug-831-unable-to-use-group-tags-in-named-queries-transaction-groups/39466/3 "2020-10-15T23:11:31Z")

</div>

I would classify this as a bug - and have filed it as such.

---

<div class="post-metadata">

**Author:** ![SWilkerson](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@SWilkerson](https://forum.inductiveautomation.com/u/SWilkerson)\
**Post date:** [April 27, 2022, 12:38pm UTC](https://forum.inductiveautomation.com/t/bug-831-unable-to-use-group-tags-in-named-queries-transaction-groups/39466/4 "2022-04-27T12:38:57Z")

</div>

Just following up to see if this is still an open bug or if there is a reason for not allowing the functionality. I am on 8.1.15 and trying to convert old code that used “executeScalarQuery” to named queries.

Is there a suggested work around or a direction someone can point me in regarding how to handle using data read from the Basic OPC/Group Items of a transaction group as parameters for a named query in a Triggered Expression?

---

<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:** [April 27, 2022, 3:27pm UTC](https://forum.inductiveautomation.com/t/bug-831-unable-to-use-group-tags-in-named-queries-transaction-groups/39466/5 "2022-04-27T15:27:36Z")

</div>

It’s still a bug, just hasn’t been picked up yet to be fixed.

There’s nothing _preventing_ you from doing it, as I understand it - the UI just doesn’t make it easy for you. You should be able to pass `{[~]NameOfGroupTag}` as a parameter binding.
