# Multistate indicator not binding correctly

**URL:** <https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [February 24, 2025, 5:03pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800 "2025-02-24T17:03:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [February 24, 2025, 5:03pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/1 "2025-02-24T17:03:01Z")

</div>

Hey, I've got a simple window that's throwing an error in the multistate indicator property binding.

Here's the XML.  
[window.xml](https://forum.inductiveautomation.com/uploads/short-url/pngLD0yF9oHOZsogXyOWnhpCikw.xml) (37.2 KB)

Everything looks correct inside the XML and the only change here from a project that worked should be 'changing the tags the tank binds to and its position'.

---

<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 24, 2025, 5:12pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/2 "2025-02-24T17:12:50Z")

</div>

Is this the same as over here?

> [@Getting an odd exception on a simple vision project](https://forum.inductiveautomation.com/t/getting-an-odd-exception-on-a-simple-vision-project/102786):
>
> Specifically, I'm seeing: SerializationException: Error invoking [BoundVariableExpression]com.inductiveautomation.factorypmi.application.binding.expression.BoundVariableExpression@53112a62.setPropertyListener() caused by IllegalArgumentException: wrong number of arguments Ignition v8.1.45 (b2025010709) Java: Azul Systems, Inc. 17.0.13 And i'm pretty sure it's tied to a multistate indicator, since the state is now printing as '14' when it should be 1-4: Here's the XML of the window: \<?xml…

If so, don't double post. This is against [this forum's rules](https://forum.inductiveautomation.com/faq).

If you don't get an answer on a post within several days, it is appropriate to add a "ping" comment to the original post. If you are in a hurry, open a support ticket.

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [February 24, 2025, 5:13pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/3 "2025-02-24T17:13:41Z")

</div>

It's slightly different, the old post was incorrect in symptoms and had the wrong XML, so I've flagged a mod to delete it.

If it would have been more appropriate to edit that post instead, I will do so in the future -- I'm used to forums where delete/add is the norm though, my apologies

---

<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 24, 2025, 5:15pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/4 "2025-02-24T17:15:50Z")

</div>

> [@Leor\_Fishman](#):
>
> it would have been more appropriate to edit that post instead, I will do so in the future

Yes, do. This forum keeps edits visible, so there's no misunderstandings.

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [February 24, 2025, 5:16pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/5 "2025-02-24T17:16:11Z")

</div>

Will do in the future, and apologies again!  
Didn't intend to spam

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [February 24, 2025, 5:29pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/6 "2025-02-24T17:29:34Z")

</div>

Any ideas on the object level?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 24, 2025, 5:49pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/7 "2025-02-24T17:49:51Z")

</div>

The expression on the state property doesn't match the tank name. (`Cylindical Tank` vs `Cylindrical Tank 1`

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [February 24, 2025, 5:51pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/8 "2025-02-24T17:51:26Z")

</div>

Where are you seeing Cylindrical Tank 1 in the xml?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 24, 2025, 5:56pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/9 "2025-02-24T17:56:02Z")

</div>

This is what I see when i import your xml into a new window.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/3/d331fffc0006ed0878c968cbf3b1a49abcd40950.png)

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 24, 2025, 5:58pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/10 "2025-02-24T17:58:39Z")

</div>

It removed the listener/binding from the multistate because `Cylindrical Tank` didn't exist.

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [February 24, 2025, 6:00pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/11 "2025-02-24T18:00:01Z")

</div>

Hmmm, ok -- why is the name of the tank changing?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 24, 2025, 6:01pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/12 "2025-02-24T18:01:52Z")

</div>

Beats me. lol.

Seriously, I tried changing the name to `Cylindrical Tank Test` in the XML and it imported as `Cylindrical Tank Test 1`

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 24, 2025, 6:08pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/13 "2025-02-24T18:08:06Z")

</div>

So, offhand, I believe this is a bug on setting items from XML. Can you post an export of the window instead?

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [February 24, 2025, 6:09pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/14 "2025-02-24T18:09:58Z")

</div>

When I export the window, the expression just comes out as blank

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 24, 2025, 6:20pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/15 "2025-02-24T18:20:42Z")

</div>

Try importing this one. You'll need to update the tank bindings.  
[Leor\_test\_2025-02-24\_1318.zip](https://forum.inductiveautomation.com/uploads/short-url/u0PL9ZwNntmaVlVCxDJrRk2O5rv.zip) (9.2 KB)

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [February 24, 2025, 6:44pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/16 "2025-02-24T18:44:30Z")

</div>

Tried a new setup  
[deviceconnupdate\_2025-02-24\_1044.zip](https://forum.inductiveautomation.com/uploads/short-url/mjSH6qozvjafox9C59m0FAgaYUs.zip) (9.6 KB)  
Now finding a new odd error involving null prop names?

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [February 24, 2025, 6:47pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/17 "2025-02-24T18:47:10Z")

</div>

(Your import works, but I'm wondering why my process to generate those bindings isn't working)

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [February 24, 2025, 7:38pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/18 "2025-02-24T19:38:08Z")

</div>

Here's my new XML: @JordanCClark any ideas?  
[deviceconnupdate\_2025-02-24\_1137.zip](https://forum.inductiveautomation.com/uploads/short-url/w5oGcgTt5iWq0Y6HHS3LU5gXaco.zip) (9.6 KB)

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [February 24, 2025, 10:09pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/19 "2025-02-24T22:09:57Z")

</div>

I've run through a bunch of improvements to now end up with the following XML:  
[nwindow.xml](https://forum.inductiveautomation.com/uploads/short-url/buDYEw833lXuMvE8r5hPP8BzRdm.xml) (25.5 KB)  
It _should_ just have the expression bindings for tank value and capacity changed (according to my internal differ,

Changes in o:

- Removed: capacity expression binding to 10000

- Added: capacity expression binding to {[default]Local\_Tags/A1}+{[default]Local\_Tags/A2}

- Removed: value expression binding to {[default]1\_A1-1\_A10/1\_A1}\*{[default]1\_A1-1\_A10/1\_A2}

- Added: value tag binding to [default]Local\_Tags/A1)

But I'm now seeing a deserialization error.

@pturmel @JordanCClark any ideas?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 24, 2025, 10:12pm UTC](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800/20 "2025-02-24T22:12:27Z")

</div>

- I would make this into a [template](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/vision/vision-templates)
- Properties within the template components should point to tags using indirect addresing.
- Top level parameters of the template hold just enough info to drive the indirect tags.

[Next page](https://forum.inductiveautomation.com/t/multistate-indicator-not-binding-correctly/102800.md?page=2)
