Following error is thrown while using Excel Appllication Scope to open any file, i mean any file as in I created a New worksheet and then used the activity but still it says file corrupt/ u dont have access which is not the case.
The whole program is working fine except this activity and I cannot replace it by workbook activities since set range color works only in excel application scope.
Following error is thrown every time:
19.10.4+Branch.support-v2019.10.Sha.fe819a658cad0585a64d2f8af94fad5c30b8d122
Source: Excel Application Scope (Set color of range C as white to identify unprocessed cells for further processing)
Message: Failed opening the Excel file C:\RPA projects\2019\1900018 BOMComparison\Input\Sanazouf\8164900395.xlsx. Possible reasons: the file is corrupt, the file is already used by another process or you don’t have permissions to open the file.
Exception Type: UiPath.Excel.ExcelException
RemoteException wrapping UiPath.Excel.ExcelException: Failed opening the Excel file xyz.xlsx. Possible reasons: the file is corrupt, the file is already used by another process or you don’t have permissions to open the file. —> RemoteException wrapping System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800A03EC
at Microsoft.Office.Interop.Excel.Workbooks.get__Default(Object Index)
at UiPath.Excel.WorkbookApplication.FindExistingWorkbook(String workbookPath, Workbooks workbooks)
at UiPath.Excel.WorkbookApplication.InternalOpenWorkbook(WorkbookArguments args, Boolean onlyIfWorkbookExists)
— End of inner exception stack trace —
at UiPath.Excel.WorkbookApplication.InternalOpenWorkbook(WorkbookArguments args, Boolean onlyIfWorkbookExists)
at UiPath.Excel.WorkbookApplication.Initialize(Application excelApp, WorkbookArguments args, Boolean onlyIfWorkbookExists)
at UiPath.Excel.Activities.ExcelApplicationScope.<>c.<.ctor>b__48_0(WorkbookArguments args)
at UiPath.Excel.Activities.ExcelApplicationScope.Execute(NativeActivityContext context)
at System.Activities.NativeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Tried following things but in vain:
- Updated the packages
- Backrolled some packages
- Removed any kind of editing lock in the excel file
- Used task manager to close any instance of excel before execution
- Restarted UiPath as well as System
P.S the same activity works fine if someone else takes remote access of the system and runs it
Please if anyone has solution to this error, let me know
2 posts - 2 participants