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 / Power automate desktop...
Power Automate
Unanswered

Power automate desktop flow stops after running for few hours

(0) ShareShare
ReportReport
Posted on by

I have desktop flow which is supposed to be run continuously is triggered from cloud to  run in unattended mode, After starting it to run from cloud, desktop flow runs for few hours and then it stops executing without giving any error. It remains in run mode until it is stopped manually. What could be reason. 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @ArchanaKK 

    A lot will depend on what actions are used in the Flow...like SendKeys, Focus on foreground window, Image detection, etc.

    Adding some logging of your own would help to determine if it stops on a particular line of action.

     

    For Example write some comments to a Text file like...

     

    [DateTime] : Launched Excel

    .

    .

    [DateTime] : Entering For Each loop

    .

    .

    [DateTime] : Excel Closed

     

    When your Flow has stopped, you can go to this text file and see till where your Flow has run.

    If "Excel Closed" is missing, then the Flow is failing before that or on that step.

     

    The level of detailed logging and how to handle the growing text file will depend on how you want to write it. 

     

    Hope this helps you to track down the error.

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard