Επεξεργασία

Κοινή χρήση μέσω


Desktop flow fails with the SessionCreationTimeout error code

This article provides a resolution to an issue where desktop flow unattended runs fail and you receive the SessionCreationTimeout error code in Microsoft Power Automate for desktop.

Applies to:   Power Automate
Original KB number:   5016026

Symptoms

Your desktop flow unattended runs fail with the error code SessionCreationTimeout (see the below screenshot).

The details of the SessionCreationTimeout error code.

Cause

When creating a Windows session for unattended runs, Power Automate for desktop has a default timeout of 3 minutes. Thus, if a remote desktop connection to your machine takes more than 3 minutes, your unattended runs will fail.

Resolution

The first thing to do is to make sure that you have the latest version of Power Automate for desktop. If you still have the issue, you may need to increase the timeout duration of the Windows session creation. Note that these steps are only supported on versions 2.21 or later. To do this, follow these steps:

  1. Open the Registry Editor. To open it, you can open the Start menu and type Run to get the Run application. Type regedit in the text field and select OK.

    Steps to open the Registry Editor.

  2. In the path Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Power Automate Desktop\Service, create a new DWORD and give it the name SessionCreationTimeoutSeconds. The value you should assign to it is the maximum duration in seconds allowed for session creation. The below screenshot shows a new timeout value of five minutes.

    Steps to create a new DWORD SessionCreationTimeoutSeconds with a timeout value.

  3. Restart Power Automate service. To do this, open Services application, right-click Power Automate service and select Restart.

    Steps to restart the Power Automate service.