Hi all,
I am trying to insert data into MYSQL database using below query in a variable but the data is not uploading properly its shown as empty rows in DB. I have also passed the variables in parameters but don’t know why this happened.
“INSERT INTO RPA_FBL_UAT.Weekly_PDF_TABLE
(Job_ID, Cash and balances with treasury banks, Investments, Gross Advances, Provisions, Advances- net of provision, Deposits and other accounts, File Date)
VALUES (@iDJOB, @cashbalanceotherbank, @Investmentsdata, @grossadvance, @Provisionsdata, @advancenetdata, @Depositsdata, @currentday);”
INSERT INTO RPA_FBL_UAT.Weekly_PDF_TABLE
(Job_ID, `Cash and balances with treasury banks`, Investments, `Gross Advances`, Provisions, `Advances- net of provision`,
`Deposits and other accounts`, `File Date`)
VALUES (?, ?, ?, ?, ?, ?, ?, ?);
In the “Parameters” property of the “Execute Non-Query” activity, provide a List of objects containing the values for the parameters in the order they appear in the query. Parameters: {iDJOB, cashbalanceotherbank, Investmentsdata, grossadvance, Provisionsdata, advancenetdata, Depositsdata, currentday}
yes i have validate it manually as well all the variable and sequence in parameter is as per DB. Is that the below pattern is ok??
Query:
“INSERT Into RPA_FBL_UAT.Weekly_PDF_TABLE
(‘Job_ID’, ‘Cash And balances With treasury banks’, ‘Investments’, ‘Gross Advances’, ‘Provisions’, ‘Advances- net Of provision’,
‘Deposits And other accounts’, ‘File Date’)
VALUES (?, ?, ?, ?, ?, ?, ?, ?);”
Try:
INSERT INTO RPA_FBL_UAT.Weekly_PDF_TABLE
(Job_ID, [Cash And balances With treasury banks], Investments, [Gross Advances], Provisions, [Advances- net Of provision],
[Deposits And other accounts], [File Date])
VALUES (?, ?, ?, ?, ?, ?, ?, ?);