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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Microsoft Edge - Could...
Power Automate
Answered

Microsoft Edge - Couldn't Download - Couldn't Download

(0) ShareShare
ReportReport
Posted on by 65

Okay, so I have a flow that navigates to a website and clicks a button that downloads a file.  When I run this flow in the Power Automate Desktop editor, it works without any issues.  The button gets clicked and the file is downloaded as expected.

However, if I run it from the Power Automate Desktop console or if I trigger the Cloud Flow that calls the Desktop Flow, something different happens.  Any time the button is clicked to download the file, the download fails and the Edge Downloads window shows 'Couldn't Download - Couldn't Download' as the message.

 

Anyone have any explanation on why it would download successfully when the flow is ran from the Desktop Editor, but result in a 'Couldn't Download - Couldn't Download' message when ran from the Desktop Console?

I have the same question (0)
  • fraenK Profile Picture
    2,125 on at

    Which action(s) are you using?

  • BI_RPA_Andy Profile Picture
    65 on at

     

    The question is, what is the difference in the runtime mechanism between running from the editor and running from the console?

     

    When I go to the Power Automate machine runtime application I noticed this under 'Troubleshoot'

    BI_RPA_Andy_7-1641570683920.png

    So that leads to me speculate a possible difference being that when running from the editor the flow runs using the active user's account but when ran from the console the flow runs with this service account.  Then there is likely some AD/user policy difference that is causing it to not allow the download when ran from the service account.

     

    I'm going to look at possibly changing that Service Account to a different user and see if I get different behavior. 

  • fraenK Profile Picture
    2,125 on at

    I wouldn't change such permissions before not knowing the reason. A download could only fail due to permission issues if the user doesn't have permissions to the download directory or the default download directory doesn't exist. This should be much easier to figure out...

  • BI_RPA_Andy Profile Picture
    65 on at

    I changed the service account to the active user and that did not resolve the issue.

  • BI_RPA_Andy Profile Picture
    65 on at

    I have tried this on several different machines and the issue persists.  Can anyone think of any reason why the behavior would be different when running from the console compared to running from the editor?

  • Verified answer
    BI_RPA_Andy Profile Picture
    65 on at

    ::facepalm::

     

    Welp...I figured it out and it's a real doozy of a non-issue.

     

    My code clicks the file to download it, waits for the file to exist in the download folder and then renames the file.

     

    When you run the code from the editor, the playback speed is significantly reduced to allow you to visually see the code being stepped through.

     

    Well, when I run the code from the console, it runs at full speed, so as soon as the file is downloaded, it gets renamed.  This confuses Edge because it doesn't see the file there so it just assumes that the file wasn't downloaded and tells me it couldn't download it.  In reality, it did get downloaded.

     

    This issue doesn't occur when I run the code from the editor because the reduced execution speed causes enough of a delay between when the file gets downloaded and renamed that Edge is able to see the file before it is renamed, and thus shows that the file successfully downloaded.

     

    I have literally been troubleshooting this for a week now and I feel like a horses patoot.  My only hope is that my suffering will be able to prevent the future suffering of a fellow automater.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard