When trying to write data from a dataTable to a new excel file (want him to create the file), there is an error message “Range does not exist” while the dataTable has data inside. This was done with a ‘write range’ activity. Do you have any idea?
If you want that your whole datatable is written into the excel sheet, try to let the Starting Cell property empty. Also, check if the Add headers is checked.
Hi @Estelle,
I also got the same error. No idea what the issue is. But then I tried using “Write Range” under the “Workbook” tree and it worked without any error. I thought this may help someone if they face the same issue.
Check your target EXCEL file is writable for your current user, I have the same issue, and I finally found that the Excel file has been writing protected except special users.
And also if the Excel file has some head row fixed or hidden columns, it will affect the write range to it.
I have been having the same error, but it went away when i removed the sheet protection of the file (and unshared it).
I hope you can use my picture below despite Microsofts annoying translation:
The first (and the one looking most like at retangular square) is “Protect sheet” and the one that looks like its been drawn by a drunk elephant is the “Share project folder”.
If you still want to keep the Excel file protected you can write two macros in VBA to unprotect at the start of the automation and unprotect at the end. You can use the execute macro activity for this
Hi Guys, I got the same issue, but what I did was I used the Write Range from System → File → Workbook, not from App integration → Excel. Which means UiPath Studio got the two Write Range Activities with duplicated name. IF you select the correct one, will fix your error message!!! Go luck all!
I have tried reinstalling the Excel activity package and also converted the column datatype to String. However i am still facing the “Range does not exist” error.
Unfortunately my requirement is such that I cannot use the Workbook’s Write Range
I am using UiPath Studio 2018.4.4, but the same action works in an older version of studio.