# Published Project Can't Find Shared Script Function

**URL:** <https://forum.inductiveautomation.com/t/published-project-cant-find-shared-script-function/10497>\
**Category:** Ignition\
**Created:** [September 22, 2015, 3:25pm UTC](https://forum.inductiveautomation.com/t/published-project-cant-find-shared-script-function/10497 "2015-09-22T15:25:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [September 22, 2015, 3:25pm UTC](https://forum.inductiveautomation.com/t/published-project-cant-find-shared-script-function/10497/1 "2015-09-22T15:25:34Z")

</div>

Hey all,

Has anyone ever seen a situation where a python function was created in the shared space and works perfectly fine in the staging version of the project but when used in the published version an “object has no attribute” error comes up?

I’ve published the project numerous times, changed some things (like documentation in the function, layout, etc…) and republished, deleted the Ignition cache on the client machine, everything I could think of and still on the published version the client can’t find the function. I can use that function in the staging version of the project all day long. It’s driving me nuts!

[code]Traceback (most recent call last):

File “event:internalFrameActivated”, line 7, in

AttributeError: ‘com.inductiveautomation.ignition.common.script.Scr’ object has no attribute ‘updateTreeView’

Ignition v7.7.5 (b2015071516)  
Java: Oracle Corporation 1.8.0\_60  
[/code]

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [March 5, 2016, 10:42pm UTC](https://forum.inductiveautomation.com/t/published-project-cant-find-shared-script-function/10497/2 "2016-03-05T22:42:30Z")

</div>

we are having the same exact problem. just started a couple hours ago and it is Saturday there was no development going on.

seems to be if it was working and you clear the cache then the project will have the problem.

Did you ever find a solution?

Thank you,

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [March 7, 2016, 1:03pm UTC](https://forum.inductiveautomation.com/t/published-project-cant-find-shared-script-function/10497/3 "2016-03-07T13:03:04Z")

</div>

Yeah, I did. I found that the last time I published the project for some reason it didn’t publish the global scripts. I had to pick the “Publish Selected” option from the file menu and then check the global script module that wasn’t published and publish it. That’s happened a couple of times now and I can’t figure out why sometimes when I hit the publish button it publishes everything and sometimes it doesn’t.

---

<div class="post-metadata">

**Author:** ![JGJohnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jgjohnson/32/29582_2.png) [@JGJohnson](https://forum.inductiveautomation.com/u/JGJohnson)\
**Post date:** [March 17, 2016, 10:17pm UTC](https://forum.inductiveautomation.com/t/published-project-cant-find-shared-script-function/10497/4 "2016-03-17T22:17:06Z")

</div>

I’m on version 7.7.5 and don’t have the option to publish selected.

Usually by messing around with the scripts and making changes and having someone else publish the project we’ve been able to get the changes published but I am stuck now. I haven;t been able to get my latest changes published no matter what I’ve tried.

Has anyone else found another solution to this problem/bug?

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [March 17, 2016, 11:52pm UTC](https://forum.inductiveautomation.com/t/published-project-cant-find-shared-script-function/10497/5 "2016-03-17T23:52:43Z")

</div>

Oh, I do remember now what the issue was.

There was a problem with the python script and it would not allow the shared module to publish because it wouldn’t compile correctly. There was no indication of this, I think I figured out the problem by copying that code and putting it into the script playground to fool around with it.

---

<div class="post-metadata">

**Author:** ![ella\_ramos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ella_ramos/32/3455_2.png) [@ella\_ramos](https://forum.inductiveautomation.com/u/ella_ramos)\
**Post date:** [July 12, 2017, 6:05am UTC](https://forum.inductiveautomation.com/t/published-project-cant-find-shared-script-function/10497/6 "2017-07-12T06:05:26Z")

</div>

Hi everyone,

Did anyone ever got a solution for this? And not just a work around?  
What’s happening with our project is whenever we do publish project and global, the shared script called on a project script are not found. But when I do publish with just Project, it will be found again.

Thanks!
