# Error updting DB with onCellEdited script at PowerTable

**URL:** <https://forum.inductiveautomation.com/t/error-updting-db-with-oncelledited-script-at-powertable/44923>\
**Category:** Ignition\
**Tags:** ignition80, database, vision, scripting\
**Created:** [March 25, 2021, 7:47pm UTC](https://forum.inductiveautomation.com/t/error-updting-db-with-oncelledited-script-at-powertable/44923 "2021-03-25T19:47:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcortez](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jcortez](https://forum.inductiveautomation.com/u/jcortez)\
**Post date:** [March 25, 2021, 7:47pm UTC](https://forum.inductiveautomation.com/t/error-updting-db-with-oncelledited-script-at-powertable/44923/1 "2021-03-25T19:47:49Z")

</div>

Hi everyone, I´ve been having issues with this code:

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

It won’t let me update any cell on my power table nor my DB when I try to edit it.

I did everything based on the information that I found here:  
[https://docs.inductiveautomation.com/display/DOC79/Updating+the+Database+through+the+Power+Table#UpdatingtheDatabasethroughthePowerTable-UsingaPowerTableComponent](https://docs.inductiveautomation.com/display/DOC79/Updating+the+Database+through+the+Power+Table#UpdatingtheDatabasethroughthePowerTable-UsingaPowerTableComponent)

I am getting these errors:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/f/0f50e24e8c165560365c1057e3268c96aca19b70.jpeg)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/5/a52106f781563e9706125563bcb38b0d404b853c.jpeg)

Does anyone know how to fix it??

Thanks in advance!!

---

<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:** [March 25, 2021, 8:51pm UTC](https://forum.inductiveautomation.com/t/error-updting-db-with-oncelledited-script-at-powertable/44923/2 "2021-03-25T20:51:00Z")

</div>

Mis-spelled datasource name?

---

<div class="post-metadata">

**Author:** ![cesrom](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cesrom](https://forum.inductiveautomation.com/u/cesrom)\
**Post date:** [March 25, 2021, 8:53pm UTC](https://forum.inductiveautomation.com/t/error-updting-db-with-oncelledited-script-at-powertable/44923/3 "2021-03-25T20:53:46Z")

</div>

Is that a typo on line 34?

You’re using “Igintion”, and maybe it should be “Ignition”.

```python
system.db.runPrepUpdate(query, args, "Ignition")

```

---

<div class="post-metadata">

**Author:** ![jcortez](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jcortez](https://forum.inductiveautomation.com/u/jcortez)\
**Post date:** [March 25, 2021, 9:05pm UTC](https://forum.inductiveautomation.com/t/error-updting-db-with-oncelledited-script-at-powertable/44923/4 "2021-03-25T21:05:02Z")

</div>

No, that is the name of the DB. It was misspelled since it was named.

So “Igintion” is the actual name of the DB.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/0/10aaafa2e6ad5680cab4850ec865af46dbfb984c.png)
