Baskar Narasimman (BaskarN7)
Tata Consultancy Services

Tata Consultancy Services
BaskarN7 Member since 2017 4 posts
Tata Consultancy Services
Posted: September 17, 2019
Last activity: September 27, 2019
Posted: 17 Sep 2019 6:16 EDT
Last activity: 27 Sep 2019 22:23 EDT

System.Runtime.InteropServices.COMException - The RPC server is unavailable

I am using Excel file to read as input and updating status. I am also running macro using run macro method. I am getting the below exception. Sometimes it works fine, but sometime it is throwing this exception. I tried to remove run macro function, but still getting this exception while saving or closing the excel file.

1. System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) at icrosoft.Office.Interop.Excel.ApplicationClass.Run(Object Macro, Object Arg1, Object Arg2, ) at OpenSpan.Office.MicrosoftExcel.RunMacro(String macroName, Object param1, Object param2, Object param3, Object param4, Object param5)

2. “System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC at Microsoft.Office.Interop.Excel.WorkbookClass.Save() at OpenSpan.Office.MicrosoftExcel.Save()”

Robotic Process Automation
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.