cancel
Showing results for 
Search instead for 
Did you mean: 

I have a question

FatimaAlcaraz
Level 4
Hello! I am working on my first project and I wanted to ask you if you can please help me with the problem I have ... I have to copy the data from an excel file to another file, but I am not succeeding due to the excess number of data rows who owns the file.
I attach the capture where it is observed that the file has 207889 rows.
36271.png
1 BEST ANSWER

Helpful Answers

Hi Fatima,

With an excel file that large in size, my advice would be to use the "Data - OLEDB" VBO which will read your excel file as a database using the ODBC drivers. In order to properly work with this VBO, you can refer to the following training LMS as well: Blue Prism Guide To OLEDB

- For this VBO to work, you need to install the Microsoft Access Database Engine which you can get from Microsoft's website as well which is given under the training resources. Once you get the DLL installed. You can use the action "Set Connection" of the "Data - OLEDB" VBO to first establish a successful connection with your excel file by providing a valid connection string, for example, Provider=Microsoft.ACE.OLEDB.12.0;Data Source=<FILE_PATH>;Extended Properties="Excel 12.0;HDR=YES";

You can try replacing the highlighted text with the actual file path consisting of the file name and extension along with the full file path. For example: "C:\Test\Test.xlsx"

NOTE: Many times the connection string may not work depending on the excel version and Extended Properties. In case it does not work you can refer to the following website where you can find all the alternatives to your connection string to try upon: Connection Strings

- After this action you can use the "Open" action of the "Data - OLEDB" VBO to open the connection to the excel file and then use "Get Collection" of the "Data - OLEDB" VBO action to execute the query which you want to send in order to fetch the data. The query format is more or less like your SQL queries which you can use like SELECT * FROM <Sheet_Name>$

You need to replace the highlighted text with the sheet name where your data resides in that excel file. This action will provide you the entire result set of this query into a collection.

- Post this you can now close the connection by using "Close" action of the "Data - OLEDB" VBO.

I have attached a sample workflow for your reference as well:

36248.png

Let us know if it resolves your query and if your query has been resolved please mark it as the "Best Answer" so that others can easily track the answer.
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.

View answer in original post

4 REPLIES 4

Hi Fatima,

With an excel file that large in size, my advice would be to use the "Data - OLEDB" VBO which will read your excel file as a database using the ODBC drivers. In order to properly work with this VBO, you can refer to the following training LMS as well: Blue Prism Guide To OLEDB

- For this VBO to work, you need to install the Microsoft Access Database Engine which you can get from Microsoft's website as well which is given under the training resources. Once you get the DLL installed. You can use the action "Set Connection" of the "Data - OLEDB" VBO to first establish a successful connection with your excel file by providing a valid connection string, for example, Provider=Microsoft.ACE.OLEDB.12.0;Data Source=<FILE_PATH>;Extended Properties="Excel 12.0;HDR=YES";

You can try replacing the highlighted text with the actual file path consisting of the file name and extension along with the full file path. For example: "C:\Test\Test.xlsx"

NOTE: Many times the connection string may not work depending on the excel version and Extended Properties. In case it does not work you can refer to the following website where you can find all the alternatives to your connection string to try upon: Connection Strings

- After this action you can use the "Open" action of the "Data - OLEDB" VBO to open the connection to the excel file and then use "Get Collection" of the "Data - OLEDB" VBO action to execute the query which you want to send in order to fetch the data. The query format is more or less like your SQL queries which you can use like SELECT * FROM <Sheet_Name>$

You need to replace the highlighted text with the sheet name where your data resides in that excel file. This action will provide you the entire result set of this query into a collection.

- Post this you can now close the connection by using "Close" action of the "Data - OLEDB" VBO.

I have attached a sample workflow for your reference as well:

36248.png

Let us know if it resolves your query and if your query has been resolved please mark it as the "Best Answer" so that others can easily track the answer.
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.

FatimaAlcaraz
Level 4
Thanks for the prompt response, I have already been watching the training and also trying to implement it as you indicated. But I get this error.
To create the connection string what I have problems, I already tried several ways and they are not working for me.
36262.png

Hi Fatima,

This error usually comes when the correct drivers are not installed on your machine. I have a exe setup file for Access Database Engine, though I don't remember the exact source URL from where I downloaded it but I am sharing the drive link where I have that exe file saved: Access Database Engine Installation

DISCLAIMER : Please download at your own risk as it is not being provided or promoted by me.
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.

FatimaAlcaraz
Level 4
Hi, I was able to use the OLEDB object successfully, but when I try to open the collection, sometimes it does, but other times I get an out of memory error. That is what I am analyzing now, but thank you very much for all your help!