# "system.tag.query()" does not work for Remote Tags

**URL:** <https://forum.inductiveautomation.com/t/system-tag-query-does-not-work-for-remote-tags/69111>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [January 27, 2023, 7:36pm UTC](https://forum.inductiveautomation.com/t/system-tag-query-does-not-work-for-remote-tags/69111 "2023-01-27T19:36:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ISEMAREN\_AAG](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@ISEMAREN\_AAG](https://forum.inductiveautomation.com/u/ISEMAREN_AAG)\
**Post date:** [January 27, 2023, 7:36pm UTC](https://forum.inductiveautomation.com/t/system-tag-query-does-not-work-for-remote-tags/69111/1 "2023-01-27T19:36:53Z")

</div>

Hi!.  
I'm testing the "**system.tag.query()**" function for a **Remote Tag Provider** , but it always **returns 0**. Instead, **system.tag.browse()** works fine.

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

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [January 27, 2023, 7:54pm UTC](https://forum.inductiveautomation.com/t/system-tag-query-does-not-work-for-remote-tags/69111/2 "2023-01-27T19:54:25Z")

</div>

~~Your `condition.attributes` query might be limiting the results, if you remove the `attributes` portion, does it give you the results you expect?~~

I was wrong. I wasn't pointed at my remote provider when testing initially. I'm seeing the same result

---

<div class="post-metadata">

**Author:** ![ISEMAREN\_AAG](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@ISEMAREN\_AAG](https://forum.inductiveautomation.com/u/ISEMAREN_AAG)\
**Post date:** [January 27, 2023, 8:28pm UTC](https://forum.inductiveautomation.com/t/system-tag-query-does-not-work-for-remote-tags/69111/3 "2023-01-27T20:28:12Z")

</div>

@pturmel can you help me?

---

<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:** [January 27, 2023, 8:29pm UTC](https://forum.inductiveautomation.com/t/system-tag-query-does-not-work-for-remote-tags/69111/4 "2023-01-27T20:29:26Z")

</div>

No idea.

---

<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:** [January 27, 2023, 8:31pm UTC](https://forum.inductiveautomation.com/t/system-tag-query-does-not-work-for-remote-tags/69111/5 "2023-01-27T20:31:58Z")

</div>

Is the gateway hosting your remote provider new enough to support `system.tag.query`? The code certainly implies it should work to remote gateways.

You should probably take this to support.

---

<div class="post-metadata">

**Author:** ![ISEMAREN\_AAG](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@ISEMAREN\_AAG](https://forum.inductiveautomation.com/u/ISEMAREN_AAG)\
**Post date:** [January 31, 2023, 9:19am UTC](https://forum.inductiveautomation.com/t/system-tag-query-does-not-work-for-remote-tags/69111/6 "2023-01-31T09:19:04Z")

</div>

Hello.  
The problem is that the version of Ignition Edge is 8.1.17.  
Thank you.
