How to read the excel file data with maximum rows of nearly more than 10000 rows. Using read range, excel scope, or modern read range activities, the BOT takes a longer time and does not move to the next step.
I tried “Append range”, and it works, but finally there will be empty rows in the middle of the sheet.
Is there an alternate option for this?
hi @Prasaanth_S1
Please use Excel as a DataBase, follow the below steps
Open Excel file (Note - Excel file must remain open)
In UiPath [Studio] Drag and drop Connect To Database activity
Click Configure connection
Open Connection Wizard
Select Microsoft ODBC Data Source
Use Connection String
Click Build
Go to Machine Data Source
Click New
Click Next
Microsoft Excel Driver(.xls)
Next
Finish
Give Some Data Source Name and Description → Select workbook → Select the particular excel file.
Press Ok for all the Windows.
After this go to output property and create variable for Database connection
Next add Run Query Activity and pass the DataBase Connection variable in Existing Connection Property and give the query you want to run
Eg: “SELECT * From [Sheet6$]”
One alternative option to read large Excel files with more than 10000 rows efficiently is to use the “Read Range” activity with the “Preserve Formatting” property set to false. This will reduce the read time and memory usage.
you can also try using the “Excel Application Scope” activity with the “Visible” property set to false. This will run the Excel application in the background and improve the performance.