Skip to content

Commit 3b3e956

Browse files
authored
some updates
1 parent 7d468bf commit 3b3e956

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

support/power-platform/power-automate/desktop-flows/troubleshoot-unattended-runs-with-screenshots.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22
title: Troubleshoot Failed Unattended Runs Using Screenshots
33
description: Provides troubleshooting steps to identify and resolve issues causing unattended runs to fail in Microsoft Power Automate.
44
ms.reviewer: alarnaud
5-
ms.date: 05/14/2025
5+
ms.date: 05/15/2025
66
ms.custom: sap:Desktop flows\Unattended flow runtime errors
77
---
88
# Troubleshoot failed unattended runs using screenshots
99

10-
This article provides guidance on troubleshooting failed unattended runs of scripts, particularly focusing on capturing screenshots to diagnose issues.
10+
This article provides guidance on troubleshooting failed unattended desktop flow runs, particularly focusing on capturing screenshots to diagnose issues.
1111

1212
_Applies to:_   Power Automate
1313
_Original KB number:_   5007976
1414

1515
## Symptoms
1616

17-
A script that runs successfully in attended mode fails to execute properly in unattended mode. It might also fail with an error message like the following:
17+
A desktop flow that runs successfully in attended mode fails to execute properly in unattended mode. It might also fail with an error message like the following:
1818

1919
> There was a problem running the action 'Click'. The link could not be clicked on the web page.
2020
2121
## Cause
2222

2323
Unattended run failures might occur due to the following reasons:
2424

25-
- The script might be thoroughly tested in attended mode before being deployed in unattended mode.
25+
- The script might not have been thoroughly tested in attended mode before being deployed in unattended mode.
2626
- The unattended session might use a different configuration compared to the attended session, such as a different Windows account, screen resolution, or browser settings (for example, user profile, popup blocker settings, missing extensions, or disabled extensions.)
2727
- Screens might not completely load due to insufficient delays or timing issues in the script.
2828
- A User Account Control (UAC) prompt might block UI automation when the session begins.
@@ -75,7 +75,7 @@ You can capture screenshots immediately before and after a failing step in unatt
7575

7676
### Check screen resolution and scale differences
7777

78-
Many UI automation issues arise due to screen resolution differences between the machines running the attended and unattended sessions. Compare the resolution settings between attended and unattended run executions to ensure they match in both modes.
78+
Many UI automation issues arise due to screen resolution differences between the machines running the attended and unattended sessions. Compare the resolution settings between attended and unattended run executions to ensure they match in both modes. For more information on setting screen resolution in unattended mode, see [Set screen resolution on unattended mode](/power-automate/desktop-flows/how-to/set-screen-resolution-unattended-mode).
7979

8080
In some cases (for example, when using a virtual machine (VM) or Hyper-V), the display resolution settings might be unavailable or grayed out. As a workaround in such situations, you can add the following actions in your script before running in both modes.
8181

@@ -110,10 +110,10 @@ In some cases (for example, when using a virtual machine (VM) or Hyper-V), the d
110110
File.WriteText File: $'''c:\\test\\resolution_%FormattedDateTime%.txt''' TextToWrite: $'''height: %MonitorHeight% width: %MonitorWidth% frequency: %MonitorFrequency% bitCount: %MonitorBitCount% scale: %MonitorScaleOutput%''' AppendNewLine: True IfFileExists: File.IfFileExists.Overwrite Encoding: File.FileEncoding.Unicode
111111
```
112112

113-
The following screenshot illustrates the steps to capture resolution settings and output them in a timestamped file.
113+
The script will create the following actions to capture resolution settings and output them in a timestamped file.
114114

115115
:::image type="content" source="media/troubleshoot-unattended-runs-with-screenshots/script-action.png" alt-text="Screenshot of the created steps.":::
116116

117117
1. Review the output file path from the last action, check that local execution is successful, and select **Save**.
118118

119-
1. Run the script in both attended and unattended modes, and then compare the resolution and scale output to ensure they match in both modes.
119+
1. Run the script in both attended and unattended modes, then compare the resolution and scale output of both modes, and update, if necessary, to ensure they match in both modes.

0 commit comments

Comments
 (0)