Error updting DB with onCellEdited script at PowerTable

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

image

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

I am getting these errors:


Does anyone know how to fix it??

Thanks in advance!!

Mis-spelled datasource name?

Is that a typo on line 34?

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

system.db.runPrepUpdate(query, args, "Ignition")
1 Like

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

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