To start 2 days ago this worked but now get the below.
I am trying a very simple Access database post ( I had issues with a more complicated one and boiled it down still having the same issues). I am trying to take 3 variables and post them to the Access database. See below screen show. The Access table is setup correctly (correct header names) but I am getting a very generic “Execute Non Query” error stating “No Condition defined” and the exception stating "RemoteException wrapping System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. ". The DB connects just fine and and “DatabaseConnection” is set to testdb.
The Insert statement: “Insert Into TestDB ( first, last, middle ) values (”+first+“,”+last+“,”+middle+“)”
Any thoughts on why I am gettign the error on the execute non query side?
Thanks for the quick response. I change to - “Insert Into TestDB ( first, last, middle ) values (@first,@last,@middle)” - but still have the same issue. The frustrating issue is this worked 2 days ago in a different project.
I assume you are following the edureka RPA tutorial because I am and our code looks similar. I spent over an hour trying to figure out what we both did wrong. Turns out I messed up two small details
There are multiple spots in the code where I wrote “”. Turns out that there is an single quote in the middle of that so you need to change every place where it says “” to “'”.
The word Received needs to be inside single quotes inside of double quotes. So you need to change “Received” to “‘Received’”
I hope this helps solve your problem, it sure caused me a lot of frustration.