I have a script that runs fine as a client script, however when I try it as a Gateway script, it fails. I need to create a file and write data to it at a specific time. The data I am using are expression tags from [Client] tags group. Is this the problem?
Here is the info from the Gateway console error, I’ve also included the script I’m trying to run…
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.GeneratedMethodAccessor39.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._pyx3.f$0(<TimerScript:Production File (60000) [Delay, Shared]>:12)org.python.pycode._pyx3.call_function(<TimerScript:Production File (60000) [Delay, 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:72)java.util.TimerThread.mainLoop(Unknown Source)java.util.TimerThread.run(Unknown Source)
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.GeneratedMethodAccessor39.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._pyx3.f$0(<TimerScript:Production File (60000) [Delay, Shared]>:12)org.python.pycode._pyx3.call_function(<TimerScript:Production File (60000) [Delay, 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:72)java.util.TimerThread.mainLoop(Unknown Source)java.util.TimerThread.run(Unknown Source)
Gateway Script.txt (2.15 KB)