<?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: Open excel was rejected in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Open-excel-was-rejected/m-p/92154#M42004</link>
    <description>&lt;P&gt;Hello Eric,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Try including a wait stage before the action you are using, when i am get this error it helped me.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Leonardo Soares&lt;BR /&gt;RPA Developer Tech Leader&lt;BR /&gt;Bridge Consulting&lt;BR /&gt;América/Brazil&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 01:06:00 GMT</pubDate>
    <dc:creator>LeonardoSQueiroz</dc:creator>
    <dc:date>2023-10-19T01:06:00Z</dc:date>
    <item>
      <title>Open excel was rejected</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Open-excel-was-rejected/m-p/92151#M42001</link>
      <description>&lt;P&gt;Robot open an excel was rejected. System provide message: &lt;SPAN&gt;&lt;SPAN class="ui-provider ed bdx bdw bdy bdz bea beb bec bed bee bef beg beh bei bej bek bel bem ben beo bep beq ber bes bet beu bev bew bex bey bez bfa bfb bfc bfd" dir="ltr"&gt;Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ed bdx bdw bdy bdz bea beb bec bed bee bef beg beh bei bej bek bel bem ben beo bep beq ber bes bet beu bev bew bex bey bez bfa bfb bfc bfd" dir="ltr"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ed bdx bdw bdy bdz bea beb bec bed bee bef beg beh bei bej bek bel bem ben beo bep beq ber bes bet beu bev bew bex bey bez bfa bfb bfc bfd" dir="ltr"&gt;After check, it is because one of the &lt;SPAN style="font-size: 14.6667px;"&gt;worksheets&lt;/SPAN&gt;&amp;nbsp;include a &lt;SPAN style="font-size: 14.6667px;"&gt;pivot table&lt;/SPAN&gt;. If delete this worksheet, robot works. But that is not I &lt;SPAN style="font-size: 14.6667px;"&gt;want;&lt;/SPAN&gt; How can I open this kind of excel.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Li&lt;BR /&gt;Operation Analysis&lt;BR /&gt;AIG&lt;BR /&gt;Asia/Hong_Kong&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Oct 2023 07:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Open-excel-was-rejected/m-p/92151#M42001</guid>
      <dc:creator>EricLi</dc:creator>
      <dc:date>2023-10-18T07:34:00Z</dc:date>
    </item>
    <item>
      <title>RE: Open excel was rejected</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Open-excel-was-rejected/m-p/92152#M42002</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Unfortunately, the 'RPC_E_CALL_REJECTED' error is generated by Excel and passed through to Blue Prism, so there's not really much from a Blue Prism Product perspective we could recommend to resolve this. &lt;A href="https://support.blueprism.com/en/support/solutions/articles/7000078257-bpe-error-exception-from-hresult-0x80010001-rpc-e-call-rejected-when-using-excel-to-perform-auto" target="_blank" rel="noopener"&gt;This Knowledge Base article&lt;/A&gt; contains some external links for troubleshooting which may help with this though.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Steve Boggs&lt;BR /&gt;Senior Product Support Engineer&lt;BR /&gt;Blue Prism&lt;BR /&gt;Austin, TX&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Oct 2023 20:42:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Open-excel-was-rejected/m-p/92152#M42002</guid>
      <dc:creator>steven.boggs</dc:creator>
      <dc:date>2023-10-18T20:42:00Z</dc:date>
    </item>
    <item>
      <title>RE: Open excel was rejected</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Open-excel-was-rejected/m-p/92153#M42003</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Check below threads&amp;nbsp; and verify whether it will help you to resolve the issue.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.microsoft.com/en-us/topic/you-receive-an-error-message-or-the-program-stops-responding-in-accounting-professional-or-in-accounting-express-fbfad9f7-d574-598d-54c6-5beef60f0984" target="test_blank"&gt;https://support.microsoft.com/en-us/topic/you-receive-an-error-message-or-the-program-stops-responding-in-accounting-professional-or-in-accounting-express-fbfad9f7-d574-598d-54c6-5beef60f0984&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/previous-versions/troubleshoot/winautomation/support-tips/excel-automation/failed-to-write-into-excel-call-was-rejected-by-callee" target="test_blank"&gt;https://learn.microsoft.com/en-us/previous-versions/troubleshoot/winautomation/support-tips/excel-automation/failed-to-write-into-excel-call-was-rejected-by-callee&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;-----------------------&lt;BR /&gt;If I answered your query. Please  mark it as the "Best Answer"&lt;BR /&gt;&lt;BR /&gt;Harish Mogulluri&lt;BR /&gt;Lead developer&lt;BR /&gt;America/New_York TX&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Oct 2023 23:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Open-excel-was-rejected/m-p/92153#M42003</guid>
      <dc:creator>harish.mogulluri</dc:creator>
      <dc:date>2023-10-18T23:45:00Z</dc:date>
    </item>
    <item>
      <title>RE: Open excel was rejected</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Open-excel-was-rejected/m-p/92154#M42004</link>
      <description>&lt;P&gt;Hello Eric,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Try including a wait stage before the action you are using, when i am get this error it helped me.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Leonardo Soares&lt;BR /&gt;RPA Developer Tech Leader&lt;BR /&gt;Bridge Consulting&lt;BR /&gt;América/Brazil&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 01:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Open-excel-was-rejected/m-p/92154#M42004</guid>
      <dc:creator>LeonardoSQueiroz</dc:creator>
      <dc:date>2023-10-19T01:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Open excel was rejected</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Open-excel-was-rejected/m-p/92155#M42005</link>
      <description>&lt;P&gt;Hey guys, we are having currently BP version 6.10.5 and having the same problem when using "Open Workbook" action after creating an instance for Excel file. Either we get Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED) or sometimes even The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) and we have solved it by removing Activate() action from the code that is behind the Open Workbook code stage:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="29606.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/29737iC98D8B268A38553F/image-size/large?v=v2&amp;amp;px=999" role="button" title="29606.png" alt="29606.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So, actually remove activation of the Excel window from the code stage and it works perfectly for us WITHOUT sleeps and retries as were suggested above:&lt;/P&gt;
&lt;P&gt;Example 1:&lt;/P&gt;
&lt;P style="padding-left: 40px;"&gt;name = ExecWithTimeout(Timeout, "Open Workbook",&lt;BR /&gt;Function()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Dim instance = GetInstance(handle)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Dim workbooks As object = GetProperty(instance, "Workbooks")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Dim wb As Object = Invoke(workbooks, "Open", filename)&lt;BR /&gt;&lt;S&gt;&amp;nbsp; &amp;nbsp; Invoke(wb, "Activate")&lt;/S&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Return wb.Name&lt;BR /&gt;End Function)&lt;/P&gt;
&lt;P&gt;Example 2:&lt;/P&gt;
&lt;P style="padding-left: 40px;"&gt;Dim app as Object = GetInstance(handle)&lt;BR /&gt;app.DisplayAlerts = False&lt;BR /&gt;Dim wb as Object = app.Workbooks.Open(filename)&lt;BR /&gt;name = wb.Name&lt;BR /&gt;&lt;S&gt;wb.Activate()&lt;/S&gt;&lt;/P&gt;
&lt;P style="padding-left: 40px;"&gt;&lt;S&gt;&lt;/S&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Anastasiya Ilgova&lt;BR /&gt;Lead Automation Developer&lt;BR /&gt;Automation COE&lt;BR /&gt;Europe/Prague&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Nov 2023 12:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Open-excel-was-rejected/m-p/92155#M42005</guid>
      <dc:creator>Anastasiya__Ilgova</dc:creator>
      <dc:date>2023-11-01T12:03:00Z</dc:date>
    </item>
  </channel>
</rss>

