web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Browser Automation - Edge
Power Automate
Unanswered

Browser Automation - Edge

(2) ShareShare
ReportReport
Posted on by 23

Recently an update was applied (2.37) in PAD and since when I use Launch New Microsoft Edge, I get an error: Failed to assume control of Microsoft Edge (Internal error or communication failure). Yesterday 11/6/2023, I updated PAD to version 2.38 and the issue continues. I am using the most recent version of PAD. Any ideas as to how to resolve the issue?

If I get details of the error it mentions this: 
Illegal characters in path.: Microsoft.Flow.RPA.Desktop.Modules.SDK.Extended.Exceptions.InternalActionException: Failed to assume control of Microsoft Edge (Internal error or communication failure). ---> System.ArgumentException: Illegal characters in path.

 

I can set the browser automation to open any site and will get the same result. I tested with www.google.com and the same occurs.

 

Thank You

  • trice602 Profile Picture
    16,595 Super User 2026 Season 2 on at

    Hi @CooneyRTX ,

     

    This seems to be working (Cause/resolution #2) for most people I have talked to, there are other options as well.

     

    Failed to assume control of Edge or Chrome or Firefox error - Power Automate | Microsoft Learn

     

     

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @CooneyRTX 

     

    Try this approach as alternative as suggested by @Agnius 

     

    https://www.linkedin.com/feed/update/urn:li:activity:7121012203045937152?updateEntityUrn=urn%3Ali%3Afs_feedUpdate%3A%28V2%2Curn%3Ali%3Aactivity%3A7121012203045937152%29

     

    Hope it helps !

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • CooneyRTX Profile Picture
    23 on at

    Nived...thanks for the response. If I used this approach how would I proceed with actions such as filling out the web form when the browser control has not been established? Typically you would need the browser instance to do this. 

    Thanks

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @CooneyRTX 

     

    If you see the article 

     

    You can see that after run application it has opened Google Chrome and after that it uses launch browser action to attach the opened browser and store a browser instance using that browser instance you can do rest of ui automation in browser am I right ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • ceast3 Profile Picture
    3 on at

    I am having the same problem too. Does anyone have a solution when the error is related to illegal characters in path?

  • EvaJ123 Profile Picture
    8 on at

    The workaround does not work.  When I Launch new Microsoft End the webpage pops up but the instance does not get added to the flow variables and I still get an error "Failed to assume control of Microsoft Edge".  My perfectly working flow just stopped working after a windows update and an Edge update.  Power automate desktop version is up-to-date.  Have uninstalled and reinstalled the program and the brower extensions. Nothing has worked.  Error remains.  I'm able to navigate to the website I want to load by doing a new instance, but PAD will not communicate with the browser.

     

    Correlation Id: d65414af-badb-414a-82eb-8e32ee07572f

    Illegal characters in path.: Microsoft.Flow.RPA.Desktop.Modules.SDK.Extended.Exceptions.InternalActionException: Failed to assume control of Microsoft Edge (Internal error or communication failure). ---> System.ArgumentException: Illegal characters in path.
    at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
    at System.IO.Path.IsPathRooted(String path)
    at System.IO.Path.CombineNoChecks(String path1, String path2)
    at System.IO.StringResultHandler.CreateObject(SearchData searchData, WIN32_FIND_DATA& findData)
    at System.IO.FileSystemEnumerableIterator`1.MoveNext()
    at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
    at System.IO.Directory.GetFiles(String path, String searchPattern)
    at Microsoft.Flow.RPA.Desktop.UIAutomation.Shared.Rpc.NamedPipesRpcPeer.PipeExists(String pipeName)
    at Microsoft.Flow.RPA.Desktop.UIAutomation.WebAutomation.Core.WebExtensionsBrowser.Communication.RpcWebExtensionsProxy.GetRpcPeer()
    at Microsoft.Flow.RPA.Desktop.UIAutomation.WebAutomation.Core.WebExtensionsBrowser.Communication.RpcWebExtensionsProxy.PerformHostOperationSafe[T](Func`2 func)
    at Microsoft.Flow.RPA.Desktop.UIAutomation.WebAutomation.Core.WebExtensionsBrowser.WebExtensionsBrowserBase.get_Window()
    at Microsoft.Flow.RPA.Desktop.UIAutomation.WebAutomation.Runtime.Actions.LocalWebAutomationRuntime.LaunchNewEdge(String initialUrl, String edgeTabTitle, String edgeTabUrl, String dialogButtonToPress, LaunchNewEdgeMode operation, LaunchWindowState windowState, AttachMode attachMode, Boolean waitForWebPageToLoad, TimeSpan waitForPageToLoadTimeout, WebPageCourseOfActionIfDialogAppears courseOfActionIfDialogAppears, Boolean clearCache, Boolean clearCookies, TimeSpan timeout)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at Microsoft.Flow.RPA.Desktop.UIAutomation.WebAutomation.Runtime.WebAutomationRuntimeRouter.Invoke(MethodInfo targetMethod, Object[] args)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Reflection.DispatchProxyGenerator.Invoke(Object[] args)
    at generatedProxy_3.LaunchNewEdge(String , String , String , String , LaunchNewEdgeMode , LaunchWindowState , AttachMode , Boolean , TimeSpan , WebPageCourseOfActionIfDialogAppears , Boolean , Boolean , TimeSpan )
    --- End of remote exception stack trace ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at Microsoft.Flow.RPA.Desktop.UIAutomation.Shared.Rpc.RpcDispatchProxy`1.GetRemoteResultOrThrow(ISerializer serializer, RPCMessage response, Type expectedResultType, Object additionalContext)
    at Microsoft.Flow.RPA.Desktop.UIAutomation.Shared.Rpc.RpcDispatchProxy`1.Invoke(MethodInfo targetMethod, Object[] args)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Reflection.DispatchProxyGenerator.Invoke(Object[] args)
    at generatedProxy_1.LaunchNewEdge(String , String , String , String , LaunchNewEdgeMode , LaunchWindowState , AttachMode , Boolean , TimeSpan , WebPageCourseOfActionIfDialogAppears , Boolean , Boolean , TimeSpan )
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.<>c__DisplayClass24_0.<LaunchNewEdge>b__0(IWebAutomationRuntime s)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.ExecuteSafe[T](Func`2 action, TimeSpan timeout)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.LaunchNewEdge(String initialUrl, String edgeTabTitle, String edgeTabUrl, String dialogButtonToPress, LaunchNewEdgeMode operation, LaunchWindowState windowState, AttachMode attachMode, Boolean waitForWebPageToLoad, TimeSpan waitForPageToLoadTimeout, WebPageCourseOfActionIfDialogAppears courseOfActionIfDialogAppears, Boolean clearCache, Boolean clearCookies, TimeSpan timeout)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.LaunchEdgeBase.<Execute>b__61_0(IWebAutomationRuntime s)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationActionBase.PerformWebAutomationWithLogging[T](Func`2 action, WebAutomationRuntimeLogData requestData, Func`3 resultData)
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.LaunchEdgeBase.Execute(ActionContext context)
    --- End of inner exception stack trace ---
    at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.LaunchEdgeBase.Execute(ActionContext context)
    at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

  • CooneyRTX Profile Picture
    23 on at

    EvaJ123...this is the exact issue I am having. It worked prior to updates and now fails without exception. Hopefully, a fix will be applied soon.

  • EvaJ123 Profile Picture
    8 on at

    I use other computers that have the same updates and they seem to be working....so I don't know...might have to reinstall windows....Thanks Microsoft!

  • EvaJ123 Profile Picture
    8 on at

    I ran the troubleshooter and this is what I got this....funny thing...i don't use Chrome I use Edge.

    EvaJ123_0-1700152933938.png

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The troubleshooter simply checks all possible errors and throws them at you. The fact it found issues with your Chrome setup does not mean these are related to your issues with Edge. They just mean you would have problems if you tried using Chrome.

    Do you have multiple profiles on Edge?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard