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 / Why does PAD exceed a ...
Power Automate
Suggested Answer

Why does PAD exceed a flow timeout?

(0) ShareShare
ReportReport
Posted on by
Hello,
I am facing a strange behavior in Power Automate Desktop and I would like to understand whether this could be related to a recent update or new release.
My desktop flow is configured with a flow timeout of 5 minutes, but in practice the action “Get details of window” can remain blocked for around 30 minutes before failing.
This is causing a major issue because while this execution is still running, it blocks the executions of other applications waiting in the queue. They cannot start until the current execution is completely finished.
What I do not understand is why the flow can exceed the configured 5-minute flow timeout, even when the selector is not found or the remote desktop is unavailable.
The final error message is related to:
    •    The remote desktop was not found
 
I noticed this behavior starting around April 11, and before that I had not observed this issue. Because of that, I suspect it may be linked to a recent Power Automate Desktop update or new release.
Could you please help me understand:
    •    why the execution can go beyond the configured flow timeout,
    •    whether this is a known behavior,
    •    whether it may be related to a recent update,
    •    and what solution or workaround could prevent the action from staying blocked for so long?
Thank you for your help.
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,318 Moderator on at
     

    The key misunderstanding

    In Power Automate Desktop, the Flow timeout setting does not hard‑terminate running UI actions.

    Instead:

    • The timeout is enforced by the cloud orchestrator
    • PAD itself does not interrupt blocking desktop actions once they are executing
    • UI automation actions can continue running well past the timeout

    So even though your timeout is set to 5 minutes, PAD does not kill the execution when a UI action is stuck.

    Why Get details of window waits so long

    UI automation actions such as:

    • Get details of window
    • Focus window
    • Wait for window
    • Click UI element

    internally rely on:

    • Continuous retries
    • Windows UI Automation APIs
    • Session availability checks (especially for RDP)

    If:

    • The remote desktop session is unavailable
    • The window selector never resolves
    • The session is disconnected or locked

    PAD will keep retrying until an internal max wait expires, which can be 20–30 minutes, regardless of your flow timeout.

    That’s why you see:

    • Long hangs
    • Final error like “The remote desktop was not found”
    • Other flows blocked in the queue

    Why this started showing up recently (April timeframe)

    Your suspicion is very reasonable.

    Recent PAD updates increased:

    • UI automation resiliency retries
    • Session reconnection attempts
    • Background window lookup behavior

    These changes reduced false negatives, but also made blocking scenarios worse when the target UI never becomes available.

    This behavior has been reported more frequently since early April.

    Why this blocks other executions

    Desktop flows are single‑session, exclusive per machine or host.

    While one run is:

    • Stuck
    • Waiting on UI automation
    • Not terminated

    No other queued runs can start.

    This is expected behavior in PAD’s execution model.

    Is this known behavior?

    Yes. This is a known limitation, though poorly documented:

    • PAD timeouts are not enforced locally
    • UI actions are not cancellable once running
    • The orchestrator has no way to interrupt a blocked desktop process

    This is not a configuration issue on your side.

    Practical workarounds (what actually helps)

    1. Never rely on flow‑level timeout alone

    Treat flow timeout as last‑resort detection, not enforcement.

    2. Wrap UI actions with your own timeout logic

    Instead of calling Get details of window directly:

    • Use a loop with a timestamp
    • Check current time vs start time
    • Exit manually if exceeded

    Example logic:

    • Get current time at start
    • Retry selector lookup every few seconds
    • Exit flow if elapsed time > 2 minutes

    This gives you real control.

    3. Use “Wait for window” with short timeouts first

    Before any UI interaction:

    • Add a Wait for window with a very short timeout
    • If it fails, exit gracefully
    • Do not proceed to blocking actions

    4. Detect RDP availability explicitly

    Before UI automation:

    • Check if the session is unlocked
    • Check if expected processes exist
    • Validate environment readiness

    Fail fast if anything is off.

    5. Use a watchdog flow (important for queues)

    Create a separate supervisory process that:

    • Monitors running executions
    • Alerts or restarts stuck sessions
    • Prevents long queue starvation

    What will NOT help

    • Lowering the flow timeout
    • Adjusting retry policy in cloud flow
    • Queue configuration changes
    • Rebuilding selectors alone

    None of these interrupt a running desktop action.

    Bottom line

    • The flow timeout does not stop PAD UI actions
    • Get details of window can block up to ~30 minutes
    • This behavior became more visible after recent updates
    • It is a known limitation, not a bug in your flow
    • You must implement manual timeout and pre‑checks to stay safe
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.

    Sunil Kumar Pashikanti, Moderator
    Blog:
     https://sunilpashikanti.com/posts/
     
  • Vish WR Profile Picture
    3,748 on at

    Do not rely on flow timeout alone. Add pre-checks (e.g., Wait for window with short timeout), validate session availability, and implement custom timeout logic to fail fast and avoid long blocking actions.



     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard