# Gateway script question

**URL:** <https://forum.inductiveautomation.com/t/gateway-script-question/2319>\
**Category:** Ignition\
**Created:** [November 4, 2010, 6:29pm UTC](https://forum.inductiveautomation.com/t/gateway-script-question/2319 "2010-11-04T18:29:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon.Trusik](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jon.Trusik](https://forum.inductiveautomation.com/u/Jon.Trusik)\
**Post date:** [November 4, 2010, 6:29pm UTC](https://forum.inductiveautomation.com/t/gateway-script-question/2319/1 "2010-11-04T18:29:21Z")

</div>

I’m trying to access tag values in a timed gateway script. I need to create a shift end file, about 150 lines of TSV info. I can execute this script fine via a pushbutton on a client(just as a test), but the gateway script(time driven) errors out trying to use the getTagValue function. What am I missing here?

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [November 4, 2010, 9:46pm UTC](https://forum.inductiveautomation.com/t/gateway-script-question/2319/2 "2010-11-04T21:46:57Z")

</div>

Posting the error message you’re getting and the script you’re attempting to run would be helpful.

---

<div class="post-metadata">

**Author:** ![Jon.Trusik](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jon.Trusik](https://forum.inductiveautomation.com/u/Jon.Trusik)\
**Post date:** [November 4, 2010, 10:04pm UTC](https://forum.inductiveautomation.com/t/gateway-script-question/2319/3 "2010-11-04T22:04:35Z")

</div>

Here it is. As I said, runs fine on a client attached to a push button.

com.inductiveautomation.ignition.gateway.web.pages.config.systemconsole.LogViewer$SerializableLoggingEvent$ClonedThrowable: null  
org.python.core.Py.NameError(Py.java)com.inductiveautomation.ignition.common.script.builtin.AbstractTagUtilities.getTagValue(AbstractTagUtilities.java:61)sun.reflect.GeneratedMethodAccessor151.invoke(Unknown Source)sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)java.lang.reflect.Method.invoke(Unknown Source)org.python.core.PyReflectedFunction. **call** (PyReflectedFunction.java)com.inductiveautomation.ignition.common.script.ScriptManager$ReflectedInstanceFunction. **call** (ScriptManager.java:310)org.python.core.PyObject. **call** (PyObject.java)org.python.core.PyObject.invoke(PyObject.java)org.python.pycode.\_pyx5.f$0(\<TimerScript:MyTest (60000) [Rate, Shared]\>:3)org.python.pycode.\_pyx5.call\_function(\<TimerScript:MyTest (60000) [Rate, Shared]\>)org.python.core.PyTableCode.call(PyTableCode.java)org.python.core.PyCode.call(PyCode.java)org.python.core.Py.runCode(Py.java)com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:391)com.inductiveautomation.ignition.common.script.TimerScriptTask.run(TimerScriptTask.java:68)java.util.TimerThread.mainLoop(Unknown Source)java.util.TimerThread.run(Unknown Source)

---

<div class="post-metadata">

**Author:** ![Jon.Trusik](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jon.Trusik](https://forum.inductiveautomation.com/u/Jon.Trusik)\
**Post date:** [November 4, 2010, 10:05pm UTC](https://forum.inductiveautomation.com/t/gateway-script-question/2319/4 "2010-11-04T22:05:34Z")

</div>

BTW, it shows to be set at 60s, I did that while testing.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [November 5, 2010, 5:09pm UTC](https://forum.inductiveautomation.com/t/gateway-script-question/2319/5 "2010-11-05T17:09:07Z")

</div>

ok, and now the script you’re trying to run…
