<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Insert CSV to SQL Table, Extending the Query Time out in the Code in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Insert-CSV-to-SQL-Table-Extending-the-Query-Time-out-in-the-Code/m-p/84036#M35232</link>
    <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/24384"&gt;@ImranMaredia&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;The SqlBulkCopy class exposes a property called &lt;STRONG&gt;BulkCopyTimeout&lt;/STRONG&gt;. If you set that property to 0 it basically says there is no limit and the bulk copy will wait indefinitely. I'm not recommending that though as if something happens you could end up with a stuck process. You might try breaking up the bulk data a bit. Perhaps divide it into collections of no more than 100K records and then perform the bulk copy 5 times.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 23 Dec 2021 17:23:00 GMT</pubDate>
    <dc:creator>ewilson</dc:creator>
    <dc:date>2021-12-23T17:23:00Z</dc:date>
    <item>
      <title>Insert CSV to SQL Table, Extending the Query Time out in the Code</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Insert-CSV-to-SQL-Table-Extending-the-Query-Time-out-in-the-Code/m-p/84035#M35231</link>
      <description>&lt;P&gt;Hello Everyone,&lt;BR /&gt;I have a blueprism code which I downloaded from Internet, This code imports CSV to SQL Table,&lt;BR /&gt;It works great, But when I am trying to insert more than 500k rows of data, it gives me execution timeout error.&lt;BR /&gt;It works well for any query which is within approx 45 seconds. Please check the exception message I am getting below,&amp;nbsp; I also extended the Query execution limit from SQL Server but still getting this error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am also attaching the Code, ScreenShot of my VBO, and I have 4 data items which I am mentioning their names and current values .&lt;BR /&gt;&lt;BR /&gt;Please help me out in the code to increase the Execution time limit. Thank you&lt;BR /&gt;&lt;BR /&gt;Execution Started&lt;BR /&gt;Connection Opened&lt;BR /&gt;Execution Started&lt;BR /&gt;Data Loaded to Collection : Total Records 519200&lt;BR /&gt;Connection Closed&lt;BR /&gt;SQL Execution Started&lt;BR /&gt;SQL Connection Opened&lt;BR /&gt;SQL Insertion Started&lt;BR /&gt;S&lt;SPAN style="background-color: #ff9900;"&gt;QL Exception : Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.&lt;/SPAN&gt;&lt;BR /&gt;SQL Connection Closed&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Imran Maredia&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Dec 2021 17:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Insert-CSV-to-SQL-Table-Extending-the-Query-Time-out-in-the-Code/m-p/84035#M35231</guid>
      <dc:creator>ImranMaredia</dc:creator>
      <dc:date>2021-12-23T17:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: Insert CSV to SQL Table, Extending the Query Time out in the Code</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Insert-CSV-to-SQL-Table-Extending-the-Query-Time-out-in-the-Code/m-p/84036#M35232</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/24384"&gt;@ImranMaredia&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;The SqlBulkCopy class exposes a property called &lt;STRONG&gt;BulkCopyTimeout&lt;/STRONG&gt;. If you set that property to 0 it basically says there is no limit and the bulk copy will wait indefinitely. I'm not recommending that though as if something happens you could end up with a stuck process. You might try breaking up the bulk data a bit. Perhaps divide it into collections of no more than 100K records and then perform the bulk copy 5 times.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Dec 2021 17:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Insert-CSV-to-SQL-Table-Extending-the-Query-Time-out-in-the-Code/m-p/84036#M35232</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-12-23T17:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Insert CSV to SQL Table, Extending the Query Time out in the Code</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Insert-CSV-to-SQL-Table-Extending-the-Query-Time-out-in-the-Code/m-p/84037#M35233</link>
      <description>Thanks Amazing Eric, It worked, It hardly took 1min 20 seconds to insert 500k rows, But I will go with your suggestion&lt;BR /&gt;breaking the large file into smaller, But good to know about this Bulkcopy Timeout property, I will set a customized timeout limit now.&lt;BR /&gt;&lt;BR /&gt;This is fantastic and quick reply, I really appreciate it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Imran Maredia&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Insert-CSV-to-SQL-Table-Extending-the-Query-Time-out-in-the-Code/m-p/84037#M35233</guid>
      <dc:creator>ImranMaredia</dc:creator>
      <dc:date>2021-12-23T18:07:00Z</dc:date>
    </item>
  </channel>
</rss>

