You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/power-platform/power-automate/desktop-flows/troubleshoot-errors-running-attended-or-unattended-desktop-flows.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Error code occurs when running an attended or unattended desktop flow
3
3
description: Provides mitigation steps for the error codes that occur when running attended or unattended desktop flows.
|AttendedUserSessionNotActive<br>AttendedUserNotLoggedIn|400|Attended|Check that you're logged in with the correct user and that the session is unlocked on the machine. For more information about the error codes, see [AttendedUserSessionNotActive](troubleshoot-desktop-flow-run-queue-errors.md#attendedusersessionnotactive) and [AttendedUserNotLoggedIn](troubleshoot-desktop-flow-run-queue-errors.md#attendedusernotloggedin).|
24
24
|SessionCreationError|400|Unattended|We couldn't create the session on the machine for an unknown reason. To solve this issue, see [Troubleshoot session creation error codes for an unattended desktop flow run](troubleshoot-session-creation-errrors.md#sessioncreationerror).|
25
25
|SessionCreationErrorWithThirdPartyCredentialProvider|400|Unattended|To solve this issue, see [Troubleshoot session creation error codes for an unattended desktop flow run](troubleshoot-session-creation-errrors.md#sessioncreationerrorwiththirdpartycredentialprovider).|
26
+
|SessionCreationUserPromptedForCredentialsAfterConnection|400|Unattended|To solve this issue, see [Troubleshoot session creation error codes for an unattended desktop flow run](troubleshoot-session-creation-errrors.md#sessioncreationuserpromptedforcredentialsafterconnection).|
26
27
|SessionCreationWinLogonFailure|400|Unattended|We can't create a Windows session to run your unattended desktop flow. You need to restart your machine.|
27
28
|SessionExistsForTheUserWhenUnattended|400|Unattended|Check that you aren't logged in with the same user (regardless of the state of the session) on the machine. For more information about this error code, see [SessionExistsForTheUserWhenUnattended](troubleshoot-desktop-flow-run-queue-errors.md#sessionexistsfortheuserwhenunattended).|
28
29
|UnattendedUserSessionDisconnected|400|Unattended|For more information about this error code, see [UnattendedUserSessionDisconnected](troubleshoot-desktop-flow-run-queue-errors.md#unattendedusersessiondisconnected).|
# Resolve session creation error codes for an unattended desktop flow run
10
+
# Resolve session creation errors for an unattended desktop flow run
11
11
12
-
This article provides background and potential solutions to the `SessionCreationError` and `SessionCreationErrorWithThirdPartyCredentialProvider` error codes that might occur during an unattended desktop flow run in Microsoft Power Automate.
12
+
This article provides background and potential solutions for session creation errors that might occur during an unattended desktop flow run in Microsoft Power Automate.
13
13
14
14
_Applies to:_ Power Automate
15
15
16
16
## Symptoms
17
17
18
-
Your [unattended desktop flow run](/power-automate/desktop-flows/run-unattended-desktop-flows) might fail with the `SessionCreationError` or `SessionCreationErrorWithThirdPartyCredentialProvider` error code.
19
-
20
-
## Cause
21
-
22
-
When an unattended session is run, Power Automate attempts to create a remote desktop (RDP) session on the target machine. If this session creation fails, you might receive one of the following error codes:
18
+
Your [unattended desktop flow run](/power-automate/desktop-flows/run-unattended-desktop-flows) might fail with one of the following error codes:
When an unattended session is run, Power Automate attempts to create a Remote Desktop Protocol (RDP) connection on the target machine. If this session creation fails, you might receive one of the error codes.
This error code occurs because third-party software interferes with Power Automate's ability to create a session on the machine. Power Automate doesn't support some third-party credential providers.
30
+
This error code occurs because third-party software interferes with Power Automate's ability to create a session on the machine. Power Automate doesn't support some third-party credential providers, or might experience conflicts depending on their configuration.
30
31
31
32
### Resolution
32
33
@@ -44,6 +45,72 @@ Each subkey represents an installed credential provider. The following table lis
This error code occurs when the machine prompts for credentials after the RDP connection is established. Power Automate expects credentials to be handled during the connection setup, so this unexpected prompt might cause the flow to fail.
51
+
52
+
### Resolution
53
+
54
+
The resolution steps depend on the machine's setup. Follow the instructions to determine the setup and apply the appropriate solution:
55
+
56
+
[!INCLUDE [Registry important alert](../../../includes/registry-important-alert.md)]
57
+
58
+
1. Open **Command Prompt** and run `dsregcmd /status`.
59
+
60
+
2. In the output under the **Device State** section, check the values for `AzureAdJoined` and `DomainJoined`.
61
+
62
+
**If `AzureAdJoined: YES` and `DomainJoined: NO`:**
63
+
64
+
1. Open **Registry Editor** by pressing Windows+<kbd>R</kbd>, typing `regedit`, and pressing <kbd>Enter</kbd>.
3. Check if the `Terminal Services` key contains a `fPromptForPassword` subkey:
71
+
72
+
- If it exists and is set to **1**, contact your IT department to disable the "Always prompt for password upon connection" policy. After the policy is updated, force a policy refresh on the machine.
73
+
- If `fPromptForPassword` doesn't exist, navigate to:
0 commit comments