The remote procedure call failed. (Exception from HRESULT: 0x800706BE)

exception source: UiPath.Excel
exception stack trace: at UiPath.Excel.WorkbookApplication.Initialize(WorkbookArguments args)

at UiPath.Excel.WorkbookApplication.Initialize(Application excelApp, WorkbookArguments args)

at UiPath.Excel.Activities.ExcelApplicationScope.Execute(NativeActivityContext context)

at System.Activities.NativeActivity.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)

Does anyone has any idea why this is happening?
Only happens occassionally.


Hi @inyourgravity,
Can you send the screenshot of the your code and exception message, so that I ll guide you

Arivu :slight_smile:

I had a kill excel process before excel application scope cause we have had issues with excel not writing into range when file is in use (by robot previous excel application scope)

Hi @inyourgravity,

Don’t use workbook write range activity, use excel write range activity, then it will not through this error.

Inside excel application scope you must use the excel activities

Arivu :slight_smile:

That was not the workbook write range, that was the excel write range.

Hi @inyourgravity,

can you send the xaml file so that i will check and update you.

Arivu :slight_smile:


I have encountered the same error after updating Excel package to newest version (2.7.2).
This error appeared at Excel Application Scope activity and it’s strange that sometimes it works, sometimes throws this error.

The solution in my case:
1.Surround the Excel Application Scope with a Try Catch.
2.In Catch: Kill EXCEL process and after that continue with the same Excel Application Scope from above.


well good idea