# Shared scripts not updating tags that call them

**URL:** <https://forum.inductiveautomation.com/t/shared-scripts-not-updating-tags-that-call-them/14599>\
**Category:** Ignition\
**Created:** [June 22, 2017, 1:49am UTC](https://forum.inductiveautomation.com/t/shared-scripts-not-updating-tags-that-call-them/14599 "2017-06-22T01:49:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ks0](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ks0/32/6813_2.png) [@ks0](https://forum.inductiveautomation.com/u/ks0)\
**Post date:** [June 22, 2017, 1:49am UTC](https://forum.inductiveautomation.com/t/shared-scripts-not-updating-tags-that-call-them/14599/1 "2017-06-22T01:49:47Z")

</div>

I’m wondering if anybody else is experiencing this issue, or if I am missing something fundamental here…

I have a shared script that I am calling from a tag change event (value change). The first time I create the tag and the tag event with the appropriate import.  
`from shared import script`  
Great. Everything works fine.  
If I then edit the shared script however, it seems the tag doesn’t update the script it’s calling.  
For example, let’s say I change the script name from ‘script’ to ‘script\_new’. The tag will continue working, but in my mind, it should error, because there is no longer a script called ‘script’. Same goes if I’m just editing the content. Nothing updates. I have to copy all the content into another script with a different name, and then point the import on the tag to the new name. Rather annoying when every little change I make to the shared script has to be done in this way.

Any words of wisdom??

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ks0](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ks0/32/6813_2.png) [@ks0](https://forum.inductiveautomation.com/u/ks0)\
**Post date:** [June 22, 2017, 2:17am UTC](https://forum.inductiveautomation.com/t/shared-scripts-not-updating-tags-that-call-them/14599/2 "2017-06-22T02:17:25Z")

</div>

So looks as though it is a bug with 7.9.1. Upgraded to 7.9.3 and no longer have this problem.

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [June 22, 2017, 12:28pm UTC](https://forum.inductiveautomation.com/t/shared-scripts-not-updating-tags-that-call-them/14599/3 "2017-06-22T12:28:18Z")

</div>

The same more or less happens with 3rd party scripts (at least until 7.9.2, didn’t try those things with 7.9.3 yet).

If you have a script in Ignition which imports a module, which in turn imports another module. Updating the code on the last module alone won’t cascade into ignition. It’s only when you also update the middle code that the entire thing is loaded again.

Is it possible you were having something similar here? F.e. a shared script referencing another shared script? Updating the middle shared script (which requires an actual change to the file) should reload it all.
