I have been inserting data into a sql database, everything as been going fine so far however I uncounted this error.
Please you assist, it walking perfectly fine so I am unsure where the syntax is coming from.
Microsoft.Data.SqlClient.SqlException: Incorrect syntax near ‘)’. at UiPath.Database.Activities.ExecuteNonQuery.HandleException(Exception ex, Boolean continueOnError)
at UiPath.Database.Activities.ExecuteNonQuery.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
at UiPath.Database.Activities.AsyncTaskCodeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Can you first print the data and then check for any special characters in it…mostly i feel its the wingle quote preensent in the string if so say your data is abc’d then use dt.rows(0)(0).Tostring.Replace("’","’’")