New to Retool and doing some app testing. I've got a test SQL database setup on Azure, and all good so far from a read of data perspective. However, after setting up a form for quick insert of a record into a table in that database, I'm getting the following error:
statusCode:422
error:"Unprocessable Entity"
message:"The target table of the DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause."
data:null
Would you be able to share screenshots of the SQL query you are making?
Does a very simple select * statement work? (to test your resource setup is working)
The SQL SELECT query itself works great. No issues reading data from the database, and seeing it in a table. It's the adding a record - or editing a record I've also found - where I get that error.
Could you try running the insert query in SQL raw mode to see if that works? Curious to see your configuration for the query as well, that'll also help us provide appropriate syntax if need be
Hey @dhretool! Sorry about the late reply here. I haven't been able to reproduce this on my end, using generated forms for input queries seems to be running fine. If you'd like us to take a look at your app ourselves for additional debugging you can try writing in to us directly. Otherwise, I might recommend sticking with the RAW SQL query and passing in the values from your form dynamically using {{}} (as you would with the key-value pairs).
The target table of the DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause.
Would love for it to get checked / resolved. (removing any triggers does not change anything)
Not sure if it is relevant, but it did work with the automatically generated forms / table setup. But I recently switched the tables to the newer table component. I also made other changes so not sure if that is what started the error.
I have the same issue here, using SQL server on Azure. The table has a trigger defined and I am trying to use the GUI mode to update an existing record. SQL works fine for the same query. I tried switching to GUI mode after a recommendation that it would allow for notification of query failure if the query didn't update any rows.