System CurrentDateTime frozen

Hi All,

My system tag “[System]Gateway/CurrentDateTime” is frozen to the instance the gateway started.

All my scripts which reference this tag value are returning:

Traceback (most recent call last):
File “event:visionWindowOpened”, line 2, in
File “module:project.EventLog”, line 28, in LogEvent
at org.python.core.PyString.(PyString.java:35)

at org.python.core.PyString.(PyString.java:42)

at org.python.core.PyException.(PyException.java:61)

at org.python.core.Py.ValueError(Py.java:309)

at com.inductiveautomation.ignition.common.script.builtin.DateUtilities.format(DateUtilities.java:309)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Cannot create PyString from null!

at org.python.core.Py.JavaError(Py.java:495)
at org.python.core.Py.JavaError(Py.java:488)
at org.python.core.PyReflectedFunction.call(PyReflectedFunction.java:188)
at org.python.core.PyReflectedFunction.call(PyReflectedFunction.java:204)
at org.python.core.PyObject.call(PyObject.java:404)
at org.python.core.PyObject.call(PyObject.java:408)
at org.python.pycode.pyx4.LogEvent$1(module:project.EventLog:55)
at org.python.pycode.pyx4.call_function(module:project.EventLog)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
at org.python.core.PyFunction.function___call
(PyFunction.java:376)
at org.python.core.PyFunction.call(PyFunction.java:371)
at org.python.core.PyFunction.call(PyFunction.java:361)
at org.python.pycode._pyx6.f$0(event:visionWindowOpened:2)
at org.python.pycode._pyx6.call_function(event:visionWindowOpened)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1275)
at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:647)
at com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter.runActions(ActionAdapter.java:183)
at com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter.invoke(ActionAdapter.java:284)
at com.inductiveautomation.factorypmi.application.binding.action.RelayInvocationHandler.invoke(RelayInvocationHandler.java:55)
at com.sun.proxy.$Proxy16.visionWindowOpened(Unknown Source)
at com.inductiveautomation.factorypmi.application.FPMIWindow.fireVisionWindowOpened(FPMIWindow.java:726)
at com.inductiveautomation.factorypmi.application.VisionDesktop$RuntimeWindowOpener.openWindow(VisionDesktop.java:520)
at com.inductiveautomation.factorypmi.application.VisionDesktop.openWindow(VisionDesktop.java:193)
at com.inductiveautomation.factorypmi.application.VisionDesktop.openWindow(VisionDesktop.java:185)
at com.inductiveautomation.factorypmi.application.FPMIApp.startup(FPMIApp.java:510)
at com.inductiveautomation.factorypmi.application.runtime.ClientPanel$13$1.run(ClientPanel.java:698)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Cannot create PyString from null!
at org.python.core.PyString.(PyString.java:35)
at org.python.core.PyString.(PyString.java:42)
at org.python.core.PyException.(PyException.java:61)
at org.python.core.Py.ValueError(Py.java:309)
at com.inductiveautomation.ignition.common.script.builtin.DateUtilities.format(DateUtilities.java:309)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyReflectedFunction.call(PyReflectedFunction.java:186)
… 40 more

Ignition v7.9.1 (b2017012511)
Java: Oracle Corporation 1.8.0_101

And if I point a expression tag to the CurrentDateTime tag, it returns null.

We have tried restarting the gateway, restoring backups and restarting the machine… Running out of ideas. Any help would be much appreciated.

Thanks,
Cem

Try updating Ignition; there was an issue that could crop up with the system tags on 7.9.0/1.