# Error running function fpmi.system.invokeLater

**URL:** <https://forum.inductiveautomation.com/t/error-running-function-fpmi-system-invokelater/3932>\
**Category:** Ignition\
**Created:** [January 30, 2012, 11:30pm UTC](https://forum.inductiveautomation.com/t/error-running-function-fpmi-system-invokelater/3932 "2012-01-30T23:30:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [January 30, 2012, 11:30pm UTC](https://forum.inductiveautomation.com/t/error-running-function-fpmi-system-invokelater/3932/1 "2012-01-30T23:30:25Z")

</div>

ValueError: window xxxx is not currently open

I got this when I opened a window that had a long running query on it. I then switch windows before the response came back. Then I assume the response came back and this error popped up.

Can it be suppressed? I’d rather not see errors about windows I’ve closed.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 31, 2012, 4:12pm UTC](https://forum.inductiveautomation.com/t/error-running-function-fpmi-system-invokelater/3932/2 "2012-01-31T16:12:01Z")

</div>

In scripting you can use the try except block to catch exceptions:`try:
    win = system.gui.getWindow("WindowName")
    ....
except:
    system.gui.messageBox("WindowName not opened")`You can do whatever you want in the except part.
