Hi i am getting this error. Please someone help me to solve it
Hi @Sirisha_Siri ,
Could you check and verify whether you are not reading the same Excel Spreadsheet again?
Kind Regards,
Ashwin A.K
One possible reason is that the object has been instantiated on one thread and another thread is trying to use it and causing the failure.
Kindly try to kill the excel or close the workbook before that use excel file
In my case, I was using Excel scope, Use excel file inside for loop. So it opened the excel thread in every iteration. Now I have placed the for loop inside the Excel scope/use excel file. It has removed this error. Pls check for similar scenario in your code.
This error can also be caused by using both activities Excel Application Scope and Use Excel File
In my case, I was using ExcelProcess scope/Use Excel file/ for each excel row then invoking a Workflow that opened an use excel file with a Single Scope Application.
Solution was to change Single Scope Application â Excel Process Scope and setting the property âProcess Modeâ to âAlways create newâ.
Explanation: Second excel file was opened reusing same thead, so, when going out of the Incoke and trying to use the For each excel row loop variable, it was not present anymore.
Hi,
You can use âKill Processâ activity to kill the âEXCELâ process before using the activity to open the excel.
Regards,
Now this is confusing! UiPathâs own documentation recommends using âUse Excel Fileâ under âExcel Process Scopeâ! How can they conflict when we are using recommended procedures?
Quoting:
" We recommend placing an Use Excel File activity inside an Excel Process Scope activity to open Excel documents with certain settings already applied."
Reference: