I’m trying to add some data in an excel file using Write Cell Workbook and the Studio just hangs, no errors, no exceptions, the execution just remains pending.
The issue it seems, is with the file size, as my excel is ~3.5MB.
For smaller files it works ok.
Can someone have a look/test this? (sorry, can’t share the excel file)
Using UiPath Studio Community, v2023.4.0 and UiPath.Excel.Activities 2.20.1
If you still would like to update the value on cell level then read that excel file as a datatable and then add the value with a assign activity by mentioning the row column position
dt.Rows(row index)(“columnname”) = “your value”
Where row index starts from zero for first row
And then write this datatable back to excel with write range activity
Yeah, it will be because of the size your excel is
As an alternative you can check on Excel as Database if possible, So that you can run SQL Queuries to make it faster
You can try splitting up the data into smaller chunks and write each chunk to the Excel file using the “Write Cell Workbook” activity. This may help to avoid overloading the activity and prevent the Studio from hanging else you can also ,
Make sure that you are using the latest version of the UiPath.Excel.Activities package. Upgrading to the latest version may resolve any known issues or bugs related to writing to large Excel files.
Update: It seems there is a huge difference in terms of handling writting data to excel, between Write Cell/Range and Write Cell/Range Workbook. The first one works much faster.