1229 Not in local transaction state
Cause
This error occurs if a commitTransaction instruction is executed on the server but the beginTransaction instruction was executed on the client.
Action
Correct the portion of code in your application that resulted in the error.