I have an issue when using UiPath Studio to read out cells out of an Excel. UI Path Studio (2016.2.6232) is running on a VM with no Excel installed and it throws me the following error:
Message: Error openning workbook. Make sure Excel is installed.
Source: Excel
Exception Type: Exception
I use the ExcelApplicationScope with visible set to “False” and the file type is .xlxs as I thought this will not need an Excel App installed.
That was one of the reasons we needed to roll our own.
The other significant one was that there’s no read-only option that we could find, meaning that if the file gets locked (user didn’t close and went home for the weekend or something didn’t release the filehandle, which happens with network drives sometimes) there was no way to read the content.
But for simple scenarios it should work… Are there any format limitations (.xls, .xlsx, .xlsm are all supported?)?
Thanks for the input. I tried to use ReadCell from Workbook but this is just possible if it is embedded into the ExcelApplicationScope… Any other suggestions?
Wow. Someone needs to change the official UIPath Excel training video. The video clearly suggests that we can use the Excel Application scope and simply uncheck the “visible” checkbox if Excel isn’t installed.
I had to swap out my Excel scope activity for generic read/write range activities. Glad I found this.
When there are huge number of rows to read from Excel, using Excel OLEDB driver to read and write is very fast and effective.It doesnt require Excel application to be installed in you system, you just need OLEDB driver to be installed.