# runScript error when used in Expression Binding

**URL:** <https://forum.inductiveautomation.com/t/runscript-error-when-used-in-expression-binding/30334>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [November 29, 2019, 9:08pm UTC](https://forum.inductiveautomation.com/t/runscript-error-when-used-in-expression-binding/30334 "2019-11-29T21:08:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loizel87](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@Loizel87](https://forum.inductiveautomation.com/u/Loizel87)\
**Post date:** [November 29, 2019, 9:08pm UTC](https://forum.inductiveautomation.com/t/runscript-error-when-used-in-expression-binding/30334/1 "2019-11-29T21:08:39Z")

</div>

I am currently having difficulties with the runScript function within Ignition 8.0 perspective. I have generated a script within “Project Library” called WriteAccess. The script accepts a tagpath input and determines the read/write capability of that tag based on current user. I have been able to successfully run the script using the script console. When i go to transfer this to an expression binding the expression fails to evaluate. the error is “Error\_ExpressionEval”. I have tried both the 8.0.6 stable build as well the latest nightly build to determine if it was a software issue.

any help is appreciated. Thanks,

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9131f2096cb9b41421d79f9eb7b34f5fb2f560ec.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/157af8b977da4c465dfddfc0a1a83641a2be531e.png)

---

<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:** [November 29, 2019, 10:07pm UTC](https://forum.inductiveautomation.com/t/runscript-error-when-used-in-expression-binding/30334/2 "2019-11-29T22:07:21Z")

</div>

If your function has any augments you don’t include the `()` in the scriptFunction parameter.

---

<div class="post-metadata">

**Author:** ![Loizel87](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@Loizel87](https://forum.inductiveautomation.com/u/Loizel87)\
**Post date:** [November 29, 2019, 10:14pm UTC](https://forum.inductiveautomation.com/t/runscript-error-when-used-in-expression-binding/30334/3 "2019-11-29T22:14:29Z")

</div>

> [@Loizel87](#):
>
> p

Kevin,  
thanks for the response. Even with the brackets "()" removed it still fails to evaluate correctly.

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

---

<div class="post-metadata">

**Author:** ![andytimc](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andytimc/32/11938_2.png) [@andytimc](https://forum.inductiveautomation.com/u/andytimc)\
**Post date:** [January 5, 2021, 10:28pm UTC](https://forum.inductiveautomation.com/t/runscript-error-when-used-in-expression-binding/30334/4 "2021-01-05T22:28:17Z")

</div>

Was there ever a solution to this problem. I am running into something similar but with an expression tag after moving from 7.9 to 8.1. My tag is a dataset type expression tag. it runs the following script without error. However it doesn’t return a good dataset it returns a [1Rx1C] -\>value[value][0]

runscript(“shared.app.getSetpointDataset(‘B1/Pad’)”).

However when I run the script in a script console it returns a 5x2 dataset as expected.

---

<div class="post-metadata">

**Author:** ![andytimc](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andytimc/32/11938_2.png) [@andytimc](https://forum.inductiveautomation.com/u/andytimc)\
**Post date:** [January 6, 2021, 2:09pm UTC](https://forum.inductiveautomation.com/t/runscript-error-when-used-in-expression-binding/30334/5 "2021-01-06T14:09:17Z")

</div>

After I upgraded to ignition 8.1 the runscript functions in expression tags were not functioning properly. I ended up making sure the gateway scripting project was set up, which it was. And then I opened the global project that was created. After that all the expression tags started to work.

---

<div class="post-metadata">

**Author:** ![Cole\_Townsend](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cole_townsend/32/53149_2.png) [@Cole\_Townsend](https://forum.inductiveautomation.com/u/Cole_Townsend)\
**Post date:** [August 5, 2022, 2:35pm UTC](https://forum.inductiveautomation.com/t/runscript-error-when-used-in-expression-binding/30334/6 "2022-08-05T14:35:19Z")

</div>

Did you ever find a solution to this problem?
