# \[BUG-1540\] Vision Client Tags

**URL:** <https://forum.inductiveautomation.com/t/bug-1540-vision-client-tags/42136>\
**Category:** Ignition\
**Created:** [January 11, 2021, 10:13pm UTC](https://forum.inductiveautomation.com/t/bug-1540-vision-client-tags/42136 "2021-01-11T22:13:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric.avila](https://avatars.discourse-cdn.com/v4/letter/e/c77e96/32.png) [@eric.avila](https://forum.inductiveautomation.com/u/eric.avila)\
**Post date:** [January 11, 2021, 10:13pm UTC](https://forum.inductiveautomation.com/t/bug-1540-vision-client-tags/42136/1 "2021-01-11T22:13:51Z")

</div>

Hi, i have a problem i don`t know if is a bug or is a bad configuration.

I tried to make a tag in the vision client tag, this tag is a query and is type “String Array” the query will be return some results, but the tag only have the first result.

when i make the tag in value sends this

 ![item1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/7/5714190de9671960a59d80dd7cd31268e1ccc65c.png)

but i hit ok and the tag appears

 ![item2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/d/fde60e0d1cda7e951bdced3e6e141d956d795de3.png)

thanks

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [January 11, 2021, 10:43pm UTC](https://forum.inductiveautomation.com/t/bug-1540-vision-client-tags/42136/2 "2021-01-11T22:43:55Z")

</div>

What does your query code look like?

---

<div class="post-metadata">

**Author:** ![eric.avila](https://avatars.discourse-cdn.com/v4/letter/e/c77e96/32.png) [@eric.avila](https://forum.inductiveautomation.com/u/eric.avila)\
**Post date:** [January 11, 2021, 11:02pm UTC](https://forum.inductiveautomation.com/t/bug-1540-vision-client-tags/42136/3 "2021-01-11T23:02:43Z")

</div>

This in Ignition

 ![item3](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/7/87551c70702ecd6e94968e98afd0d4e2dcb665d3.png)

this in SQL

 ![item4](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/0/9094f52b3f5b5cab6fafc9b3a215ae01d6d6b4ad.png)

i made this type of queries in the default tags and works fine.

---

<div class="post-metadata">

**Author:** ![osolorzano](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/osolorzano/32/6432_2.png) [@osolorzano](https://forum.inductiveautomation.com/u/osolorzano)\
**Post date:** [January 11, 2021, 11:43pm UTC](https://forum.inductiveautomation.com/t/bug-1540-vision-client-tags/42136/4 "2021-01-11T23:43:52Z")

</div>

It looks like with regular tags we do some guess work in the backend to nicely coerce query results to string arrays but client tags do not appear to have this functionality. I will file a ticket to see if we can have these work the same.  
In the mean time, the only real workaround I have here is to have change the client tag type to “Dataset” so that you get the raw results of the query. From here I see two ways of going, you can utilize the dataset tag as is in your Vision windows. But if that isn’t an option because you have windows already built up then there’s a hacky workaround; you can create a second client tag with the type of “String Array” and change it to an expression tag with it’s value derived from the first tag:

 ![hackyTags](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/f/af16349cf7baba0396d0d72523f51d78a9738efd.png)

---

<div class="post-metadata">

**Author:** ![eric.avila](https://avatars.discourse-cdn.com/v4/letter/e/c77e96/32.png) [@eric.avila](https://forum.inductiveautomation.com/u/eric.avila)\
**Post date:** [January 12, 2021, 1:41pm UTC](https://forum.inductiveautomation.com/t/bug-1540-vision-client-tags/42136/5 "2021-01-12T13:41:32Z")

</div>

I will try with the second expression.

Thanks
