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 / EntraID authentication...
Power Automate
Answered

EntraID authentication in application (Excel) for data refresh

(0) ShareShare
ReportReport
Posted on by 39

Hi all,

 

I have a local Excel file (needed in a local application), which has 2 data links (one to PowerBI and the other to another to a Teams site). I used recorder to record the data refresh, including the EntraID prompting for account.

 

When I run the flow I get the attached error. 

 

Has anyone got any pointers to get this flow with authentication functioning?

 

Geoff

2024-03-14 15_19_23-Refresh Project Refreshable file _ Power Automate.png
2024-03-14 15_20_36-Refresh Project Refreshable file _ Power Automate.png
  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @AG-Geoff 

    Based on the screenshot error provided, it seems that Power Automate Desktop is attempting to launch Internet Explorer on your system, but it's not available. This is likely causing the displayed error.

     

    Could you please ensure that Internet Explorer is available on your system before proceeding?

     

    Additionally, please ensure that the Power Automate extension is enabled in your Internet Explorer browser.

     

    The another reason could be due to organizational policies that restrict certain actions


    Thanks,
    Deenuji Loganathan
    🤖Automation Evangelist
    Deenuji - Follow me on LinkedIn

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🌟

  • AG-Geoff Profile Picture
    39 on at

    Hi Deenuji,

     

    The step is configured to attach to Internet Explorer and not launch Internet Explorer with the URL (as per screen shots). This was captured during the recording using PAD.

     

    The funny thing is that I can't see any recognisable web browser process launched by Excel (whether Edge or Edge Web View). Looking at Process Explorer and capturing logs in Process Monitor, I think the actual process is "Microsoft.Mashup.Container.Loader.exe", but will need to do some web tracing to be sure.

     

    I will perform more captures and testing, but wondering if anyone has dealt with this before?

     

    Maybe I'll try changing the step to attach to Microsoft.Mashup.Container.Loader.exe instead.

     

    Geoff

  • AG-Geoff Profile Picture
    39 on at

    I just noted that I have PowerFX preview enabled.

     

    I'm not sure whether that plays a part in this or not...🤔

  • AG-Geoff Profile Picture
    39 on at

    Attached is the recorder steps, and it is identical each time. I wonder why it is the case that PAD thinks Internet Explorer is being instantiated.

     

    If I launch iexplore.exe outside this process, then MS Edge launches.

    2024-03-15 08_41_15-.png
  • AG-Geoff Profile Picture
    39 on at

    Update on this issue. I've raised a support case...

     

    There is a thought that this might be a result of not having the PAD Extension installed in Edge browser, so I'm attempting to go through work's process to get this approved.

     

    In the meantime I am attempting to use UI Automation module to get the process working with inconsistent outcomes, so am working through the flow with support.

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @AG-Geoff 

    Your error message appears to have only two possible root causes, as I mentioned earlier: either Internet Explorer is unavailable or the extension is not enabled on it.

    But I am curious to see what is exact issue on your case.


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀. If you'd like to appreciate me, please write a LinkedIn recommendation 🙏

  • AG-Geoff Profile Picture
    39 on at

    Hi Deenuji,

     

    I think I've discovered part of the issue. The URL being called for authenticating contains parameters which are unique for each call, so the flow will never be able to connect to the session which is recorded.

     

    In addition, PAD is detecting the window as a web browser, even though a web browser is never instantiated by Excel, even though a URL is being called and the result is rendered HTML.

     

    My situation is being escalated for advice on which path we should be taking with this use case.

     

    Geoff

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @AG-Geoff 
    Thank you for sharing your insights regarding your issue. We're interested in seeing how you'll resolve it. If it's something that's been discussed on a commonly accessible website or application where community members can contribute, we'd be able to offer our assistance more readily.

     

    However, since the URLs you've mentioned aren't accessible to us, we'll patiently await your workaround for the problem.


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀. If you'd like to appreciate me, please write a LinkedIn recommendation 🙏

     
  • Verified answer
    AG-Geoff Profile Picture
    39 on at

    Hi all,

     

    I've been working on this issue which has stumped even MS support teams on this matter. Their last suggestion was to use 'press button on page' as part of the browser automation, but that still required a method for defining the browser instance, which has been the hurdle to overcome.

     

    I took a look at the other options for attaching to browser instances, and initially thought that the title doesn't change so I would use that (defining an input variable on the title of the window), but then I remember that the connection always pushes the login to the foreground, so settled on connecting to the existing session connecting to the foreground window.

     

    This combined with pressing button on web page, selecting the UI element for my user allowed the flow to complete successfully on any repetition.

     

    I hope this helps anyone else in this situation.

     

    Geoff

    browser.png

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 211 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 190

Last 30 days Overall leaderboard