# System CurrentDateTime frozen

**URL:** <https://forum.inductiveautomation.com/t/system-currentdatetime-frozen/14511>\
**Category:** Ignition\
**Created:** [June 14, 2017, 4:58am UTC](https://forum.inductiveautomation.com/t/system-currentdatetime-frozen/14511 "2017-06-14T04:58:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mecon2](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@mecon2](https://forum.inductiveautomation.com/u/mecon2)\
**Post date:** [June 14, 2017, 4:58am UTC](https://forum.inductiveautomation.com/t/system-currentdatetime-frozen/14511/1 "2017-06-14T04:58:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 14, 2017, 2:49pm UTC](https://forum.inductiveautomation.com/t/system-currentdatetime-frozen/14511/2 "2017-06-14T14:49:03Z")

</div>

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