# Restart a Tag from Script

**URL:** <https://forum.inductiveautomation.com/t/restart-a-tag-from-script/52266>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [October 22, 2021, 11:35pm UTC](https://forum.inductiveautomation.com/t/restart-a-tag-from-script/52266 "2021-10-22T23:35:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbellamkonda](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@rbellamkonda](https://forum.inductiveautomation.com/u/rbellamkonda)\
**Post date:** [October 22, 2021, 11:35pm UTC](https://forum.inductiveautomation.com/t/restart-a-tag-from-script/52266/1 "2021-10-22T23:35:57Z")

</div>

Hi, My configuration is I have a TAG server and a HMI server (both with redundancy) connected via Gateway network. All my field devices are connected to TAG server and am accessing them through Realtime tag providers on the HMI server. All my field devices are connected using Modbus TCP driver and have corresponding configurations imported through .csv files.

Now, I have a multiple instances of a UDT in the tag provider referencing the field devices. I am trying to disable an internal UDT within my main UDT after initializing the main UDT instance. I am able to do so by writing “0” to “{udttagpath}.Enabled” from an expression of toggle switch in perspective (The same issue occurs when i try disabling the Internal UDT from the tag browser in Designer). When I do so the internal UDT is being disabled but since the tags within the internal UDT are already subscribed to OPC server, Ignition is still trying to send requests to read tag values.

I tried to restart the main UDT instance from the tag browser in designer, but it gives me error saying “Bad\_Unsupported”. I checked if this is because of a privilege restriction on tag provider, but I am able to read or write to the tags as necessary…

Please suggest a solution for this, so when I disable/enable the UDT all internal tags quality should go into “Bad\_Disabled” and it should stop the subscription.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [October 23, 2021, 6:31am UTC](https://forum.inductiveautomation.com/t/restart-a-tag-from-script/52266/2 "2021-10-23T06:31:41Z")

</div>

Can you to Config Page \> OPC Quick Client. From table, browse through paths and locate the tag that is having this problem and subscribe. (Use that like S).

Can you post the subscription? Like

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

Then I would try to remove subscription manually with the   
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/9/b93dcc458e63d618ec429425055cf20dc4bcd4f1.png)

---

<div class="post-metadata">

**Author:** ![rbellamkonda](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@rbellamkonda](https://forum.inductiveautomation.com/u/rbellamkonda)\
**Post date:** [October 26, 2021, 4:34pm UTC](https://forum.inductiveautomation.com/t/restart-a-tag-from-script/52266/3 "2021-10-26T16:34:22Z")

</div>

I am not having issues from the gateway. The issues I am having are from the designer. I am unable to restart the tag and disabling the tag from a script is not disabling the tag subscription.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [November 1, 2021, 10:47pm UTC](https://forum.inductiveautomation.com/t/restart-a-tag-from-script/52266/4 "2021-11-01T22:47:21Z")

</div>

Designer doesn’t contain tags. The gateway does.
