Skip to content

Commit 477e508

Browse files
authored
Merge pull request #9315 from MicrosoftDocs/main
Auto push to live 2025-07-11 02:38:42
2 parents 0e12a90 + b085919 commit 477e508

File tree

7 files changed

+247
-97
lines changed

7 files changed

+247
-97
lines changed

support/dynamics-365/field-service/mobile-app/webview-reset.md

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,54 @@ title: Home Page Unexpectedly Shown and WebView Reset in Dynamics 365 Field Serv
33
description: Helps resolve WebView reset issues in the Dynamics 365 Field Service mobile app.
44
author: JonBaker007
55
ms.author: jobaker
6-
ms.reviewer: mhart
7-
ms.date: 12/12/2024
6+
ms.reviewer: puneet-singh1
7+
ms.date: 07/11/2025
88
ms.custom: sap:Mobile Application\Application is throwing errors
99
---
10-
# The Field Service mobile app shows the home page unexpectedly and a WebView reset occurs
10+
# Troubleshoot WebView reset in Dynamics 365 Field Service mobile app
1111

1212
This article helps you troubleshoot and resolve issues in the [Dynamics 365 Field Service mobile app](/dynamics365/field-service/mobile/overview), where the home page is unexpectedly displayed, and a WebView reset occurs.
1313

14-
## Symptoms
14+
## What is a WebView reset?
1515

16-
The Dynamics 365 Field Service mobile app unexpectedly displays the home page, and a WebView reset occurs.
16+
A WebView reset in the Dynamics 365 Field Service mobile app typically indicates that the app module consumes too much memory. It's often triggered by activities that cause memory pressure on the WebView process. [Model-driven applications in Power Apps](/power-apps/maker/model-driven-apps/model-driven-app-overview), such as Dynamics 365 Field Service, run as web applications inside a WebView on the mobile client. As a result, they're subject to the memory management policies of the mobile operating system.
1717

18-
## Cause
18+
## Root cause
1919

20-
WebView resets for several reasons. When an Android or iOS device runs low on memory, it proactively closes apps to recover memory. Processes that use large amounts of memory include:
20+
A WebView reset occurs when the mobile operating system terminates an application process that exceeds its memory limits. The threshold for "too much memory" varies by device and operating system, so the issue might not always be reproducible.
2121

22-
- Using the camera and uploading large files such as images, videos, audio, PDFs, or other documents.
23-
- Customizations like PowerApps Component Framework (PCF) controls. For example, using annotations with custom controls.
24-
- Sharing screen in Microsoft Teams.
25-
- Running other apps on the device.
22+
- **iOS:** The WebView reset error occurs only on iOS because WebViews run in separate processes that can be terminated independently from the main app. If the WebView process exceeds the operating system memory threshold, it's terminated. The app detects this issue, restarts the WebView, and displays a reset message to the user.
23+
- **Android:** The WebView runs within the main application process. If memory limits are exceeded, the entire app process is terminated, resulting in a crash.
24+
- **Desktop browsers:** WebView resets don't occur, but memory pressure can still be investigated using browser tools.
2625

27-
## Resolution
26+
> [!IMPORTANT]
27+
> Poor memory management in customizations can negatively impact the app experience.
2828
29-
Try the following suggestions to mitigate the issue:
29+
## Understanding memory pressure
3030

31-
- Determine the cause of the reset. Use developer tools to inspect memory usage in the WebView in the app and browser. For example, [Debug JavaScript in mobile app on Android](/power-apps/developer/model-driven-apps/clientapi/debug-javascript-code#debug-javascript-in-mobile-apps-on-android) or [Fix memory problems](/microsoft-edge/devtools-guide-chromium/memory-problems/).
32-
- Take steps to reduce memory usage, such as avoiding screen sharing or closing apps other than the Field Service mobile app that use large amounts of memory.
33-
- Review [performance considerations when customizing the mobile app](/dynamics365/field-service/mobile/improve-mobile-performance) and take actions to reduce memory usage.
31+
There are two main causes of memory pressure:
32+
33+
1. Memory spike
34+
35+
A memory spike occurs when a large object is allocated in the WebView process, causing a sudden increase in memory usage. Common causes include:
36+
37+
- Storing Base64-encoded images or videos in variables within [Power Apps component framework](/power-apps/developer/component-framework/overview) controls or web resources.
38+
- Using JavaScript libraries that import large resource files (for example, font libraries.)
39+
40+
If you can reliably reproduce a WebView reset by performing a specific action (like opening a form or control), a memory spike is likely the cause.
41+
42+
2. Memory leaks
43+
44+
A memory leak occurs when memory allocated within the WebView process isn't released because of lingering references, such as event listeners or objects that aren't properly cleaned up. This issue prevents the garbage collector from reclaiming the memory, causing memory usage to gradually increase over time. For example, adding event listeners to the window object in JavaScript without removing them when navigating away can lead to leaks. If WebView resets occur randomly and aren't tied to a specific action, it's likely due to a memory leak from previous activities.
45+
46+
## Troubleshooting memory pressure
47+
48+
To diagnose and resolve memory pressure issues:
49+
50+
- For iOS, use Safari memory analysis tools to check the memory performance of your iOS app module. For more information, see [the Timelines Tab in Web Inspector](https://webkit.org/web-inspector/timelines-tab/).
51+
- The WebView reset error is specific to iOS applications running WebViews and can only be reproduced within that context. However, code that causes memory pressure on mobile also causes memory pressure buildup on desktop browsers. You can investigate the root cause of a WebView reset by using browser developer tools (such as Microsoft Edge DevTools) to track memory usage and identify issues. For more information, see [Fix memory problems in Microsoft Edge DevTools](/microsoft-edge/devtools-guide-chromium/memory-problems/).
52+
- [Debug JavaScript code for model-driven apps](/power-apps/developer/model-driven-apps/clientapi/debug-javascript-code) to identify problematic scripts or customizations.
53+
54+
## More information
55+
56+
[Performance considerations when customizing the Dynamics 365 Field Service mobile app](/dynamics365/field-service/mobile/improve-mobile-performance)

support/power-platform/power-automate/desktop-flows/troubleshoot-errors-running-attended-or-unattended-desktop-flows.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Error code occurs when running an attended or unattended desktop flow
33
description: Provides mitigation steps for the error codes that occur when running attended or unattended desktop flows.
44
ms.reviewer: cefriant, kenseongtan, guco, johndund, alarnaud, ermathon
5-
ms.date: 05/29/2025
5+
ms.date: 07/11/2025
66
ms.custom: sap:Desktop flows\Unattended flow runtime errors
77
---
88
# Error code occurs when running an attended or unattended desktop flow
@@ -23,6 +23,7 @@ _Original KB number:_   4555406
2323
|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).|
2424
|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).|
2525
|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).|
2627
|SessionCreationWinLogonFailure|400|Unattended|We can't create a Windows session to run your unattended desktop flow. You need to restart your machine.|
2728
|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).|
2829
|UnattendedUserSessionDisconnected|400|Unattended|For more information about this error code, see [UnattendedUserSessionDisconnected](troubleshoot-desktop-flow-run-queue-errors.md#unattendedusersessiondisconnected).|

support/power-platform/power-automate/desktop-flows/troubleshoot-session-creation-errrors.md

Lines changed: 77 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,31 @@ title: Session creation error codes in unattended desktop flow runs
33
description: Solves error codes related to session creation during unattended desktop flow runs in Power Automate.
44
author: johndund
55
ms.author: johndund
6-
ms.date: 04/29/2025
7-
ms.reviewer: madiazor, guco, fredg
6+
ms.date: 07/11/2025
7+
ms.reviewer: madiazor, guco, fredg, alarnaud
88
ms.custom: sap:Desktop flows\Unattended flow runtime errors
99
---
10-
# Resolve session creation error codes for an unattended desktop flow run
10+
# Resolve session creation errors for an unattended desktop flow run
1111

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.
1313

1414
_Applies to:_ &nbsp; Power Automate
1515

1616
## Symptoms
1717

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:
2319

2420
- [SessionCreationErrorWithThirdPartyCredentialProvider](#sessioncreationerrorwiththirdpartycredentialprovider)
21+
- [SessionCreationUserPromptedForCredentialsAfterConnection](#sessioncreationuserpromptedforcredentialsafterconnection)
2522
- [SessionCreationError](#sessioncreationerror)
2623

24+
## Cause
25+
26+
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.
27+
2728
## SessionCreationErrorWithThirdPartyCredentialProvider
2829

29-
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.
3031

3132
### Resolution
3233

@@ -44,6 +45,72 @@ Each subkey represents an installed credential provider. The following table lis
4445
| SIDCredentialProvider | 36ED98C6-02FF-47e8-B7FE-957A411CEA16 |
4546
| CGWinLogon | BDA6DA5B-7E7E-482C-9B3E-67AFF0C838C0 |
4647

48+
## SessionCreationUserPromptedForCredentialsAfterConnection
49+
50+
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>.
65+
66+
2. Navigate to the following path:
67+
68+
`Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services`
69+
70+
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:
74+
75+
`Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp`
76+
77+
Look for the `fPromptForPassword` DWORD. If it exists, set its value to **0**. If it doesn't exist, create it and set its value to **0**.
78+
79+
**For other machine configurations:**
80+
81+
1. Open **Registry Editor** by pressing Windows+<kbd>R</kbd>, typing `regedit`, and pressing <kbd>Enter</kbd>.
82+
83+
2. Navigate to the following path:
84+
85+
`Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services`
86+
87+
3. Check if the `Terminal Services` key contains the following values:
88+
89+
- `fPromptForPassword` = **1**
90+
- `SecurityLayer` = **0**
91+
- `UserAuthentication` = **0**
92+
93+
If all three values exist, contact your IT department to update one of these values:
94+
95+
- Set `fPromptForPassword` to **0**, or
96+
- Set `SecurityLayer` to **1** or **2**, or
97+
- Set `UserAuthentication` to **1**.
98+
99+
If one or more values are missing:
100+
101+
- Choose one of the missing values based on your requirements.
102+
- Navigate to:
103+
104+
`Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp`
105+
106+
- Update (or create if not present) the selected value:
107+
108+
- Set `fPromptForPassword` to **0**, or
109+
- Set `SecurityLayer` to **1** or **2**, or
110+
- Set `UserAuthentication` to **1**.
111+
112+
3. Restart the machine after making registry changes.
113+
47114
## SessionCreationError
48115

49116
This error code occurs when a session creation fails for an unknown reason.
16.1 KB
Loading

0 commit comments

Comments
 (0)