I use the same form to add new fields and edit in my data table in sql.
When I am editing a value, the error below is occurring and I am not editing the value in the data table (PS: when I add a new value, the error does not occur):

I deleted the form and repeated the calls, but still giving the same error, could someone help me?