An agent-related error code occurs when running an attended or unattended desktop flow
Artikkel
This article provides the mitigation steps for the agent-related error codes that occur when running attended or unattended desktop flows.
Märkus
As a first step, we recommend updating Power Automate for desktop to the latest version. If the agent-related error code persists after the upgrade, you can try the following mitigation steps to work around the issue. If the agent-related error code that you receive isn't listed in the table, contact Power Automate support.
Error codes
Error code
Description
Cause
Mitigation steps
AgentNotReachable
The agent running the desktop flow isn't reachable.
This error code occurs when the Power Automate service running on your machine can no longer communicate with the agent in the user session executing your flow. It's typically caused by suboptimal machine performance, such as high CPU usage, and might temporarily block the communication between the service and the agent. For more information about all the prerequisites and limitations you should consider before installing and using Power Automate on your desktop, see Prerequisites and limitations.
Ensure that no other users connect to the machine while automations run.
Verify that the machine has sufficient compute and memory resources.
Check if the machine restarts during the execution.
The agent running the desktop flow isn't responsive.
This error code occurs when the Power Automate service running on your machine can no longer communicate with the agent in the user session executing your flow. It's typically caused by suboptimal machine performance, such as high CPU usage, and might temporarily block the communication between the service and the agent. For more information about all the prerequisites and limitations you should consider before installing and using Power Automate on your desktop, see Prerequisites and limitations.
Verify that the machine has sufficient compute and memory resources.
Power Automate can create a session to run the desktop flow but can't start the agent inside the session.
Verify that the machine has sufficient compute and memory resources.
For more information about all the prerequisites and limitations you should consider before installing and using Power Automate on your desktop, see Prerequisites and limitations.
How to increase the time-out the Power Automate service uses to communicate with the agent
To increase the agent time-out in the registry:
Press Win+R to open the Run dialog. Type regedit and press Enter to open the Registry Editor.
Navigate to the Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Power Automate Desktop\Service registry.
Add a new DWORD (32-bit) and name it AgentPingTimeoutSeconds. Select the Decimal radio button, double-click the new value, and enter a desired value (the suggested value is 30) in the Value data field.
Restart the Power Automate service. In Task Manager, select the Services tab, right-click UIFlowService in the list, and then select Restart.