# valueChanged NameError: global name 'PLCTriggerScript' is not defined

**URL:** <https://forum.inductiveautomation.com/t/valuechanged-nameerror-global-name-plctriggerscript-is-not-defined/77681>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [August 10, 2023, 2:23am UTC](https://forum.inductiveautomation.com/t/valuechanged-nameerror-global-name-plctriggerscript-is-not-defined/77681 "2023-08-10T02:23:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rui\_Gao](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@Rui\_Gao](https://forum.inductiveautomation.com/u/Rui_Gao)\
**Post date:** [August 10, 2023, 2:23am UTC](https://forum.inductiveautomation.com/t/valuechanged-nameerror-global-name-plctriggerscript-is-not-defined/77681/1 "2023-08-10T02:23:23Z")

</div>

Help! this a problem for me, use gateway event is OK,but i wish use tag script value change  
Error executing script.  
Traceback (most recent call last):  
File "tagevent:valueChanged", line 2, in valueChanged  
NameError: global name 'PLCTriggerScript' is not defined

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/5/65b1dba5e7a2c5a565b97b9724cfb09e2e3fbb23.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/0/b0826c34137f57136fa38d05968791529fe7d99a.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/b/cbc4d4a6d80192207f14c1235b3d286be0b7de2c.png)

---

<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:** [August 10, 2023, 5:27am UTC](https://forum.inductiveautomation.com/t/valuechanged-nameerror-global-name-plctriggerscript-is-not-defined/77681/2 "2023-08-10T05:27:03Z")

</div>

You need to specify the full path.  
`MESInterface.PLCTriggerScript.OperatorLogin(.....)`

---

<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:** [August 10, 2023, 11:49am UTC](https://forum.inductiveautomation.com/t/valuechanged-nameerror-global-name-plctriggerscript-is-not-defined/77681/3 "2023-08-10T11:49:31Z")

</div>

Also, is the project containing that script library the gateway scripting project? If not, then a tag event script cannot reach the library at all.
