# Spinner recursive error with binded tags

**URL:** <https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433>\
**Category:** Ignition\
**Created:** [March 20, 2018, 9:56am UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433 "2018-03-20T09:56:43Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Myllka](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/myllka/32/4140_2.png) [@Myllka](https://forum.inductiveautomation.com/u/Myllka)\
**Post date:** [March 20, 2018, 9:56am UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/1 "2018-03-20T09:56:44Z")

</div>

Hi,

I have problems with spinner component:  
I put some in a window, with value, minimum, maximum and step binded on indirect tags.  
Each time I change the parameter of the indirection, I have this popup of error:  
“Error in spinner configuration.”  
“IllegalArgumentException: (minimum \<= value \<= maximum) is false”

I think it’s because of the order of binding, so I tried to set it with python: I set limits before the newValue.  
It reduces the bug, but it still occures pretty often.

Note that the spinner after closing the error message is fully functionnal.

Any idea how I can escape this annoying error ?

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:** [March 20, 2018, 1:01pm UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/2 "2018-03-20T13:01:39Z")

</div>

You probably won’t be able to use binding for the min/max if your ranges are too different. You’ll have to use scripting to change the order of changes dynamically based on the difference between old range/value and new range/value. The constraint shown must remain true while each limit is changed – you must figure out (programmatically) what order to make the adjustments.

---

<div class="post-metadata">

**Author:** ![Myllka](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/myllka/32/4140_2.png) [@Myllka](https://forum.inductiveautomation.com/u/Myllka)\
**Post date:** [March 20, 2018, 1:16pm UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/3 "2018-03-20T13:16:13Z")

</div>

That will make a lot of if for sure ! I’ll try that if there nothing simpler, 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:** [March 20, 2018, 1:29pm UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/4 "2018-03-20T13:29:59Z")

</div>

I would perform five assignments in a script, something like this:

```auto
spinner.minValue = min(spinner.minValue, newMin)
spinner.maxValue = max(spinner.maxValue, newMax)
spinner.intValue = min(newMax, max(newMin, spinner.intValue))
spinner.minValue = newMin
spinner.maxValue = newMax

```

---

<div class="post-metadata">

**Author:** ![Myllka](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/myllka/32/4140_2.png) [@Myllka](https://forum.inductiveautomation.com/u/Myllka)\
**Post date:** [March 20, 2018, 1:41pm UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/5 "2018-03-20T13:41:17Z")

</div>

Oh yeah forgot about these usefull functions ! thanks a lot !

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [March 20, 2018, 2:12pm UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/6 "2018-03-20T14:12:08Z")

</div>

This is a known issue – we’re being a little too aggressive on when we evaluate your limits. It won’t help you right now, but we should have a fix in 7.9.9

---

<div class="post-metadata">

**Author:** ![Myllka](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/myllka/32/4140_2.png) [@Myllka](https://forum.inductiveautomation.com/u/Myllka)\
**Post date:** [March 20, 2018, 3:59pm UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/7 "2018-03-20T15:59:49Z")

</div>

The scripted method seems to do the job until 7.9.9 is coming !

---

<div class="post-metadata">

**Author:** ![mitchell-ACS](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mitchell-acs/32/30062_2.png) [@mitchell-ACS](https://forum.inductiveautomation.com/u/mitchell-ACS)\
**Post date:** [January 25, 2019, 12:00am UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/8 "2019-01-25T00:00:45Z")

</div>

I am still getting this error on 7.9.10.

---

<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:** [January 25, 2019, 12:29am UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/9 "2019-01-25T00:29:34Z")

</div>

Yes, the fix got pushed back from 7.9.9 - it’s actually fixed in 7.9.11. The beta should be out fairly soon, so you can confirm.

---

<div class="post-metadata">

**Author:** ![mitchell-ACS](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mitchell-acs/32/30062_2.png) [@mitchell-ACS](https://forum.inductiveautomation.com/u/mitchell-ACS)\
**Post date:** [January 25, 2019, 4:59pm UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/10 "2019-01-25T16:59:31Z")

</div>

@paul-griffith thanks for the quick follow up, I’ll wait for 7.9.11.

---

<div class="post-metadata">

**Author:** ![AJBerera](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AJBerera](https://forum.inductiveautomation.com/u/AJBerera)\
**Post date:** [March 9, 2019, 9:21pm UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/11 "2019-03-09T21:21:21Z")

</div>

7.9.11 beta 1 installed. Still having issues with the spinners I had, Red outlines, occasionally error overlays. I replaced with new components, seems ok now.

Edit:  
Restarted my gateway and the red overlay errors are back.

---

<div class="post-metadata">

**Author:** ![mitchell-ACS](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mitchell-acs/32/30062_2.png) [@mitchell-ACS](https://forum.inductiveautomation.com/u/mitchell-ACS)\
**Post date:** [April 25, 2019, 9:50pm UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/12 "2019-04-25T21:50:16Z")

</div>

@paul-griffith is the issue corrected in 8.0?  
What’s the status for 7.9.11?

---

<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:** [April 25, 2019, 10:21pm UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/13 "2019-04-25T22:21:50Z")

</div>

Yes, the fix was copied into 8.0. 7.9.11 is supposed to be out in May, last I heard.

---

<div class="post-metadata">

**Author:** ![Schwartzds](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/schwartzds/32/6777_2.png) [@Schwartzds](https://forum.inductiveautomation.com/u/Schwartzds)\
**Post date:** [August 22, 2019, 12:52pm UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/14 "2019-08-22T12:52:45Z")

</div>

Still getting the error 7.9.10

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 22, 2019, 1:11pm UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/15 "2019-08-22T13:11:40Z")

</div>

A few posts up Paul mentions it’s fixed in 7.9.11, not 7.9.10.

---

<div class="post-metadata">

**Author:** ![Schwartzds](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/schwartzds/32/6777_2.png) [@Schwartzds](https://forum.inductiveautomation.com/u/Schwartzds)\
**Post date:** [August 22, 2019, 2:50pm UTC](https://forum.inductiveautomation.com/t/spinner-recursive-error-with-binded-tags/17433/16 "2019-08-22T14:50:39Z")

</div>

Thanks, missed that post. Just upgraded and now getting a gateway error.
