Skip to main content

Notifications

Community site session details

Community site session details

Session Id : +u9wBQBO+r0y8Z4NIRADJ4
Power Automate - Power Automate Desktop
Answered

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

Like (0) ShareShare
ReportReport
Posted on 5 Jan 2022 16:51:45 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?

  • Verified answer
    BI_RPA_Andy Profile Picture
    65 on 11 Jan 2022 at 17:56:30
    Re: Microsoft Edge - Couldn't Download - Couldn't Download

    ::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.

  • BI_RPA_Andy Profile Picture
    65 on 11 Jan 2022 at 14:40:11
    Re: Microsoft Edge - Couldn't Download - Couldn't Download

    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?

  • BI_RPA_Andy Profile Picture
    65 on 07 Jan 2022 at 16:31:12
    Re: Microsoft Edge - Couldn't Download - Couldn't Download

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

  • fraenK Profile Picture
    2,125 on 07 Jan 2022 at 16:03:48
    Re: Microsoft Edge - Couldn't Download - Couldn't Download

    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 07 Jan 2022 at 15:58:28
    Re: Microsoft Edge - Couldn't Download - Couldn't Download

     

    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 07 Jan 2022 at 10:31:46
    Re: Microsoft Edge - Couldn't Download - Couldn't Download

    Which action(s) are you using?

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 4 Super User 2025 Season 1

#2
KO-05050229-0 Profile Picture

KO-05050229-0 2

#2
stampcoin Profile Picture

stampcoin 2

Overall leaderboard
Loading started