<?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 Hi latherow,… in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44417#M896</link>
    <description>Hi latherow,
I am facing the same error shown below,
ERROR: Internal : Failed to perform step 1 in Navigate Stage 'Activate the Main Application' on page 'Authentication' - Exception during remote setforegroundwindow - System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at BluePrism.ApplicationManager.clsLocalTargetApp.ForceForeground(IntPtr hwnd)
&amp;nbsp;
Could you please help me with the solution if you got any.
&amp;nbsp;</description>
    <pubDate>Wed, 07 Feb 2018 15:23:00 GMT</pubDate>
    <dc:creator>lakshminarayan1</dc:creator>
    <dc:date>2018-02-07T15:23:00Z</dc:date>
    <item>
      <title>setforegroundwindow issue on a focus</title>
      <link>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44412#M891</link>
      <description>I'm testing some code another coworker wrote, and it's bombing out in a very exotic way.

Exception during remote setforegroundwindow - System.ComponentModel.Win32Exception: The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at BluePrism.ApplicationManager.clsLocalTargetApp.ForceForeground(IntPtr hwnd)

I have had this error before on an 'Activate' action, and it was usually because I had only grabbed a portion of the W32 window and not the entire browser.  I have no idea what to even look at on a Focus step.

The element is a text input on the page, highlights fine, and is using AA attributes.  At the point this fails, the action has already focused on 7 or 8 other fields with no issues.

Anyone have any thoughts?

-rj</description>
      <pubDate>Sat, 06 Feb 2016 01:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44412#M891</guid>
      <dc:creator>rj.latherow</dc:creator>
      <dc:date>2016-02-06T01:32:00Z</dc:date>
    </item>
    <item>
      <title>Can anyone help on this? We</title>
      <link>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44413#M892</link>
      <description>Can anyone help on this? We are facing similar exception while trying to run a demo on someone else's system using Lync/Skype.</description>
      <pubDate>Fri, 24 Feb 2017 17:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44413#M892</guid>
      <dc:creator>ShreyansNahar</dc:creator>
      <dc:date>2017-02-24T17:28:00Z</dc:date>
    </item>
    <item>
      <title>Setforeground window errors</title>
      <link>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44414#M893</link>
      <description>Setforeground window errors usually occur where the desktop does not exist - so the screen is locked or you are connecting to the resourcepc via RDP and disconnect.
For global interactions (Activates, Global Clicks, Global sendkeys) to work the desktop needs to exist and not be locked.  The VM technology that is used needs to provide persistance and consistancy (unlike RDP connections) - Please refer to the product documentation and reference guides.</description>
      <pubDate>Mon, 27 Feb 2017 15:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44414#M893</guid>
      <dc:creator>Denis__Dennehy</dc:creator>
      <dc:date>2017-02-27T15:55:00Z</dc:date>
    </item>
    <item>
      <title>Try recovering the exception</title>
      <link>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44415#M894</link>
      <description>Try recovering the exception on the business object page, wait 10 second, and then try once more. I've had previous experience where Activate would throw an exception for no obvious reason, and simply retrying would usually work. It's more of a workaround than a cure, but it might allow you to progress.</description>
      <pubDate>Thu, 09 Mar 2017 19:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44415#M894</guid>
      <dc:creator>JayaPrakash</dc:creator>
      <dc:date>2017-03-09T19:29:00Z</dc:date>
    </item>
    <item>
      <title>Apologies for dragging up a 2</title>
      <link>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44416#M895</link>
      <description>Apologies for dragging up a 2-month old thread but thanks to Jaya for that tip.
I had exactly the same problem where BP was throwing up this exact error when it tried to close the save banner in Internet Explorer. Remarkably, just trying again nearly always fixed it.</description>
      <pubDate>Tue, 09 May 2017 12:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44416#M895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-09T12:29:00Z</dc:date>
    </item>
    <item>
      <title>Hi latherow,…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44417#M896</link>
      <description>Hi latherow,
I am facing the same error shown below,
ERROR: Internal : Failed to perform step 1 in Navigate Stage 'Activate the Main Application' on page 'Authentication' - Exception during remote setforegroundwindow - System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at BluePrism.ApplicationManager.clsLocalTargetApp.ForceForeground(IntPtr hwnd)
&amp;nbsp;
Could you please help me with the solution if you got any.
&amp;nbsp;</description>
      <pubDate>Wed, 07 Feb 2018 15:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44417#M896</guid>
      <dc:creator>lakshminarayan1</dc:creator>
      <dc:date>2018-02-07T15:23:00Z</dc:date>
    </item>
    <item>
      <title>Lakshmi - the answers are…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44418#M897</link>
      <description>Lakshmi - the answers are already above in this thread.&amp;nbsp; Either your virtual desktop does not have a persistent visual screen, or you are using an application such as RDP to connect/disconnect (which our guides say not to use), or your virutalized environment has some kind of issue that might be fixed by having a retry loop that tries again after a few seconds.</description>
      <pubDate>Wed, 07 Feb 2018 19:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/44418#M897</guid>
      <dc:creator>Denis__Dennehy</dc:creator>
      <dc:date>2018-02-07T19:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: setforegroundwindow issue on a focus</title>
      <link>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/111016#M50014</link>
      <description>&lt;P&gt;Sorry for the late message, but maybe it will be helpful.&lt;/P&gt;&lt;P&gt;In my case, this problem occurred when the browser screen was long and the robot tried to click a button that was located at the very bottom and was invisible on the window.&lt;/P&gt;&lt;P&gt;I solved it in three steps:&lt;BR /&gt;1. focus on button (scrolls the window to the bottom/or top for a specific button)&lt;BR /&gt;2. click the button&lt;BR /&gt;Additionally, I added a 0.5 sec pause each steps&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 12:15:15 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/setforegroundwindow-issue-on-a-focus/m-p/111016#M50014</guid>
      <dc:creator>Ernest1</dc:creator>
      <dc:date>2024-05-30T12:15:15Z</dc:date>
    </item>
  </channel>
</rss>

