Using the package UiPath.Database.Activities, I am connecting to a database with an account that is only able to insert data, but does not have SELECT permission.
I am using the ‘DatabaseConnect’ activitie to configure the connection.
After that, im using the InsertDataTable to insert a datatable to the database, but Iam having this error:
message: Microsoft.Data.SqlClient.SqlException (0x80131904): The SELECT permission was denied on the object ‘', database '’, schema ‘dbo’. at UiPath.Database.Activities.InsertDataTable.HandleException(Exception ex, Boolean continueOnError) at UiPath.Database.Activities.InsertDataTable.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken) at UiPath.Database.Activities.AsyncTaskCodeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) ClientConnectionId:4baefa76-8bf4-4bed-9d95-f25db1a790fc Error Number:229,State:5,Class:14
The account exists only to write data, not to read, this activity did not have to only insert? Why I have this Select permission denied? How can I fix this?
That’s just strange. If you have insert, you should have select. If they won’t give you select, then you can’t use the Insert activity because after inserting it does a select to return the number of rows added.