I use below code to do sql bulk upload from c# datatable. Even though, I increased the bulkcopytimeout to 1 hour, my workflow kicks out in approximately 2 minutes with
“The timeout period elapsed prior to completion of the operation or the server
is not responding.”
Is there an OpenRPA setting which overrides the timeout value? Could you please assist?
using (var connection = new System.Data.SqlClient.SqlConnection(_connectionString))
{
connection.Open();
using (var bulkcopy = new System.Data.SqlClient.SqlBulkCopy(connection))
{
bulkcopy.BulkCopyTimeout = 3600;
bulkcopy.BatchSize = 1000;
bulkcopy.DestinationTableName = _tableToUpload;
bulkcopy.WriteToServer(_reportTable);
}
connection.Close();
}
Thank you,
Rajesh P. N.