How to Fix the ‘Failed to Assume Control of Chrome’ Error in Power Automate Desktop

This week, I ran into a problem when I moved a solution from our DEV environment to QA. A PAD flow I was calling from Power Automate started failing with the error ‘Failed to Assume Control of Chrome’. When I ran only the desktop flow, it worked fine. When calling PAD from Power Automate, it didn’t work. Based on the reviews of the Power Automate extension in the Chrome store, this has recently become a common problem. Read on to find the solution that worked for me.

My Use Case

I always like to lead with my specific use case. So, we use Power Automate and Power Automate desktop to perform the following actions.

Power Automate

  1. On a schedule, grab an Excel file from Teams and save it to a network drive.
  2. Run a PAD flow (details below).

Power Automate Desktop

  1. Look at a specific worksheet in the Excel file. For each row, enter the data in the row into a SharePoint form.
  2. Repeat until all rows have been processed.
  3. If anything goes wrong, send an email.

Power Automate

  1. Once PAD is done, get the file content from the network drive and update the file in Teams.
  2. Delete the file off the network drive.
  3. Notify owners via Teams that the process has taken place.
  4. Send an email if anything we wrong.

The Problem

After moving from DEV to QA, I started to get the following error in PAD.

Problem while executing action 'AttachToForegroundChrome'. Failed to assume control of Chrome (Communication with browser failed. Try reloading extension). 

The error occurred at the step shown below. Note, if I just ran PAD, it worked fine. It did not work when calling PAD from Power Automate.

Troubleshooting

My preliminary troubleshooting involved the following…

  1. Compared versions of Chrome between DEV and QA environments. They were the same.
  2. Compared versions of the Power Automate Extension between DEV and QA. They were the same.
  3. Uninstalled and re-installed the Power Automate Extension.

In the process of uninstalling and reinstalling the extension, I noticed a lot of recent negative reviews with this exact error.

Solution

I eventually found this link, which listed 6 possible causes…

  1. Automatic updates
  2. Multiple extensions installed
  3. Hardware-related
  4. Robot permissions
  5. Chrome’s default preferences
  6. Machine’s ComSpec environment variable setting

I went thru each one. What I found in Task Manager were Google processes running (Google Crash Handler). After killing these processes and adding the following steps, my PAD flow was able to run from Power Automate. I don’t know if these are going to be sufficient. I expect I’ll have to make modifications, but I was at least able to get moving again.

This error – failed to assume control of Chrome – was a big pain for me. I hope I helped you solve it with minimal pain and suffering.

Other Sweet Content

2 thoughts on “How to Fix the ‘Failed to Assume Control of Chrome’ Error in Power Automate Desktop”

  1. Please go to the Chrome then
    Follow these below steps:-
    Step 1: Install Power Automate Chrome extension.
    Step 2: After you pin 📌 this.
    Step 3: Open your Power Automate Desktop then click on which flow you create.
    Step 4: Open chrome where you install Power Automate Chrome extension.
    Click on this.
    Step 5: After you Run your flow.
    Step 6: It will show on new chrome the sub part of chrome.
    Step 7: Finally your issue is solved.

    1. These instructions don’t make sense. Step 2 is trying to be witty but isn’t helpful. Step 4 says “click on this”. What is this? Step 6 says “It will show a new chrome the sub part of chrome.” I have no idea what that means. None of these instructions seem to apply to the problem.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.