# \[BUG\] Global Resources Unavailable

**URL:** <https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995>\
**Category:** Ignition Early Access\
**Created:** [March 1, 2019, 5:04pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995 "2019-03-01T17:04:45Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![christopher.green](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@christopher.green](https://forum.inductiveautomation.com/u/christopher.green)\
**Post date:** [March 1, 2019, 5:04pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/1 "2019-03-01T17:04:45Z")

</div>

The global resources are no longer showing in the designer and I am getting errors when trying to call a shared script “name ‘shared’ is not defined”. Were these removed?

---

<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:** [March 1, 2019, 5:15pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/2 "2019-03-01T17:15:17Z")

</div>

Did you upgrade/restore a backup from 7.9, or are you starting from scratch in 8.0?

In either of those cases, your existing ‘global’ resources were[1] moved to a new, ‘real’ project that’s just called `global`, which is set as the parent of all your other existing projects. The project and resource model is completely different in 8.0 - there is now a model of project _inheritance_, meaning one project can define resources that are then ‘inherited’ on all others below it.

The `project.*` and `shared.*` script libraries are now no longer unique, special names - they are simply part of whatever project is appropriate to them, and can be renamed, removed, or modified as appropriate. You can also make new script modules or packages that don’t follow the `shared` or `project` naming convention - you’re free to use whatever[2] name you want.

If you _didn’t_ upgrade or restore a backup, then something’s wrong - where is your script defined, and where are you specifically using it? We did just recently (ie, this week) fix some issues with script usage, especially in gateway scopes, like tag event scripts or expression tags.

[1] - there are a few exceptions to the ‘global resources go into a `global` project rule’ - basically, anything that you would expect to continue running whenever the gateway is, because an inheritable project (such as the new `global` is inherently not “runnable”, meaning something like a scheduled report will not execute _unless_ inherited

[2] - you still need to name it a valid python identifier to be able to actually import it, although we can’t really _stop_ you from naming it something silly, because the resource itself just resides on your filesystem.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 1, 2019, 5:16pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/3 "2019-03-01T17:16:52Z")

</div>

> [@paul-griffith](#):
>
> If you _didn’t_ upgrade or restore a backup, then something’s wrong

If he _didn't_ upgrade, then there's only a global project if he decides to make a project called global, and only a "shared" package if he decided to make one, so I'd argue nothing is wrong in that case.

If this is an upgrade though everything should "just work" as before unless you've created a new project that you're trying to call into the "shared" package from and haven't set it to inherit from the global project.

---

<div class="post-metadata">

**Author:** ![christopher.green](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@christopher.green](https://forum.inductiveautomation.com/u/christopher.green)\
**Post date:** [March 1, 2019, 5:25pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/4 "2019-03-01T17:25:54Z")

</div>

I did upgrade from 7.9 but the part that is odd is that one of my other windows that calls the ‘shared.’ script works.

---

<div class="post-metadata">

**Author:** ![christopher.green](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@christopher.green](https://forum.inductiveautomation.com/u/christopher.green)\
**Post date:** [March 1, 2019, 5:29pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/5 "2019-03-01T17:29:14Z")

</div>

I checked the project settings on the gateway and the project didn’t have ‘global’ set as the parent. I updated it to have global be the parent and the script worked. Thanks.

---

<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:** [March 1, 2019, 5:33pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/6 "2019-03-01T17:33:08Z")

</div>

Was this a new project that you’d created since upgrading, or part of your original restore?

---

<div class="post-metadata">

**Author:** ![christopher.green](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@christopher.green](https://forum.inductiveautomation.com/u/christopher.green)\
**Post date:** [March 1, 2019, 5:47pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/7 "2019-03-01T17:47:34Z")

</div>

Part of original restore.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 1, 2019, 5:49pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/8 "2019-03-01T17:49:26Z")

</div>

Would you be willing to upload this backup so we can test it here?

---

<div class="post-metadata">

**Author:** ![christopher.green](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@christopher.green](https://forum.inductiveautomation.com/u/christopher.green)\
**Post date:** [March 1, 2019, 6:06pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/9 "2019-03-01T18:06:49Z")

</div>

to be honest I think I may have unlinked it while trying to figure out why one of my perspective projects worked and the other didn’t, I was tweaking things all over.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 1, 2019, 6:29pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/10 "2019-03-01T18:29:04Z")

</div>

Alrighty, let us know if you find anything else out of place.

---

<div class="post-metadata">

**Author:** ![hodgins.e](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hodgins.e](https://forum.inductiveautomation.com/u/hodgins.e)\
**Post date:** [March 20, 2019, 5:35pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/11 "2019-03-20T17:35:26Z")

</div>

I’m having this problem too. I updated it yesterday. What’s weird is that I’m pretty sure I had it yesterday but today I can’t see it. Also, the existing global scripts are working. The project settings on the gateway are set to `global`.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/70e0f78902dcf80b0918ca9636ef3e538734766f.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 20, 2019, 5:54pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/12 "2019-03-20T17:54:44Z")

</div>

> [@hodgins.e](#):
>
> I’m having this problem too.

Which problem, that you don't see your "global" resources, or something else?

What project do you have open right now? What's in under the "Scripting" node in the tree?

---

<div class="post-metadata">

**Author:** ![hodgins.e](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hodgins.e](https://forum.inductiveautomation.com/u/hodgins.e)\
**Post date:** [March 20, 2019, 6:13pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/13 "2019-03-20T18:13:17Z")

</div>

Thanks… I’m stupid. I should of kept going further under the scripting node. I figured the “Project Library” was just for the project but I see what we I had as “global” scripts now under there. Like below. I guess the “Global” node is gone in 8?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2e85f625935527bc1260eee7c0b3e2740ad21eb8.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 20, 2019, 6:16pm UTC](https://forum.inductiveautomation.com/t/bug-global-resources-unavailable/22995/14 "2019-03-20T18:16:45Z")

</div>

> [@hodgins.e](#):
>
> I guess the “Global” node is gone in 8?

Yes, there's no such thing any more.

For backwards compatibility on upgrade we dumped everything you had in Global scope into a project called "global" and then pointed all your existing projects to that as a parent. And "shared" just happens to be the name of that folder holding the scripts in the "global" project now.
