# Unable to call shared script from tag event script after upgrading ignition to 8.0

**URL:** <https://forum.inductiveautomation.com/t/unable-to-call-shared-script-from-tag-event-script-after-upgrading-ignition-to-8-0/31501>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [January 22, 2020, 3:14am UTC](https://forum.inductiveautomation.com/t/unable-to-call-shared-script-from-tag-event-script-after-upgrading-ignition-to-8-0/31501 "2020-01-22T03:14:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![avinashpise](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@avinashpise](https://forum.inductiveautomation.com/u/avinashpise)\
**Post date:** [January 22, 2020, 3:14am UTC](https://forum.inductiveautomation.com/t/unable-to-call-shared-script-from-tag-event-script-after-upgrading-ignition-to-8-0/31501/1 "2020-01-22T03:14:29Z")

</div>

Good Morning,

Recently we have upgraded our organization ignition server from 7.9 to 8.0.5

After upgradation we tried calling simple shared script from tag value event changed but we are unable to do so, we are getting below error message

same script is working well with timer call and from script console

All previously developed scripts which has been migrated are working fine.

Any suggestion on this

Error executing script.  
Traceback (most recent call last):  
File “tagevent:valueChanged”, line 2, in valueChanged  
AttributeError: ‘com.inductiveautomation.ignition.common.script.Scr’ object has no attribute ‘CCMScript’

Tag script

 ![t1](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/05767a946f78347b14b154e121cb911170cc45b3.png)

Error Snapshot

 ![t2](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/dd536e5ec1179749683cde1c684e98d85bec509f.png)

Script Snapshot

 ![t3](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/229ffe05df962bb1111c7825619046ade641ca61.png)

Thanks  
Avinash

---

<div class="post-metadata">

**Author:** ![Kurt.Larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kurt.larson/32/6426_2.png) [@Kurt.Larson](https://forum.inductiveautomation.com/u/Kurt.Larson)\
**Post date:** [January 22, 2020, 3:42am UTC](https://forum.inductiveautomation.com/t/unable-to-call-shared-script-from-tag-event-script-after-upgrading-ignition-to-8-0/31501/2 "2020-01-22T03:42:14Z")

</div>

Project scripts called from tag events must exist within the gateway scripting project. On upgrade from 7.9, a global project is created with all shared scripts, and the gateway scripting project should be set to global (Configure -\> Gateway Settings). If it isn’t, then make sure that this setting is pointing to the project where all your old shared scripts exist.

---

<div class="post-metadata">

**Author:** ![avinashpise](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@avinashpise](https://forum.inductiveautomation.com/u/avinashpise)\
**Post date:** [January 22, 2020, 5:01am UTC](https://forum.inductiveautomation.com/t/unable-to-call-shared-script-from-tag-event-script-after-upgrading-ignition-to-8-0/31501/3 "2020-01-22T05:01:37Z")

</div>

Thanks, I understood  
Going forward any shared script should be created in parent project in order to access it at gateway level

[https://docs.inductiveautomation.com/display/DOC80/Project+Library](https://docs.inductiveautomation.com/display/DOC80/Project+Library)

 ![t4](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/0a03261389ea6c4a9d57ddbe38fb79094fc50397.png)

 ![t5](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/dbf39191076c10e5c9561c87fff2fb9b53577ef5.jpeg)
