# Bug: event scripts linked to local file service do not get executed (V2.11.1)

**URL:** <https://community.dreamfactory.com/t/bug-event-scripts-linked-to-local-file-service-do-not-get-executed-v2-11-1/4264>\
**Category:** Feature Requests, Bugs, Issues\
**Created:** [January 26, 2018, 6:10pm UTC](https://community.dreamfactory.com/t/bug-event-scripts-linked-to-local-file-service-do-not-get-executed-v2-11-1/4264 "2018-01-26T18:10:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jps](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@jps](https://community.dreamfactory.com/u/jps)\
**Post date:** [January 26, 2018, 6:10pm UTC](https://community.dreamfactory.com/t/bug-event-scripts-linked-to-local-file-service-do-not-get-executed-v2-11-1/4264/1 "2018-01-26T18:10:19Z")

</div>

In version 2.10, there is a very useful feature that suggests we can now host event scripts on the file system, by linking the scripts to a file service.

I created a new file service for this purpose, pointed it to a folder under ‘storage’ and gave it a name of a script file. It managed to read the script and show it in the console when I clicked “view latest”. However, the script is never executed, even though it’s saved, set to active. Clearing the cache did not resolve this.  
: When saving the script, the loaded script disappears. Not sure if this is by design.

Also, the number of characters allowed in the filename is limited. Suggestion: increase the number of characters allowed and default to the script name as shown in the console. This way, script files can be easily traces back to the relevant endpoint and method.

EDIT: upgraded instance from 2.10 to to 2.11.1, same result. Modified title of this post.

---

<div class="post-metadata">

**Author:** ![Erik\_Jacobsen](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/erik_jacobsen/32/1132_2.png) [@Erik\_Jacobsen](https://community.dreamfactory.com/u/Erik_Jacobsen)\
**Post date:** [April 20, 2018, 3:55pm UTC](https://community.dreamfactory.com/t/bug-event-scripts-linked-to-local-file-service-do-not-get-executed-v2-11-1/4264/2 "2018-04-20T15:55:39Z")

</div>

Hi @jps,

What language are you scripting in?

Thanks!

---

<div class="post-metadata">

**Author:** ![jps](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@jps](https://community.dreamfactory.com/u/jps)\
**Post date:** [April 20, 2018, 5:55pm UTC](https://community.dreamfactory.com/t/bug-event-scripts-linked-to-local-file-service-do-not-get-executed-v2-11-1/4264/3 "2018-04-20T17:55:31Z")

</div>

Javascript. Upgraded to 2.12, same result.

---

<div class="post-metadata">

**Author:** ![jps](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@jps](https://community.dreamfactory.com/u/jps)\
**Post date:** [November 11, 2018, 9:36pm UTC](https://community.dreamfactory.com/t/bug-event-scripts-linked-to-local-file-service-do-not-get-executed-v2-11-1/4264/4 "2018-11-11T21:36:00Z")

</div>

At version 2.14 now. Same result. Is this working for anyone?  
I need this so we can version control scripts.
