# Tag value change script does not run when tag be triggled

**URL:** <https://forum.inductiveautomation.com/t/tag-value-change-script-does-not-run-when-tag-be-triggled/89336>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [April 24, 2024, 6:14am UTC](https://forum.inductiveautomation.com/t/tag-value-change-script-does-not-run-when-tag-be-triggled/89336 "2024-04-24T06:14:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephen\_chow](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@stephen\_chow](https://forum.inductiveautomation.com/u/stephen_chow)\
**Post date:** [April 24, 2024, 6:14am UTC](https://forum.inductiveautomation.com/t/tag-value-change-script-does-not-run-when-tag-be-triggled/89336/1 "2024-04-24T06:14:35Z")

</div>

Hi Dear All:  
I write a tag value change script in a boolean tag when triggled to send a alarm message to Feishu(a Instant messaging tool by bytedance like ms Teams) by call System util Python script , its works in Tools-\>Script Tool by manual trigger，but its not works in tag value change script when fired ,  
can anyone help me to solve this problem  
much appreciate!

 ![20240424-140334](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/3/f32a7903a7c2360e6f33a3577e3622472b06a776.jpeg)

---

<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:** [April 24, 2024, 8:05am UTC](https://forum.inductiveautomation.com/t/tag-value-change-script-does-not-run-when-tag-be-triggled/89336/2 "2024-04-24T08:05:28Z")

</div>

Script console is running in the Designer PC.  
Tag Value Changed events are running on the gateway. It can't find `C:\Users\MI\AppData\ ...` as it does not exist on the gateway.

---

<div class="post-metadata">

**Author:** ![stephen\_chow](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@stephen\_chow](https://forum.inductiveautomation.com/u/stephen_chow)\
**Post date:** [April 24, 2024, 9:17am UTC](https://forum.inductiveautomation.com/t/tag-value-change-script-does-not-run-when-tag-be-triggled/89336/3 "2024-04-24T09:17:55Z")

</div>

Got it!
