Hi,
I am getting this error whenever I run a macro in my process.
Try Catch: The object invoked has disconnected from its clients. (0x80010108 (RPC_E_DISCONNECTED))
RemoteException wrapping UiPath.Excel.ExcelException: The object invoked has disconnected from its clients. (0x80010108 (RPC_E_DISCONNECTED)) —> RemoteException wrapping System.Runtime.InteropServices.COMException: The object invoked has disconnected from its clients. (0x80010108 (RPC_E_DISCONNECTED))
at Microsoft.Office.Interop.Excel._Workbook.get_ReadOnly()
at UiPath.Excel.ExtendedWorkbookApplication.SaveWorkbookInternal()
at UiPath.Excel.ExtendedWorkbookApplication.AutoSaveWorkbookInternal()
at UiPath.Excel.WorkbookApplication.AutoSaveWorkbook()
at UiPath.Excel.WorkbookApplication.RunMacro(String macroName,
IEnumerable1 macroParameters) at UiPath.Excel.ExtendedWorkbookApplication.<>c__DisplayClass88_0.<ExecuteMacro>b__0() at UiPath.Excel.ExcelContextHelper.Execute[T](Func
1 func,
ExcelContext context,
Object contextParams)
— End of inner exception stack trace —
at UiPath.Excel.ExcelContextHelper.Execute[T](Func1 func, ExcelContext context, Object[] contextParams) at UiPath.Excel.ExtendedWorkbookApplication.ExecuteMacro(String macroName, IList
1 arguments)
at UiPath.Excel.Activities.Business.ExecuteMacroX.ExecuteDoWork(ActivityContext context,
ExecuteMacroDescriptor descriptor)
at UiPath.Shared.Activities.BaseParentActivityWithDescriptor`2.OnCompleted(NativeActivityContext context,
ActivityInstance _)
at System.Activities.Runtime.ActivityCompletionCallbackWrapper.Invoke(NativeActivityContext context,
ActivityInstance completedInstance)
at System.Activities.Runtime.CompletionCallbackWrapper.CompletionWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)
I only have one activity inside my Use Excel file.
Why do I keep on getting this and how can it be solved? Thanks a lot!