<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: The RPC server is unavailable in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/11069304#M99126</link>
    <description>&lt;P&gt;I get the same error message after using Excel operations in my Inventor 2019 iLogic rule:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;' Write data to cells
GoExcel.CellValue(oExportFileName, "BOM", CustCell) = Clipboard.GetText
GoExcel.CellValue(oExportFileName, "BOM", BMWLCell) = oValueList(0)

' Save and close the file
GoExcel.Save
GoExcel.Close

' Launch application associated with this file type
ThisDoc.Launch("\\ENG\UTILITY\Miscellaneous\GS-Excel_Macros.xlsm")
ThisDoc.Launch(oExportFileName)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No error occurs if I just use the Launch statements. I think there is a timing problem between the Close and Launch statements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried delays and user prompts to add delay after the close, but the error persists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 20:05:50 GMT</pubDate>
    <dc:creator>JBerns</dc:creator>
    <dc:date>2022-03-29T20:05:50Z</dc:date>
    <item>
      <title>The RPC server is unavailable</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/7264748#M99120</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I saw a simular post with the same problem a few years ago (without solution).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I am developing a vault job and have to open Inventor for it.&lt;/P&gt;
&lt;P&gt;Randomly I get the error "The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)".&lt;/P&gt;
&lt;P&gt;I can't figure out what causes this problem. Most of the time it happens when Inventor gets started a second time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working with windows 8.1, inventor 2017/2018 (both same problem).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 07:45:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/7264748#M99120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-31T07:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: The RPC server is unavailable</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/7267991#M99121</link>
      <description>&lt;P&gt;Hi @Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue seems related neither Autodesk&amp;nbsp;Inventor nor Inventor Vault.&amp;nbsp;This might be due to Windows operating system.In general, almost all applications in Windows have this kind of issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are number of suggestions and some of them listed below in the following links.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dell.com/support/article/in/en/inbsd1/sln283117/windows-server--troubleshooting--rpc-server-unavailable--errors?lang=en" target="_blank"&gt;https://www.dell.com/support/article/in/en/inbsd1/sln283117/windows-server--troubleshooting--rpc-server-unavailable--errors?lang=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://techgenix.com/troubleshoot-rpc-server-unavailable/" target="_blank"&gt;http://techgenix.com/troubleshoot-rpc-server-unavailable/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://answers.microsoft.com/en-us/windows/forum/windows8_1-performance/error-code-0x800706ba-error-message-the-rpc-server/7f1a33e6-f475-4f71-9e60-16d4a221a87a" target="_blank"&gt;https://answers.microsoft.com/en-us/windows/forum/windows8_1-performance/error-code-0x800706ba-error-message-the-rpc-server/7f1a33e6-f475-4f71-9e60-16d4a221a87a&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://answers.microsoft.com/en-us/windows/forum/windows8_1-pictures/windows-media-player-error-message-rpc-server-is/7b925848-d1eb-4ad8-a805-35dba0b397d4" target="_blank"&gt;https://answers.microsoft.com/en-us/windows/forum/windows8_1-pictures/windows-media-player-error-message-rpc-server-is/7b925848-d1eb-4ad8-a805-35dba0b397d4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please feel free to contact if there is any doubt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If solves problem, click on "Accept as solution" / give a "Kudo".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 10:41:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/7267991#M99121</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2017-08-01T10:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: The RPC server is unavailable</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/7273238#M99122</link>
      <description>&lt;P&gt;Thanks Chandra,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will have a look at those sites. It's a very anoying error message which halts the process, so I really need to solve it.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 06:05:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/7273238#M99122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-03T06:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: The RPC server is unavailable</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/7273383#M99123</link>
      <description>&lt;P&gt;Hi @Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are welcome:)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 07:18:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/7273383#M99123</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2017-08-03T07:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: The RPC server is unavailable</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/8441276#M99124</link>
      <description>&lt;P&gt;@Anonymous I am facing the same problem, have you found any solution for that or any hint of what would be the source of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 15:49:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/8441276#M99124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-03T15:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: The RPC server is unavailable</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/8443302#M99125</link>
      <description>&lt;P&gt;I got it working using the info on this link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/revit-products/troubleshooting/caas/sfdcarticles/sfdcarticles/Vault-Servers-Revit-Indexing-Troubleshooting-Checklist.html" target="_blank"&gt;https://knowledge.autodesk.com/support/revit-products/troubleshooting/caas/sfdcarticles/sfdcarticles/Vault-Servers-Revit-Indexing-Troubleshooting-Checklist.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 10:17:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/8443302#M99125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-04T10:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: The RPC server is unavailable</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/11069304#M99126</link>
      <description>&lt;P&gt;I get the same error message after using Excel operations in my Inventor 2019 iLogic rule:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;' Write data to cells
GoExcel.CellValue(oExportFileName, "BOM", CustCell) = Clipboard.GetText
GoExcel.CellValue(oExportFileName, "BOM", BMWLCell) = oValueList(0)

' Save and close the file
GoExcel.Save
GoExcel.Close

' Launch application associated with this file type
ThisDoc.Launch("\\ENG\UTILITY\Miscellaneous\GS-Excel_Macros.xlsm")
ThisDoc.Launch(oExportFileName)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No error occurs if I just use the Launch statements. I think there is a timing problem between the Close and Launch statements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried delays and user prompts to add delay after the close, but the error persists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 20:05:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/11069304#M99126</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2022-03-29T20:05:50Z</dc:date>
    </item>
    <item>
      <title>Betreff: The RPC server is unavailable</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/11070398#M99127</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it's because the Excel instance create by the GoExcel statements is not closed. Can you try to add to the header section of your rule:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;AddReference "Microsoft.Office.Interop.Excel"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And modify your code to:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim excelApp As Microsoft.Office.Interop.Excel.Application = GoExcel.Application

' Write data to cells
GoExcel.CellValue(oExportFileName, "BOM", CustCell) = Clipboard.GetText
GoExcel.CellValue(oExportFileName, "BOM", BMWLCell) = oValueList(0)

' Save and close the file
GoExcel.Save
GoExcel.Close

excelApp.Quit

' Launch application associated with this file type
ThisDoc.Launch("\\ENG\UTILITY\Miscellaneous\GS-Excel_Macros.xlsm")
ThisDoc.Launch(oExportFileName)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Mar 2022 08:46:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/11070398#M99127</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2022-03-30T08:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: The RPC server is unavailable</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/11071161#M99128</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/564136"&gt;@Ralf_Krieg&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added the lines you suggested, but now I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Exception has been thrown by the target of an invocation.&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&amp;gt; System.NullReferenceException: Object reference not set to an instance of an object.&lt;BR /&gt;at ThisRule..ctor()&lt;BR /&gt;--- End of inner exception stack trace ---&lt;BR /&gt;at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean&amp;amp; canBeCached, RuntimeMethodHandleInternal&amp;amp; ctor, Boolean&amp;amp; bNeedSecurityCheck)&lt;BR /&gt;at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp;amp; stackMark)&lt;BR /&gt;at System.Activator.CreateInstance(Type type, Boolean nonPublic)&lt;BR /&gt;at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark&amp;amp; stackMark)&lt;BR /&gt;at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)&lt;BR /&gt;at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)&lt;BR /&gt;at Autodesk.iLogic.Exec.AppDomExec.CreateObjectWithInterface(Assembly a, String interfaceName)&lt;BR /&gt;at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)&lt;BR /&gt;at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used Visual Studio to debug which revealed an error on the excelApp declaration line (see attached image please).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 13:52:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/11071161#M99128</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2022-03-30T13:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: The RPC server is unavailable</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/11071592#M99129</link>
      <description>&lt;P&gt;I tested the code with Inventor 2022 and did not receive any errors.&lt;/P&gt;&lt;P&gt;I wish Autodesk could fix these Excel errors in an Inventor 2019 service pack or update.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 16:32:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/11071592#M99129</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2022-03-30T16:32:20Z</dc:date>
    </item>
    <item>
      <title>Betreff: The RPC server is unavailable</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/11071668#M99130</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You must call any other GoExcel function to start the Excel application, before you can access the GoExcel.Application object. My example is a bit misleading in this point. Can you try to move the first line under the following next two?&lt;/P&gt;&lt;P&gt;I don't have Inventor 2019 to test this behaviour. Is there in Inventor 2019 iLogic the method GoExcel.QuitApplication available? If so, try to use this instead.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 17:03:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/11071668#M99130</guid>
      <dc:creator>Ralf_Krieg</dc:creator>
      <dc:date>2022-03-30T17:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: The RPC server is unavailable</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/11072059#M99131</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/564136"&gt;@Ralf_Krieg&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the suggested edit, but the errors persist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Unhandled exception has occurred...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The RPC server is unavailable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cell editing is saved and the two files do open, but the above error is shown.&lt;/P&gt;&lt;P&gt;It would seem that I will not get this to work with Inventor 2019 without errors.&lt;/P&gt;&lt;P&gt;Thanks for all the help. Much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 19:33:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/the-rpc-server-is-unavailable/m-p/11072059#M99131</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2022-03-30T19:33:26Z</dc:date>
    </item>
  </channel>
</rss>

