# Error in running project script: global name 'xxxxx' is not defined

**URL:** <https://forum.inductiveautomation.com/t/error-in-running-project-script-global-name-xxxxx-is-not-defined/93855>\
**Category:** Ignition\
**Created:** [July 29, 2024, 5:56pm UTC](https://forum.inductiveautomation.com/t/error-in-running-project-script-global-name-xxxxx-is-not-defined/93855 "2024-07-29T17:56:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke\_Waliser](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@Luke\_Waliser](https://forum.inductiveautomation.com/u/Luke_Waliser)\
**Post date:** [July 29, 2024, 5:56pm UTC](https://forum.inductiveautomation.com/t/error-in-running-project-script-global-name-xxxxx-is-not-defined/93855/1 "2024-07-29T17:56:27Z")

</div>

Hi,

I'm using version 8.1.18.

I have a Project script called 'CallTakerRequest'.

A component calls this script on an 'onActionPerformed' event. Once in a blue moon, the Project script fails to execute and I get the following message in the logs. Not sure why it is complaining that the Project script is not defined???

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/a/ca772e7c02c5f13ce95e8c44e83e5257a7402a6d.png)

---

<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:** [July 29, 2024, 6:04pm UTC](https://forum.inductiveautomation.com/t/error-in-running-project-script-global-name-xxxxx-is-not-defined/93855/2 "2024-07-29T18:04:01Z")

</div>

Were you editing the project? Or any of the inheritable projects it depends on? If so, there is a short window of time where the gateway restarts the scripting environment where the name really doesn't exist.

(It's a bug, IMNSHO. But long-standing.)

---

<div class="post-metadata">

**Author:** ![Luke\_Waliser](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@Luke\_Waliser](https://forum.inductiveautomation.com/u/Luke_Waliser)\
**Post date:** [July 29, 2024, 6:18pm UTC](https://forum.inductiveautomation.com/t/error-in-running-project-script-global-name-xxxxx-is-not-defined/93855/3 "2024-07-29T18:18:40Z")

</div>

I was editing the project throughout the morning. It is not inheritable.

At the time of the issue being reported to me, I had the project closed and had a different project opened.

I then reopened the problem project. Drilled into the component responsible for calling my project script to double check my sanity and then just saved the project again. Tested the project script and it fired correctly.
