# PopertyChange error

**URL:** <https://forum.inductiveautomation.com/t/popertychange-error/21587>\
**Category:** Ignition\
**Created:** [December 24, 2018, 10:38am UTC](https://forum.inductiveautomation.com/t/popertychange-error/21587 "2018-12-24T10:38:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamerplc](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tamerplc](https://forum.inductiveautomation.com/u/tamerplc)\
**Post date:** [December 24, 2018, 10:38am UTC](https://forum.inductiveautomation.com/t/popertychange-error/21587/1 "2018-12-24T10:38:15Z")

</div>

I have script on power table to showing the selected row&Column in ‘Text Area’ .  
in case of table query result showing no data on the table .i got this error "Error executing script for event on component Power Table "

```auto
if event.propertyName in ["selectedColumn","selectedRow"]:
	     	     value = str(event.source.data.getValueAt(event.source.selectedRow,event.source.selectedColumn))
	             event.source.parent.getComponent('Text Area').text = value

```

---

<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:** [December 24, 2018, 2:49pm UTC](https://forum.inductiveautomation.com/t/popertychange-error/21587/2 "2018-12-24T14:49:45Z")

</div>

You’ll have to check the rowCount property of the dataset. Only perform the getValueAt() if rowCount\>0.

---

<div class="post-metadata">

**Author:** ![tamerplc](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tamerplc](https://forum.inductiveautomation.com/u/tamerplc)\
**Post date:** [December 25, 2018, 4:38pm UTC](https://forum.inductiveautomation.com/t/popertychange-error/21587/3 "2018-12-25T16:38:24Z")

</div>

Thanks .I used cloumnCount\>0 and working fine .With same concept as per your advise.
