# Script not execute in tag

**URL:** <https://forum.inductiveautomation.com/t/script-not-execute-in-tag/110687>\
**Category:** Ignition\
**Created:** [September 17, 2025, 7:22am UTC](https://forum.inductiveautomation.com/t/script-not-execute-in-tag/110687 "2025-09-17T07:22:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eder.vargas.fdz](https://avatars.discourse-cdn.com/v4/letter/e/dbc845/32.png) [@eder.vargas.fdz](https://forum.inductiveautomation.com/u/eder.vargas.fdz)\
**Post date:** [September 17, 2025, 7:22am UTC](https://forum.inductiveautomation.com/t/script-not-execute-in-tag/110687/1 "2025-09-17T07:22:44Z")

</div>

I've been having some issues with the scripts I put inside my tags. In the value change event, it always ran at startup, but for the past few days, it doesn't run at all. For every 10 value changes, I see that it runs the script 2 or 3 times. I haven't changed anything in my scripts, and it's happened to me in different tags and scripts. Has this happened to anyone else?

I ran a test by setting it up in my event gateway, and it worked fine.

I've attached a basic example of a script for my tags.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/7/b797e4bd371a92df491042a332feec64dc5bbb7b.png)

---

<div class="post-metadata">

**Author:** ![iscrac](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/iscrac/32/49757_2.png) [@iscrac](https://forum.inductiveautomation.com/u/iscrac)\
**Post date:** [September 17, 2025, 7:39am UTC](https://forum.inductiveautomation.com/t/script-not-execute-in-tag/110687/2 "2025-09-17T07:39:43Z")

</div>

Hi,

Try this:

system.tag.writeBlocking([HERE ARE YOUR TAG PATHS],[VALUES])

> **[system.tag.writeBlocking | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag/system-tag-writeBlocking)**
>
> Writes values to tags at the given paths.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [September 17, 2025, 10:27am UTC](https://forum.inductiveautomation.com/t/script-not-execute-in-tag/110687/3 "2025-09-17T10:27:01Z")

</div>

`system.tag.write()` isn't even in the [manual](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag) anymore. Check the link to look at your options.

Note that tag change scripts should execute in a couple of ms. Anything that writes to tags (other than memory tags) will take longer than this and can choke your system. (There are only three threads available for tag change scripts.) For slow operations the tag change script should call a gateway script which can run outside the three threads.
