UiPath.Excel.ExcelException: Failed opening the Excel file C:\Users\reza.imaduddin\Documents\UiPath\Otomasi Setting Biller Livin\Template Setting Biller\System.Collections.Generic.List`1[System.String]. Possible reasons: the file is corrupt, the file is already used by another process or you don’t have permissions to open the file.
—> System.Runtime.InteropServices.COMException (0x800A03EC): The file could not be accessed. Try one of the following:
• Make sure the specified folder exists.
• Make sure the folder that contains the file is not read-only.
• Make sure the file name does not contain any of the following characters: < > ? [ ] : | or *
• Make sure the file/path name doesn’t contain more than 218 characters.
at Microsoft.Office.Interop.Excel._Workbook.SaveAs(Object Filename, Object FileFormat, Object Password, Object WriteResPassword, Object ReadOnlyRecommended, Object CreateBackup, XlSaveAsAccessMode AccessMode, Object ConflictResolution, Object AddToMru, Object TextCodepage, Object TextVisualLayout, Object Local)
at UiPath.Excel.WorkbookApplication.CreateNewWorkbookIfNeeded(WorkbookArguments args, 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.ExtendedWorkbookFactory.Create(Boolean attachOnly)
at UiPath.Excel.WorkbookQuickHandle.SafeGetWorkbook(Boolean attachOnly)
at UiPath.Excel.WorkbookQuickHandle.OpenWorkbook()
at UiPath.Excel.Activities.Business.ExcelApplicationCard.InitializeQuickHandle(RuntimeLoggingService runtimeLogging, IWorkbookQuickHandle workbookQuickHandle, IExcelProcess excelProcess, WorkbookDefaultOptions workbookDefaultOptions, String path, String password, String editPassword, Boolean createIfNotExist, Boolean keepExcelOpen, Nullable1 readFormatting, Boolean readOnly, ResizeWindowOptions resizeWindow, Boolean saveChanges, Nullable
1 labelOperation, IExcelLabelObject labelObject)
at UiPath.Excel.Activities.Business.ExcelApplicationCard.Execute(NativeActivityContext context)
at System.Activities.NativeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)