# \[BUG\] some expression are not re-evaluated in vision property binding

**URL:** <https://forum.inductiveautomation.com/t/bug-some-expression-are-not-re-evaluated-in-vision-property-binding/26053>\
**Category:** Ignition Early Access\
**Tags:** ignition80\
**Created:** [June 24, 2019, 9:34am UTC](https://forum.inductiveautomation.com/t/bug-some-expression-are-not-re-evaluated-in-vision-property-binding/26053 "2019-06-24T09:34:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [June 24, 2019, 9:34am UTC](https://forum.inductiveautomation.com/t/bug-some-expression-are-not-re-evaluated-in-vision-property-binding/26053/1 "2019-06-24T09:34:57Z")

</div>

@awalker, @paul-griffith  
I have expression on vision component property working fine in 7.9.  
I’ve converted the application to 8.0.3-nightly. The same expression are not well refreshed.

The data property of a component **Powertable** is binded to the folowing expression

```auto
try(
if(len({Root Container.TabParam.subData})>0,
columnRearrange({Root Container.TabParam.subData},
"TagPath",
"eqtPath",
"repereEqt",
"Tooltip",
"DataType",
"Enum",
"FormatString",
"Value",
"ValueEnum",
"EngUnit",
"EngLow",
"EngHigh",
"writeEnable"),None),
None)

```

When the content of the custom property **subData** change, the expression seems not to be re-evaluated.

I’ve added a button with the following code to force a refresh, and in that case, the powertable display the updated data.

```auto
system.db.refresh(event.source.parent.getComponent('TabParam'),"data")

```

---

<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:** [June 24, 2019, 12:14pm UTC](https://forum.inductiveautomation.com/t/bug-some-expression-are-not-re-evaluated-in-vision-property-binding/26053/2 "2019-06-24T12:14:34Z")

</div>

Sounds like a bug.

---

<div class="post-metadata">

**Author:** ![osolorzano](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/osolorzano/32/6432_2.png) [@osolorzano](https://forum.inductiveautomation.com/u/osolorzano)\
**Post date:** [July 10, 2019, 4:07pm UTC](https://forum.inductiveautomation.com/t/bug-some-expression-are-not-re-evaluated-in-vision-property-binding/26053/3 "2019-07-10T16:07:04Z")

</div>

How exactly do you have TabParam.subData configured? Is it an expression off TabParam.data? If refreshing TabParam.data using system.db.refresh() is updating the custom property then it sounds like you have a query binding that is not polling.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [July 10, 2019, 5:04pm UTC](https://forum.inductiveautomation.com/t/bug-some-expression-are-not-re-evaluated-in-vision-property-binding/26053/4 "2019-07-10T17:04:15Z")

</div>

subData is Dataset custom parameter of the PowerTable.  
The value of subData is updated by a script.

When subData change, data is not updated by the expression.  
If I force the expression to evaluate with system.db.refresh, it is ok until the next change of subData.

I’ve added another another powerTable to debug the content of subData, with a binding to the data property. The data are displayed are OK.

That why I suspect the expression not to be well evaluated.

---

<div class="post-metadata">

**Author:** ![osolorzano](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/osolorzano/32/6432_2.png) [@osolorzano](https://forum.inductiveautomation.com/u/osolorzano)\
**Post date:** [July 10, 2019, 5:52pm UTC](https://forum.inductiveautomation.com/t/bug-some-expression-are-not-re-evaluated-in-vision-property-binding/26053/5 "2019-07-10T17:52:54Z")

</div>

Can you send the view with this power table and script you are using? If not this will probably be better handled by support. We have not been able to replicate this internally. Using the expression you provided, when the dataset in the custom property was updated, so was the data property.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [July 11, 2019, 11:29am UTC](https://forum.inductiveautomation.com/t/bug-some-expression-are-not-re-evaluated-in-vision-property-binding/26053/6 "2019-07-11T11:29:39Z")

</div>

I forgot to mention another binding on the **columnsAttributteDate** property of the powerTable.  
I send you in a PM an export for this view.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f4d91df3bbb00b28d6f15ce9f1462cd2b14636bf.png)

---

<div class="post-metadata">

**Author:** ![osolorzano](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/osolorzano/32/6432_2.png) [@osolorzano](https://forum.inductiveautomation.com/u/osolorzano)\
**Post date:** [July 11, 2019, 7:14pm UTC](https://forum.inductiveautomation.com/t/bug-some-expression-are-not-re-evaluated-in-vision-property-binding/26053/7 "2019-07-11T19:14:57Z")

</div>

I’m sorry, even with the export you’ve provided I am not able to replicate using the expression you have set up and the powertable. I only changed the expression to fit a dataset I had configured and changed via script and it updated appropriately on my machine. Sadly, at this point my only suggestion is to contact support.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [July 11, 2019, 7:21pm UTC](https://forum.inductiveautomation.com/t/bug-some-expression-are-not-re-evaluated-in-vision-property-binding/26053/8 "2019-07-11T19:21:27Z")

</div>

Thanks, I will check with a more récent nightly or the final 8.0.3 and the contact the support if I reproduce the bug.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 26, 2019, 10:06am UTC](https://forum.inductiveautomation.com/t/bug-some-expression-are-not-re-evaluated-in-vision-property-binding/26053/9 "2019-08-26T10:06:23Z")

</div>

@osolorzano,  
I have upgraded to **Ignition 8.0.4-NIGHTLY - 21/08/2019** and I have still this issue.

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [August 26, 2019, 3:03pm UTC](https://forum.inductiveautomation.com/t/bug-some-expression-are-not-re-evaluated-in-vision-property-binding/26053/10 "2019-08-26T15:03:35Z")

</div>

I have seen something similar. I have vision bindings bound to a row/column in a client dataset tag. Sometimes the expression does not update when the dataset changes. I’ve had to create a custom property that is bound to client tag and then bind the expression to the custom property.  
I just tried to create a simple example, but of course it works on there.
