# Interface stops during script with SQL query

**URL:** <https://forum.inductiveautomation.com/t/interface-stops-during-script-with-sql-query/16772>\
**Category:** Ignition\
**Created:** [January 27, 2018, 11:49pm UTC](https://forum.inductiveautomation.com/t/interface-stops-during-script-with-sql-query/16772 "2018-01-27T23:49:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 28, 2018, 3:48am UTC](https://forum.inductiveautomation.com/t/interface-stops-during-script-with-sql-query/16772/2 "2018-01-28T03:48:07Z")

</div>

Call the project script with [invokeAsynchronous()](https://docs.inductiveautomation.com/display/DOC79/system.util.invokeAsynchronous). Within the script, you can write to tags, but don’t access any windows or components in any way. If you must, use [invokeLater()](https://docs.inductiveautomation.com/display/DOC79/system.util.invokeLater) to spawn functions that can interact with the GUI. Consider using something like later.py, as described in [this thread](http://forum.inductiveautomation.com/t/update-gui-via-asynchronous-thread/9666/2), to help with sending data back and forth with these functions.

---

_[View the full topic](https://forum.inductiveautomation.com/t/interface-stops-during-script-with-sql-query/16772)._
