# system.tag.requestGroupExecution() Issue (?) with Leased Tag Groups

**URL:** <https://forum.inductiveautomation.com/t/system-tag-requestgroupexecution-issue-with-leased-tag-groups/64587>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [September 28, 2022, 11:39am UTC](https://forum.inductiveautomation.com/t/system-tag-requestgroupexecution-issue-with-leased-tag-groups/64587 "2022-09-28T11:39:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davide3i](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davide3i/32/27811_2.png) [@Davide3i](https://forum.inductiveautomation.com/u/Davide3i)\
**Post date:** [September 28, 2022, 11:39am UTC](https://forum.inductiveautomation.com/t/system-tag-requestgroupexecution-issue-with-leased-tag-groups/64587/1 "2022-09-28T11:39:07Z")

</div>

I’m trying to trigger a Tag Group execution on a Leased tag group, but it doesn’t seem to work. After the execution of _**system.tag.requestGroupExecution(provider\_name, tag\_group\_name)**_, the tag (which is assigned to that Tag Group) value doesn’t get updated and I still get:

`Last published value	[null, Uncertain_InitialValue, Mon Sep 26 08:25:31 CEST 2022 (1664173531429)]	ERROR`

Am I missing out something?

 ![Tag Group](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/a/1afec30ab2f10f000049c5a80ab2c27aae907e08.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:** [September 28, 2022, 12:47pm UTC](https://forum.inductiveautomation.com/t/system-tag-requestgroupexecution-issue-with-leased-tag-groups/64587/2 "2022-09-28T12:47:26Z")

</div>

That doesn’t make tags leased, it just causes the tags that are leased to update.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 28, 2022, 12:49pm UTC](https://forum.inductiveautomation.com/t/system-tag-requestgroupexecution-issue-with-leased-tag-groups/64587/3 "2022-09-28T12:49:32Z")

</div>

It doesn’t even do that, because he’s in OPC Subscribed mode. It basically does nothing to subscribed OPC tags, regardless of the group execution mode.

---

<div class="post-metadata">

**Author:** ![Davide3i](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davide3i/32/27811_2.png) [@Davide3i](https://forum.inductiveautomation.com/u/Davide3i)\
**Post date:** [September 28, 2022, 12:49pm UTC](https://forum.inductiveautomation.com/t/system-tag-requestgroupexecution-issue-with-leased-tag-groups/64587/4 "2022-09-28T12:49:57Z")

</div>

Yeah, I know. That’s what I’m trying to achieve, but the Leased tags’ values don’t get updated.

---

<div class="post-metadata">

**Author:** ![Davide3i](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davide3i/32/27811_2.png) [@Davide3i](https://forum.inductiveautomation.com/u/Davide3i)\
**Post date:** [September 28, 2022, 12:50pm UTC](https://forum.inductiveautomation.com/t/system-tag-requestgroupexecution-issue-with-leased-tag-groups/64587/5 "2022-09-28T12:50:21Z")

</div>

Ok, nice to know. Thank you!

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 28, 2022, 12:50pm UTC](https://forum.inductiveautomation.com/t/system-tag-requestgroupexecution-issue-with-leased-tag-groups/64587/6 "2022-09-28T12:50:40Z")

</div>

Maybe what you really want is a tag group in Driven mode? Not sure what the rest of the requirements are.

---

<div class="post-metadata">

**Author:** ![Davide3i](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davide3i/32/27811_2.png) [@Davide3i](https://forum.inductiveautomation.com/u/Davide3i)\
**Post date:** [September 28, 2022, 1:07pm UTC](https://forum.inductiveautomation.com/t/system-tag-requestgroupexecution-issue-with-leased-tag-groups/64587/7 "2022-09-28T13:07:40Z")

</div>

The Tag Group should stay in _Leased Mode_. I just needed the tags in that Tag Group to be forcefully updated just one time while not being shown in a View, regardless of the _Rate_ parameter set to 0 ms.  
I suppose that’s not actually possible.

---

<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:** [September 28, 2022, 5:26pm UTC](https://forum.inductiveautomation.com/t/system-tag-requestgroupexecution-issue-with-leased-tag-groups/64587/8 "2022-09-28T17:26:54Z")

</div>

I imagine a subscription could be manually created in a tag manager where the first value arrival would unsubscribe itself. That would “lease” for one interval. Hmmm.

You’d have to get comfortable with the SDK interfaces to do this.

If you succeed (without crashing your gateway), report back please.

---

<div class="post-metadata">

**Author:** ![m.pelagatti](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/m.pelagatti/32/68595_2.png) [@m.pelagatti](https://forum.inductiveautomation.com/u/m.pelagatti)\
**Post date:** [October 15, 2024, 7:31pm UTC](https://forum.inductiveautomation.com/t/system-tag-requestgroupexecution-issue-with-leased-tag-groups/64587/9 "2024-10-15T19:31:05Z")

</div>

Someone have news to how to update leased tag group with rate 0 first time on start application? I have a lot of tags and not possible to put all in tagchange on first start script.
