<?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 No difference with the DCOM… in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66836#M19441</link>
    <description>No difference with the DCOM change :(
I'm going to setup a visual studio project and try reproduce.
The inability to debug code stages in depth is often very challenging with Blue Prism!
&amp;nbsp;</description>
    <pubDate>Fri, 27 Apr 2018 04:56:00 GMT</pubDate>
    <dc:creator>PatrickOttery1</dc:creator>
    <dc:date>2018-04-27T04:56:00Z</dc:date>
    <item>
      <title>Excel VBO - Write Collection action crashes with large volumes of data</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66833#M19438</link>
      <description>We're having some issues where the Write Collection action in the Excel VBO object crashes if writing large amount of data.

It's often only 20,000 records of not huge data, so I'm sure there's a more efficient way to manage this.

I've looked as using a two dimensional array and assigning that to the range.Value, and have also tried converting the data table to an ADO record set and then using the CopyFromRecordset method.

Both of these cause an exception to be thrown,&amp;nbsp;HRESULT: 0x800A03EC.

Has anyone else tried to use either of these methods to write data to an excel worksheet?

&amp;nbsp;</description>
      <pubDate>Thu, 26 Apr 2018 11:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66833#M19438</guid>
      <dc:creator>PatrickOttery1</dc:creator>
      <dc:date>2018-04-26T11:27:00Z</dc:date>
    </item>
    <item>
      <title>Are you using a .xslx file?…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66834#M19439</link>
      <description>Are you using a .xslx file? Or a really old Excel?
&amp;nbsp;
I would advise to try this:
Login to the server as a administrator.
Go to ""Start"" -&amp;gt; ""Run"" and enter ""taskmgr""
Go to the process tab in task manager and check ""Show Processes from all users""
If there are any ""Excel.exe"" entries on the list, right click on the entry and select ""End Process""
Close task manager.
Go to ""Start"" -&amp;gt; ""Run"" and enter ""services.msc""
Stop the service automating Excel if it is running.
Go to ""Start"" -&amp;gt; ""Run"" and enter ""dcomcnfg""
This will bring up the component services window, expand out ""Console Root"" -&amp;gt; ""Computers"" -&amp;gt; ""DCOM Config""
Find ""Microsoft Excel Application"" in the list of components.
Right click on the entry and select ""Properties""
Go to the ""Identity"" tab on the properties dialog.
Select ""The interactive user.""
Click the ""OK"" button.
Switch to the services console
Start the service automating Excel
Test you application again.</description>
      <pubDate>Thu, 26 Apr 2018 12:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66834#M19439</guid>
      <dc:creator>GertLõhmus</dc:creator>
      <dc:date>2018-04-26T12:23:00Z</dc:date>
    </item>
    <item>
      <title>Hi Gert,…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66835#M19440</link>
      <description>Hi Gert,
&amp;nbsp;
Appreciate the response.
For your first question, I'm using an xlsx file with Excel 2010.
For your second point, I'm unfortunately not an administrator on that machine, but I will test on a different environment and see if your suggestion helps.
&amp;nbsp;
Regards,
Patrick.</description>
      <pubDate>Fri, 27 Apr 2018 04:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66835#M19440</guid>
      <dc:creator>PatrickOttery1</dc:creator>
      <dc:date>2018-04-27T04:40:00Z</dc:date>
    </item>
    <item>
      <title>No difference with the DCOM…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66836#M19441</link>
      <description>No difference with the DCOM change :(
I'm going to setup a visual studio project and try reproduce.
The inability to debug code stages in depth is often very challenging with Blue Prism!
&amp;nbsp;</description>
      <pubDate>Fri, 27 Apr 2018 04:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66836#M19441</guid>
      <dc:creator>PatrickOttery1</dc:creator>
      <dc:date>2018-04-27T04:56:00Z</dc:date>
    </item>
    <item>
      <title>OK, I sorted it out. …</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66837#M19442</link>
      <description>OK, I sorted it out.&amp;nbsp;
Using visual studio I was able to see that my conversion from a datatable to array was incorrect.
Once converted to a 2 dimensional&amp;nbsp;array correctly, everything worked when assigning the array to the range value.
What previously crashed Excel after~20 minutes now takes under 15 seconds to complete &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Fri, 27 Apr 2018 10:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66837#M19442</guid>
      <dc:creator>PatrickOttery1</dc:creator>
      <dc:date>2018-04-27T10:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: OK, I sorted it out. …</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66838#M19443</link>
      <description>Hi Patrick, I'm having a similar issue and my attempts to write the collection to the clipboard for pasting are so far, unsuccessful. Are you able to share the code you used for your method?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ben Lyons&lt;BR /&gt;Automation Specialist&lt;BR /&gt;Allianz&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Oct 2020 07:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66838#M19443</guid>
      <dc:creator>BenLyons1</dc:creator>
      <dc:date>2020-10-14T07:05:00Z</dc:date>
    </item>
    <item>
      <title>RE: OK, I sorted it out. …</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66839#M19444</link>
      <description>It is much faster indeed, only other option for handling large datatables with excel is using OLEDB.&lt;BR /&gt;&lt;BR /&gt;There is some minor things you need to take into account. For example when your text value starts with =, you need to escape it or you get error.&lt;BR /&gt;Here is my action for writing collection as array (select it all, copy and paste into Excel VBO as Action, it should work):&lt;BR /&gt;&lt;A href="https://raw.githubusercontent.com/aikudinov/BlueprismVBO/master/Excel%20actions/Write%20Collection%20Direct.txt" target="_blank" rel="noopener"&gt;https://raw.githubusercontent.com/aikudinov/BlueprismVBO/master/Excel%20actions/Write%20Collection%20Direct.txt&lt;/A&gt;&lt;BR /&gt;It is missing in/out collection "Collection_GC", because I made it global and clean it up manually when memory is an issue or when process ends, but you can just create in on that action page - next thing you end up is blueprism getting OOM ​on large collections. It does batching too - helps to lower rowlimit sometimes when you get OOM, but makes things somewhat slower.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrey Kudinov&lt;BR /&gt;Project Manager&lt;BR /&gt;MobileTelesystems PJSC&lt;BR /&gt;Europe/Moscow&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Oct 2020 09:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66839#M19444</guid>
      <dc:creator>AndreyKudinov</dc:creator>
      <dc:date>2020-10-15T09:16:00Z</dc:date>
    </item>
    <item>
      <title>RE: OK, I sorted it out. …</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66840#M19445</link>
      <description>Thanks for the code. I've got it working, but for some reason it's really slow. When I set the max row to 50,000 it only writes the column headers and when I set the max row to 0 it runs, but takes a long time.&lt;BR /&gt;&lt;BR /&gt;I'm writing about 50,000 rows and 20 columns. Previously it's taken less than an hour, but now the Excel VBO action's not working for me. So I wanted to try something else, like this.&lt;BR /&gt;&lt;BR /&gt;I'd love to get it running via OLEDB, but my SQL is weak. Just fees like there should be a way of doing it with out going 1 row/cell at a time.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ben Lyons&lt;BR /&gt;Automation Specialist&lt;BR /&gt;Allianz&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Oct 2020 14:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66840#M19445</guid>
      <dc:creator>BenLyons1</dc:creator>
      <dc:date>2020-10-15T14:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: OK, I sorted it out. …</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66841#M19446</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="d03aa780-2024-4bae-b919-4201b088e5c0" data-tag-text="@Ben Lyons" href="https://community.blueprism.com/network/profile?UserKey=d03aa780-2024-4bae-b919-4201b088e5c0" data-itemmentionkey="3e6ebdda-c90c-4976-9319-eb83bda50f8c"&gt;@Ben Lyons&lt;/A&gt; Default rowlimit (batch of rows is 5000), you can leave it blank and it should work. You should only set it lower if you are getting out of memory errors. If you set rowlimit to 1 or less, it will write 1 row at a time... you dont want that.&lt;BR /&gt;&lt;BR /&gt;You created Collection_GC inside that vbo action, right?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrey Kudinov&lt;BR /&gt;Project Manager&lt;BR /&gt;MobileTelesystems PJSC&lt;BR /&gt;Europe/Moscow&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Oct 2020 14:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66841#M19446</guid>
      <dc:creator>AndreyKudinov</dc:creator>
      <dc:date>2020-10-15T14:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: OK, I sorted it out. …</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66842#M19447</link>
      <description>Hi Andrey,&lt;BR /&gt;&lt;BR /&gt;Ah, I thought it was a total row limit, I clearly read the code wrong.&lt;BR /&gt;&lt;BR /&gt;Thanks, it works really well, perhaps something worth adding to the DX?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ben Lyons&lt;BR /&gt;Automation Specialist&lt;BR /&gt;Allianz&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Oct 2020 12:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-VBO-Write-Collection-action-crashes-with-large-volumes-of/m-p/66842#M19447</guid>
      <dc:creator>BenLyons1</dc:creator>
      <dc:date>2020-10-16T12:09:00Z</dc:date>
    </item>
  </channel>
</rss>

