What the error means
NoCandidateMachine is the Power Automate error for a desktop flow run that never found a machine to run on. Microsoft's queue errors article says the run may fail with the code NoCandidateMachine or the details "No machine able to run the desktop flow has been found." The error occurs before the desktop flow starts, so none of its actions ran.
The cause is the run queue. When no machine is available, Power Automate holds desktop flow runs in a queue and picks the next one by priority and request time when a machine frees up. Microsoft's queue article says that if no machine is available twelve hours after the run was requested, the run times out and fails with NoCandidateMachine; the error code table describes it simply as a run that exceeded the queue waiting time limit. The queue is first in, first out, and Microsoft notes that if all available machines have reached their maximum concurrent sessions, the queue is blocked until a machine becomes available for the next run.
NoCandidateMachine often comes with a suberror that names the real reason a machine was not suitable. Microsoft lists SessionExistsForTheUserWhenUnattended, UnattendedUserSessionDisconnected, UnattendedUserSessionLocked, AttendedUserSessionNotActive, AttendedUserNotLoggedIn and UIFlowAlreadyRunning as the common ones. Fix the suberror first; without one, check the machines themselves.
Common causes
- The target machine, or every machine in the group, is offline, or the group is empty.
- Machines are continuously busy, or have reached their maximum concurrent sessions.
- An unattended run targets a machine where the connection's user is signed in, or an attended run targets a machine where that user is signed out or locked.
- Network, proxy or firewall problems stop the machine reaching Power Automate.
- The machine is no longer usable, or the issue is transient.
How to fix it
1. Read the queue events and suberror
Open the failed run in the monitor run details page and look at the queue events section. Microsoft says these lifecycle events show each launch attempt and help identify the root cause. Note any suberror code and follow its specific fix.
2. Fix the session state for the run mode
For unattended runs, sign out the connection's user on the target machine; a locked or disconnected session also blocks the run. Unattended desktop flows need a machine with all users signed out. For attended runs, sign in on the machine with the connection's user and leave the session unlocked. Microsoft also asks you not to run unattended flows on a group where all machines are signed in, or attended flows on a group where all are signed out.
3. Check the machine is online and in the group
Start the machine and make sure Power Automate for desktop is installed and can reach the internet. Make sure the machine group contains at least one machine. If the network blocks the machine, work with your IT administrator so it is reachable. To confirm you target the right machine, open the machine runtime application and select View machine in portal.
4. Add capacity or spread the runs
If machines are always busy, Microsoft suggests adding more machines to distribute the workload, or spreading desktop flow runs to reduce waiting time. If the machine is no longer usable, add a new machine and update the desktop flow connections in your cloud flows to use it.
5. Clear the backlog and retry
For transient issues, Microsoft suggests changing the retry policy in the action's settings. If many runs are stuck in the queue, cancel their parent cloud flow runs with Cancel parent flow run on the Desktop flow runs page, fix the machine, and restart the cloud flows.
If nothing works
Check the suberror against Microsoft's full error code table for desktop flows, which covers session, certificate, network and service errors. The guide to getting started with Power Automate desktop flows explains machine registration, connections and the licence needed for each run mode. If the error still has no clear cause, contact Power Automate support with the run ID.
What we checked
Two Microsoft Learn articles were read. "Troubleshoot desktop flow run queue errors" defines NoCandidateMachine, the twelve-hour queue timeout, the common suberrors and their fixes, the queue events, and the checks for runs without a suberror. "Error code occurs when running an attended or unattended desktop flow" lists NoCandidateMachine as a queue waiting time limit error with capacity advice. The error was not reproduced for this page.
Last checked: 2026-11-21.