Write Cell Activity encountered with Exception

Hi
I am trying to do subtraction of timings in an excel. When tried to run the process encountered with exception: "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)
"

Welcome to UiPath Community @venu_gopal1.

Can you please post complete error message?

Cheers :slight_smile:

Hi

I am using try catch blocks and below is the exception :
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)

@venu_gopal1, Seems like its not complete message. It shows callstack but not error message. Can you please run workflow and copy paste message from Output panel. It should be in Red color in output panel.

Cheers :slight_smile:

Hi

I got the below exception but nothing is displayed in output panel.
UiPath.Excel.ExcelException: Exception from HRESULT: 0x800401A8 —> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800401A8
at Microsoft.Office.Interop.Excel._Worksheet.get_UsedRange()
at UiPath.Excel.WorkbookApplication.ReadRange(String range, 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)