RemoteException wrapping UiPath.Excel.ExcelException: Could not read range A9. —> RemoteException wrapping System.Runtime.InteropServices.COMException: Out of present range. (Exception from HRESULT: 0x8002000A (DISP_E_OVERFLOW))
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32 aWrapperTypes, MessageData& msgData)
at Microsoft.Office.Interop.Excel.Range.get_Value(Object RangeValueDataType)
at UiPath.Excel.Helpers.AreaHelper.ExtractRangeTo2DArray[T](Range range, Boolean preserveFormat)
at UiPath.Excel.WorkbookApplication.ReadRange(String address, Boolean preserveFormat, Boolean& isWholeRange)
— End of inner exception stack trace —
at UiPath.Excel.Activities.ExcelInteropActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
“Could not read range A9,” is typically associated with the Excel activity “Read Range” in UiPath. The error message “Out of present range” is indicating that UiPath is unable to read the specified range because the range address A9 is not valid or is empty in the Excel file.
1.Check Excel File: Ensure that the Excel file you are trying to read from contains data in the specified range A9. If the range is empty or does not exist, you will encounter this error.
2.Verify Worksheet Name: Make sure that the worksheet name is correct. If you are specifying a worksheet name along with the range address, verify that the worksheet name matches the one in the Excel file.
3.Use a Valid Range: Double-check the range address (e.g., A9). Ensure that it is a valid range within the Excel file. You can verify this by opening the Excel file manually.