# \[BUG\] tags.eventscripts.dispatcher Error

**URL:** <https://forum.inductiveautomation.com/t/bug-tags-eventscripts-dispatcher-error/23608>\
**Category:** Ignition Early Access\
**Created:** [March 26, 2019, 4:00pm UTC](https://forum.inductiveautomation.com/t/bug-tags-eventscripts-dispatcher-error/23608 "2019-03-26T16:00:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea.morando](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.morando/32/8039_2.png) [@andrea.morando](https://forum.inductiveautomation.com/u/andrea.morando)\
**Post date:** [March 26, 2019, 4:00pm UTC](https://forum.inductiveautomation.com/t/bug-tags-eventscripts-dispatcher-error/23608/1 "2019-03-26T16:00:31Z")

</div>

Dear all,  
I am currently using the build **b2019032509**.  
I would like to call a function inside the “valueChanged” event of a tag.

 ![26-03-2019%2016-59-14](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/e7a6c20352a39bc8b3cb49187cf9debeb6652299.png)

The function to be called is something like “fer.util.log.info()” where “fer” is the primary package inside the “Project Library”.

![26-03-2019%2016-54-55](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/39f282f205f68e8e0369de5139f86bbd10b08dda.png)

Whenever I trigger that tag, I receive the following error:

 ![26-03-2019%2017-01-25](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/cb3d7e09f6ffa1e2d6c783934728ec4cbc651cbe.png)

How can I solve this issue?  
Thanks a lot.

Best,  
Andrea

---

<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 26, 2019, 4:09pm UTC](https://forum.inductiveautomation.com/t/bug-tags-eventscripts-dispatcher-error/23608/2 "2019-03-26T16:09:02Z")

</div>

Make sure you have specified the ‘Gateway Scripting Project’ in your gateway settings. Truly global resources (ie, tags) don’t know what project to reference to find scripts anymore, so you must specify the reference for them.

---

<div class="post-metadata">

**Author:** ![andrea.morando](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.morando/32/8039_2.png) [@andrea.morando](https://forum.inductiveautomation.com/u/andrea.morando)\
**Post date:** [March 26, 2019, 6:00pm UTC](https://forum.inductiveautomation.com/t/bug-tags-eventscripts-dispatcher-error/23608/3 "2019-03-26T18:00:46Z")

</div>

Dear Paul,  
thank you for your answer: the function call now works fine.  
Unfortunately, every project has tags (belonging to the Tag Provider of the project) that call the project library functions.  
I can not define a “Gateway Scripting Project” common for all the projects.  
I would expect that every Tag Provider, referenced to a specific project, had the same scope of the project library.

---

<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 26, 2019, 6:44pm UTC](https://forum.inductiveautomation.com/t/bug-tags-eventscripts-dispatcher-error/23608/4 "2019-03-26T18:44:26Z")

</div>

Tag Providers don’t belong to a project, they are globally defined resources just like tags.

Even in 7.9 you could only reference global scripts, not project scripts, in your tag event scripts.

The equivalent in 8.0 would be to have a “global” parent project that all your other projects inherit from and is set as the “Gateway Scripting Project”. In fact, you’ll find this is what happens by default on an upgrade from 7.9.

---

<div class="post-metadata">

**Author:** ![andrea.morando](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.morando/32/8039_2.png) [@andrea.morando](https://forum.inductiveautomation.com/u/andrea.morando)\
**Post date:** [March 27, 2019, 2:27pm UTC](https://forum.inductiveautomation.com/t/bug-tags-eventscripts-dispatcher-error/23608/5 "2019-03-27T14:27:27Z")

</div>

Thank you very much, Kevin.
