# Valuechanged type error 'str' object is not callable

**URL:** <https://forum.inductiveautomation.com/t/valuechanged-type-error-str-object-is-not-callable/10262>\
**Category:** Ignition\
**Created:** [July 23, 2015, 2:24pm UTC](https://forum.inductiveautomation.com/t/valuechanged-type-error-str-object-is-not-callable/10262 "2015-07-23T14:24:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea.montresor](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@andrea.montresor](https://forum.inductiveautomation.com/u/andrea.montresor)\
**Post date:** [July 23, 2015, 2:24pm UTC](https://forum.inductiveautomation.com/t/valuechanged-type-error-str-object-is-not-callable/10262/1 "2015-07-23T14:24:42Z")

</div>

Hello,  
I have a problem in the changed value of a tag. I put this script:

[i]import time  
value\_command = system.tag.read("[.]NEW\_COMMAND")  
value\_command\_1 = value\_command.getValue()

query = (“UPDATE scd\_command SET id\_command\_status = 1 WHERE cd\_command = %i”)  
system.db.runUpdateQuery(query % (value\_command\_1))

value = system.tag.read("[.]HEADER")  
value\_1 = value.getValue()  
system.tag.write("[.]FOOTER", value\_1)  
time.sleep(1)  
system.tag.write("[.]WRITE\_FOOTER",0)[/i]

But it gives me this error:  
Valuechanged type error ‘str’ object is not callable

I tried the script playground and I do not return this error.  
Can you help to solve?

Thanks

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/49dc63de65005eb8f4ac58a7126d83d8dcb391a2.png)

---

<div class="post-metadata">

**Author:** ![JGJohnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jgjohnson/32/29582_2.png) [@JGJohnson](https://forum.inductiveautomation.com/u/JGJohnson)\
**Post date:** [July 23, 2015, 5:45pm UTC](https://forum.inductiveautomation.com/t/valuechanged-type-error-str-object-is-not-callable/10262/2 "2015-07-23T17:45:11Z")

</div>

Try this instead:

`
query = "UPDATE scd_command SET id_command_status = 1 WHERE cd_command = %i" % value_command_1
system.db.runUpdateQuery(query)`
