# Vision project lost its path to project function in upgraded gateway

**URL:** <https://forum.inductiveautomation.com/t/vision-project-lost-its-path-to-project-function-in-upgraded-gateway/66327>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting\
**Created:** [November 9, 2022, 10:45pm UTC](https://forum.inductiveautomation.com/t/vision-project-lost-its-path-to-project-function-in-upgraded-gateway/66327 "2022-11-09T22:45:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [November 9, 2022, 10:45pm UTC](https://forum.inductiveautomation.com/t/vision-project-lost-its-path-to-project-function-in-upgraded-gateway/66327/1 "2022-11-09T22:45:26Z")

</div>

I have a gateway event triggered by a tag. The gateway event calls a project script under the project folder automatically when a gateway is upgraded from 7.9 to 8.1.

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

Today we started seeing an error message basically stating that "project" is not a valid path anymore. We fixed this by adding the code

```auto
import system
```

to the top of the gateway event. The gateway event was able to find the "project" folder again.

Any clue as to what happened? We have been running this upgrade for several months without issues and then suddenly the issue started.

Any info is appreciated.

---

<div class="post-metadata">

**Author:** ![avaughn](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/avaughn/32/38972_2.png) [@avaughn](https://forum.inductiveautomation.com/u/avaughn)\
**Post date:** [November 16, 2022, 9:31pm UTC](https://forum.inductiveautomation.com/t/vision-project-lost-its-path-to-project-function-in-upgraded-gateway/66327/2 "2022-11-16T21:31:56Z")

</div>

Hello bmeyers,

What version of 8.1 are you running? Does this happen with all gateway event scripts? Could you try removing the import system and testing it again? I want to test if it may be related to a bug ticket we currently have open. It may be best to reach out to [support](https://support.inductiveautomation.com/hc/en-us) to investigate further.

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [November 17, 2022, 3:49pm UTC](https://forum.inductiveautomation.com/t/vision-project-lost-its-path-to-project-function-in-upgraded-gateway/66327/3 "2022-11-17T15:49:50Z")

</div>

v8.1.17

This was the only gateway event we noticed had an issue.

I will check if they want to risk stopping production but I doubt it.

---

<div class="post-metadata">

**Author:** ![avaughn](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/avaughn/32/38972_2.png) [@avaughn](https://forum.inductiveautomation.com/u/avaughn)\
**Post date:** [November 17, 2022, 8:17pm UTC](https://forum.inductiveautomation.com/t/vision-project-lost-its-path-to-project-function-in-upgraded-gateway/66327/4 "2022-11-17T20:17:39Z")

</div>

Okay, well if it's a system you're able to share a gwbk from, you could get in contact with support to provide that. Then we can try to replicate the issue. If it's related to the bug ticket I was looking at then it wasn't specifically importing system that fixed it, but just making any change to the script and saving it.

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [November 18, 2022, 2:37pm UTC](https://forum.inductiveautomation.com/t/vision-project-lost-its-path-to-project-function-in-upgraded-gateway/66327/5 "2022-11-18T14:37:08Z")

</div>

> If it's related to the bug ticket I was looking at then it wasn't specifically importing system that fixed it, but just making any change to the script and saving it.

Understood. I might have accidentally fixed the issue then by saving the script which makes more sense then suddenly a library was missing. If we decide to undo the code change I will update this thread with the results.
