Hello!
I’m building a bot right now that uses the “read range” activity for a datatable in excel. It is working from some excel files but not others. See below for the error. Could someone read this and let me know what is causing this error? Thank you!
18.4.5+Branch.support/v2018.4.Sha.2a53a262e2c1098055c3ecbdabe73d45e0a6dc29
Source: Read Range
Message: Index was outside the bounds of the array.
Exception Type: System.IndexOutOfRangeException
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ClosedXML.Excel.XLWorkbook.IsColReference(String sheetArea) in C:\Projects\ClosedXML\ClosedXML\Excel\XLWorkbook_Load.cs:line 1006
at ClosedXML.Excel.XLWorkbook.SetColumnsOrRowsToRepeat(String area) in C:\Projects\ClosedXML\ClosedXML\Excel\XLWorkbook_Load.cs:line 1001
at ClosedXML.Excel.XLWorkbook.LoadPrintTitles(DefinedName definedName) in C:\Projects\ClosedXML\ClosedXML\Excel\XLWorkbook_Load.cs:line 984
at ClosedXML.Excel.XLWorkbook.LoadDefinedNames(Workbook workbook) in C:\Projects\ClosedXML\ClosedXML\Excel\XLWorkbook_Load.cs:line 952
at ClosedXML.Excel.XLWorkbook.LoadSpreadsheetDocument(SpreadsheetDocument dSpreadsheet) in C:\Projects\ClosedXML\ClosedXML\Excel\XLWorkbook_Load.cs:line 411
at ClosedXML.Excel.XLWorkbook.LoadSheets(String fileName) in C:\Projects\ClosedXML\ClosedXML\Excel\XLWorkbook_Load.cs:line 45
at UiPath.Excel.WorkbookFile…ctor(String workbookPath, String password, Boolean createNew)
at UiPath.Excel.Activities.WorkbookActivity1.ConstructWorkbook(String path, String password, Boolean createNew) at UiPath.Excel.Activities.WorkbookActivity
1.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state)
at System.Activities.AsyncCodeActivity.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)