# Progress Bar not Progressing in Client

**URL:** <https://forum.inductiveautomation.com/t/progress-bar-not-progressing-in-client/12669>\
**Category:** General Discussion\
**Created:** [February 10, 2017, 5:17pm UTC](https://forum.inductiveautomation.com/t/progress-bar-not-progressing-in-client/12669 "2017-02-10T17:17:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neil](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@Neil](https://forum.inductiveautomation.com/u/Neil)\
**Post date:** [February 10, 2017, 5:17pm UTC](https://forum.inductiveautomation.com/t/progress-bar-not-progressing-in-client/12669/1 "2017-02-10T17:17:37Z")

</div>

I have a progress bar who’s value is bound to a tag. This tag is incremented up by 1 (to a value of 5000) inside of a ‘while’ loop (while the tag value is less than 5001). This while loop is part of a script that is activated by a button.

The progress bar is not showing any progress in the Client. However, it is showing progress in the Designer.

What could be the issue why it’s not progressing in the Client?

Thanks.

---

<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:** [February 10, 2017, 6:10pm UTC](https://forum.inductiveautomation.com/t/progress-bar-not-progressing-in-client/12669/2 "2017-02-10T18:10:06Z")

</div>

You’ll need to share more code to be sure, but you can’t run long processes within any event procedure – it doesn’t give the rest of your application any opportunity to run. You must use an [asynchronous background thread](https://docs.inductiveautomation.com/display/DOC/system.util.invokeAsynchronous) for such things, passing values back through tag writes or using [invokeLater()](https://docs.inductiveautomation.com/display/DOC/system.util.invokeLater) to run property assignments in the foreground from your background thread.

---

<div class="post-metadata">

**Author:** ![Neil](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@Neil](https://forum.inductiveautomation.com/u/Neil)\
**Post date:** [February 11, 2017, 12:39am UTC](https://forum.inductiveautomation.com/t/progress-bar-not-progressing-in-client/12669/3 "2017-02-11T00:39:03Z")

</div>

Thanks for the response Phil.

You were correct in that I needed to use an asynchronous background thread.

To tell you the truth, I wasn’t familiar with that aspect, so I called tech support. It took a little while, but they ended up using an asynchronous thread. Now it works fine.
