# Error serializing parameters from propertyChange script

**URL:** <https://forum.inductiveautomation.com/t/error-serializing-parameters-from-propertychange-script/103385>\
**Category:** Ignition\
**Tags:** scripting, vision\
**Created:** [March 7, 2025, 1:56pm UTC](https://forum.inductiveautomation.com/t/error-serializing-parameters-from-propertychange-script/103385 "2025-03-07T13:56:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samer\_Samy1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/samer_samy1/32/52910_2.png) [@Samer\_Samy1](https://forum.inductiveautomation.com/u/Samer_Samy1)\
**Post date:** [March 7, 2025, 1:56pm UTC](https://forum.inductiveautomation.com/t/error-serializing-parameters-from-propertychange-script/103385/1 "2025-03-07T13:56:38Z")

</div>

I am facing same error as below :

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

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/0/706e81c0d2c5e9d497c621abd665603fabb6d195.png)

How to fix this !

Note: the memory tag already updated with the list index value but the error appears.

---

<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:** [March 7, 2025, 2:04pm UTC](https://forum.inductiveautomation.com/t/error-serializing-parameters-from-propertychange-script/103385/2 "2025-03-07T14:04:27Z")

</div>

You need to filter property change events based on the property name, e.g.

```python
# It is common to use propertyName to look for specific properties to change. This is a great way to restrict how often your scripts execute
if event.propertyName == 'text':
  print 'The Text property changed'

```

otherwise that script is firing for _every_ property change, and you're writing (or attempting to write) unexpected values to the tag.

---

<div class="post-metadata">

**Author:** ![Samer\_Samy1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/samer_samy1/32/52910_2.png) [@Samer\_Samy1](https://forum.inductiveautomation.com/u/Samer_Samy1)\
**Post date:** [March 7, 2025, 2:16pm UTC](https://forum.inductiveautomation.com/t/error-serializing-parameters-from-propertychange-script/103385/3 "2025-03-07T14:16:30Z")

</div>

Thanks
