Skip to main content

Notifications

Community site session details

Community site session details

Session Id : YMz5Q8+O6j63ihB+6ett9H
Power Automate - Power Automate Desktop
Unanswered

Unattended flow wont logout when error occurs

Like (1) ShareShare
ReportReport
Posted on 17 Jun 2024 10:49:32 by 14

Hello,

I'm having a problem when using Power Automate Desktop unattended flows. I have a flow that runs every 30 minutes and sometimes an error occurs. The problem is that when an error occurs Power Automate wont logout of the machine. When that happens, every flow that comes after get a timeout error (I have a 15 minutes timeout).

Why is this happening? Power Automate shouldnt logout even when it gets an error?

Wereley9_0-1718621292728.png

 

  • David-BCG Profile Picture
    on 06 Aug 2024 at 15:51:36
    Unattended flow wont logout when error occurs
    I have been running into this exact issue for the last couple of weeks. After the flow runs, the user will not be signed off from the target server by PAD (this seems to happen at random regardless of whether the flow is successful or not). This results in the next run failing since the user is already logged in. This is a new issue that has not presented itself for the last year while this flow has been running successfully. For now I am just restarting the server daily whenever this issue starts back up. Upon restarting the server, the issue seems to go away for a few hours, but not more than 24 hours before coming back. Seeking a more permanent solution. 
  • Wereley9 Profile Picture
    14 on 18 Jun 2024 at 14:05:47
    Re: Unattended flow wont logout when error occurs

    And now I got an error in the desktop flow execution and the following executions are stuck in "queued":

    Wereley9_0-1718719465414.png


    I don't have any other flows running at the moment and no user is using the machine. When looking at the cloud flow execution, I have this "invalid parameters", but I think it's a bug:

    Wereley9_1-1718719540380.png

     

  • Wereley9 Profile Picture
    14 on 18 Jun 2024 at 10:20:34
    Re: Unattended flow wont logout when error occurs

    Yes, it's exactly like that:

    Wereley9_0-1718706011813.png

     

  • eetuRobo Profile Picture
    3,266 Super User 2025 Season 1 on 17 Jun 2024 at 12:38:30
    Re: Unattended flow wont logout when error occurs

    That is weird.
    When you say you have set Timeout you mean in the "Run a flow built with Power Automate for desktop" -cloud actions settings? And have you checked that its syntax is correct? I think for 15 minutes its like so: PT15M

    eetuRobo_0-1718627758029.png

     

  • Wereley9 Profile Picture
    14 on 17 Jun 2024 at 12:30:46
    Re: Unattended flow wont logout when error occurs

    The image above shows the desktop flow execution. For some reason, the desktop flow executed for almost 3 days, even when the cloud flow failed. I don't know why this happened.

    Every desktop flow that came after stayed in the queue, failing after 15 minutes because of the timeout. I just cant understand why it executed for 3 days, even with a timeout.

    I will monitor the executions throughout the week.

  • eetuRobo Profile Picture
    3,266 Super User 2025 Season 1 on 17 Jun 2024 at 11:08:46
    Re: Unattended flow wont logout when error occurs

    Are you sure its logged in after the first fail? What is the error message you get when you think its still logged in?

    If Power Automate is logged in to the machine I think the other desktop flows should stay in queue until it has logged out of the previous session.

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 11 Super User 2025 Season 1

#2
KO-05050229-0 Profile Picture

KO-05050229-0 4

#3
stampcoin Profile Picture

stampcoin 2

Overall leaderboard