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/dynamics-365/field-service/mobile-app/webview-reset.md
+39-16Lines changed: 39 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,31 +3,54 @@ title: Home Page Unexpectedly Shown and WebView Reset in Dynamics 365 Field Serv
3
3
description: Helps resolve WebView reset issues in the Dynamics 365 Field Service mobile app.
4
4
author: JonBaker007
5
5
ms.author: jobaker
6
-
ms.reviewer: mhart
7
-
ms.date: 12/12/2024
6
+
ms.reviewer: puneet-singh1
7
+
ms.date: 07/11/2025
8
8
ms.custom: sap:Mobile Application\Application is throwing errors
9
9
---
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
11
11
12
12
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.
13
13
14
-
## Symptoms
14
+
## What is a WebView reset?
15
15
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.
17
17
18
-
## Cause
18
+
## Root cause
19
19
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.
21
21
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.
26
25
27
-
## Resolution
26
+
> [!IMPORTANT]
27
+
> Poor memory management in customizations can negatively impact the app experience.
28
28
29
-
Try the following suggestions to mitigate the issue:
29
+
## Understanding memory pressure
30
30
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)
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