# UDT Value Changed script lost scope/cannot see project script?

**URL:** <https://forum.inductiveautomation.com/t/udt-value-changed-script-lost-scope-cannot-see-project-script/60097>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [May 26, 2022, 9:05pm UTC](https://forum.inductiveautomation.com/t/udt-value-changed-script-lost-scope-cannot-see-project-script/60097 "2022-05-26T21:05:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rvaught](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@rvaught](https://forum.inductiveautomation.com/u/rvaught)\
**Post date:** [May 26, 2022, 9:05pm UTC](https://forum.inductiveautomation.com/t/udt-value-changed-script-lost-scope-cannot-see-project-script/60097/1 "2022-05-26T21:05:17Z")

</div>

From within a UDT Tag definition (Value Changed) script  
This line of scripting code (below) worked perfectly for many days  
`ga = Maintenance.GageAttention(Gage)`

Suddenly, today it started erroring out with (error below)  
`global name 'Maintenance' is not defined`

Does anyone know what could have caused this?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 26, 2022, 9:08pm UTC](https://forum.inductiveautomation.com/t/udt-value-changed-script-lost-scope-cannot-see-project-script/60097/2 "2022-05-26T21:08:13Z")

</div>

Did someone change the ‘Gateway Scripting Project’ setting?  
[https://docs.inductiveautomation.com/display/DOC81/Project+Library#ProjectLibrary-GatewayScriptingProject](https://docs.inductiveautomation.com/display/DOC81/Project+Library#ProjectLibrary-GatewayScriptingProject)

---

<div class="post-metadata">

**Author:** ![rvaught](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@rvaught](https://forum.inductiveautomation.com/u/rvaught)\
**Post date:** [May 26, 2022, 9:51pm UTC](https://forum.inductiveautomation.com/t/udt-value-changed-script-lost-scope-cannot-see-project-script/60097/3 "2022-05-26T21:51:59Z")

</div>

Thanks PGriffith! 🕶
