Pivot table error The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

Hii everyone,

When i create the pivot table first time it is working fine but creating same table for other excel in second time getting error below
Sample Pivot: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
RemoteException wrapping System.Runtime.InteropServices.COMException: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
at Microsoft.Office.Interop.Excel.ApplicationClass.get_Version()
at UiPath.Excel.Helpers.ExcelHelpers.TryGetMajorVersion(Application excelApp, Int32& version)
at UiPath.Excel.ExtendedWorkbookApplication.ExtendedAttachOrCreateNew(WorkbookArguments workbookArguments, IExcelInstanceManager instanceManager, ExcelStartOptions options)
at UiPath.Excel.ExtendedWorkbookFactory.Create(Boolean attachOnly)
at UiPath.Excel.WorkbookQuickHandle.SafeGetWorkbook(Boolean attachOnly)
at UiPath.Excel.WorkbookQuickHandle.OpenWorkbook()
at UiPath.Excel.Activities.Business.ExcelApplicationCard.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)

Please help me if anyone know it would be very useful for me

Thanks & Regards
Zaid Qazi

@zaid.ahmad,

Try this solution.

Also check this Knowledgebase for solution.

Thanks,
Ashok :slight_smile:

@zaid.ahmad

Looks liek the excel instance is not closed or is left open

Try to use close explicitly or use a kill process and check

Cheers