# \[SOLVED\] New script not saving correctly still running old script 7.9.10

**URL:** <https://forum.inductiveautomation.com/t/solved-new-script-not-saving-correctly-still-running-old-script-7-9-10/31952>\
**Category:** Ignition\
**Created:** [February 5, 2020, 4:17pm UTC](https://forum.inductiveautomation.com/t/solved-new-script-not-saving-correctly-still-running-old-script-7-9-10/31952 "2020-02-05T16:17:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [February 5, 2020, 4:17pm UTC](https://forum.inductiveautomation.com/t/solved-new-script-not-saving-correctly-still-running-old-script-7-9-10/31952/1 "2020-02-05T16:17:31Z")

</div>

I have a script using the invokeLater() function that eventually opens a screen.

In my old script I had the line:

```
system.nav.openWindow('Main Navigation/_Navigation')

```

In my new script I have the line:

```
system.nav.openWindow('Main/_Navigation')

```

Now when I save to the gateway and run the new script I get the following error:

```
Traceback (most recent call last):
    File "<event:propertyChange>", line 31, in evaluateRFID
ValueError: Window Main/_Navigation does not exist.

at org.python.core.Py.ValueError(Py.java:309)
at 
com.inductiveautomation.factorypmi.application.script.builtin.NavUtilities$5.run(NavUtilities.java:431)
at com.inductiveautomation.factorypmi.application.script.builtin.WindowUtilities.doGUIAction(WindowUtilities.java:810)
at com.inductiveautomation.factorypmi.application.script.builtin.NavUtilities.openWindowImpl(NavUtilities.java:359)
at com.inductiveautomation.factorypmi.application.script.builtin.NavUtilities.openWindow(NavUtilities.java:349)
at com.inductiveautomation.factorypmi.application.script.builtin.NavUtilitiesDispatcher.openWindow(NavUtilitiesDispatcher.java:143)
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)
at com.inductiveautomation.ignition.common.script.ScriptManager$ReflectedInstanceFunction. __call__ (ScriptManager.java:431)
at org.python.core.PyObject. __call__ (PyObject.java:387)
at org.python.core.PyObject. __call__ (PyObject.java:391)
at org.python.pycode._pyx1.evaluateRFID$1(<event:propertyChange>:34)
at org.python.pycode._pyx1.call_function(<event:propertyChange>)
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.core.PyFunction. __call__ (PyFunction.java:356)
at com.inductiveautomation.ignition.common.script.ScriptManager.runFunction(ScriptManager.java:649)
at com.inductiveautomation.factorypmi.application.script.builtin.ClientSystemUtilities$2.run(ClientSystemUtilities.java:361)
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)

Ignition v7.9.10 (b2018112821)
Java: Oracle Corporation 1.8.0_221

```

Does anyone know how I can reset the gateway to read my new script and discard the old script? I know it has something to do with the invokeLater() because I delete everything but the following:

```
system.gui.messageBox('hello')

```

and everything is fine. I put the new script back in and the error comes back.  
Thanks for any help.

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [February 5, 2020, 4:35pm UTC](https://forum.inductiveautomation.com/t/solved-new-script-not-saving-correctly-still-running-old-script-7-9-10/31952/2 "2020-02-05T16:35:42Z")

</div>

After carefully checking my syntax I found a user-error. The path name was not correct.
