Skip to content

Commit 7fde314

Browse files
committed
Edits
1 parent ae312c1 commit 7fde314

1 file changed

Lines changed: 62 additions & 41 deletions

File tree

Lines changed: 62 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,89 @@
11
---
2-
title: Troubleshoot Binary caching issues in Desktop flow executions triggered from cloud
3-
description: Resolve issues due to conflicting or duplicate files in the disk, related to the binary caching feature in Power Automate for desktop.
4-
author: sokopa
5-
ms.author: spanopoulos
6-
ms.reviewer: spanopoulos
7-
ms.date: 12/15/2025
2+
title: Fix Desktop Flow Failures from Cache Issues
3+
description: Resolve desktop flow errors in Power Automate caused by corrupted or conflicting cache files. Learn how to clear cache folders and fix execution issues.
4+
ms.reviewer: spanopoulos, v-shaywood
5+
ms.date: 01/15/2026
86
ms.custom: sap:Desktop flows
97
---
108

11-
# Troubleshooting Binary Caching issues
9+
# Desktop flows fail due to binary caching problems
1210

13-
This article provides solutions to resolve issues caused by conflicting or duplicate files in the disk cache. The binary caching feature in Power Automate for desktop downloads and stores files locally to reduce flow execution time, but corrupted or outdated cache files can sometimes cause errors during desktop flow execution.
11+
## Summary
1412

15-
## Clear cache folders
13+
Power Automate for desktop uses binary caching to download and store files locally. This method improves performance and reduces flow execution time. However, corrupted, outdated, or conflicting cache files can cause errors when running desktop flows.
1614

17-
If you encounter errors during desktop flow execution, you can attempt to resolve them by clearing the cache folders on your machine. The cache folder location depends on how the Power Automate Desktop Machine Runtime is configured.
15+
Use this guide when desktop flows fail to execute from the cloud or behave unexpectedly. You can learn how to identify your machine runtime configuration and clear the appropriate cache folders.
16+
17+
## Symptoms
18+
19+
You might experience one or more of the following problems:
20+
21+
- Desktop flows fail when triggered from the cloud
22+
- Error messages about file conflicts or corrupted files
23+
- Unexpected behavior during flow execution
24+
25+
## Cause
26+
27+
Binary caching stores files locally to optimize performance. Cache errors occur when:
28+
29+
- Cache files become corrupted
30+
- Outdated files conflict with newer versions
31+
- Duplicate files exist in the cache directory
32+
33+
## Solution
34+
35+
Clear the cache folders on your machine. The cache folder location depends on your Power Automate machine runtime configuration.
1836

1937
### Determine your configuration
2038

21-
Before clearing the cache, identify which user account your Service account for the Power Automate machine runtime is configured to use.
39+
First, identify which user account your service account for the Power Automate machine runtime is configured to use.
40+
41+
1. Open the Power Automate machine runtime application from the Windows Start menu, or from Power Automate Console via **Settings** > **Open machine settings**.
2242

23-
This can be found in the Power Automate machine runtime application, which can be accessed from its shortcut in the Windows Start Menu or from Power Automate Console, via Settings -> Open machine settings.
43+
1. On the **Troubleshoot** page, the **Service account** section shows the current configuration, including the domain and username.
2444

25-
Under the Troubleshoot page, the section for Service account indicates the current configuration, with the domain and username of the account that will be used.
45+
- **Default configuration**: The service account for the Power Automate machine runtime runs under the UIFlowService system account (`NT Service\UIFlowService`).
46+
- **Custom configuration**: The service account for the Power Automate machine runtime runs under a specific user account you configured (`DOMAIN\Username`).
2647

27-
- **Default configuration**: The Service account for the Power Automate machine runtime runs under the UIFlowService system account (NT Service\UIFlowService)
28-
- **Custom configuration**: The Service account for the Power Automate machine runtime runs under a specific user account that you configured (DOMAIN\Username)
48+
### Clear cache for the default configuration (UIFlowService account)
2949

30-
### Clear cache for default configuration (UIFlowService account)
50+
If your service account for the Power Automate machine runtime uses the default UIFlowService account configuration:
3151

32-
If your Service account for the Power Automate machine runtime uses the default UIFlowService account configuration:
52+
1. In File Explorer, go to `C:\Windows\ServiceProfiles\UIFlowService\AppData\Local\Cache`.
53+
1. Delete both the `storage` and `metadata` folders.
54+
1. Restart the UIFlowService service:
55+
1. Press <kbd>Win</kbd>+<kbd>R</kbd> to open the **Run** dialog.
56+
1. Type **services.msc** and press <kbd>Enter</kbd>.
57+
1. Find **Power Automate Service** in the list.
58+
1. Right-click **Power Automate Service** and select **Restart**.
3359

34-
1. Open File Explorer and navigate to the cache folder: `C:\Windows\ServiceProfiles\UIFlowService\AppData\Local\Cache`
35-
2. Delete both folders under this path (`storage` and `metadata`)
36-
3. Restart the UIFlowService service:
37-
- Press <kbd>Win</kbd>+<kbd>R</kbd> to open the **Run** dialog
38-
- Type **services.msc** and press <kbd>Enter</kbd>
39-
- Locate **Power Automate Service** in the list
40-
- Right-click on **Power Automate Service** and select **Restart**
60+
### Clear cache for a custom user configuration
4161

42-
### Clear cache for custom user configuration
62+
If your service account for the Power Automate machine runtime is configured to run under a custom user account:
4363

44-
If your Service account for the Power Automate machine runtime is configured to run under a custom user account:
64+
1. In File Explorer, go to `%LOCALAPPDATA%\Cache` or `C:\Users\<Username>\AppData\Local\Cache` (replace `<Username>` with the configured account).
4565

46-
1. Open File Explorer and navigate to the cache folder: `%LOCALAPPDATA%\Cache` or `C:\Users\<username>\AppData\Local\Cache` (where `<username>` is the configured user account)
4766
> [!NOTE]
48-
> The AppData folder is hidden by default. To show hidden folders, in File Explorer, go to **View** > **Show** > **Hidden items**.
67+
> The AppData folder is hidden by default. To show it, in File Explorer select **View** > **Show** > **Hidden items**.
4968
50-
2. Delete all files and folders in the Cache directory
51-
3. Restart the **Power Automate Service** or restart your machine
69+
1. Delete all files and folders in the Cache directory.
70+
1. Restart the **Power Automate Service** or restart your machine.
5271

53-
## Next steps
72+
### Optional cache folders to clear
5473

55-
Additional folders that you can safely clear in case you encounter errors with desktop flow execution:
74+
If the problem persists, clear these additional folders:
5675

5776
1. Under `%LOCALAPPDATA%\Microsoft\Power Automate Desktop`:
58-
- `Scripts`: Contains execution logs and intermediate cached data for desktop flows triggered by a cloud flow
59-
- `Console\Scripts`: Contains execution logs and intermediate cached data for desktop flows triggered by PAD Console
60-
- `Designer\Scripts`: Contains execution logs and intermediate cached data for desktop flows triggered by PAD Designer
61-
- `Cache\(MSI or MSIX)`: All folders except `Account` and `msalcache.bin3` file are safe to remove and will not result in any data loss. You might get back some notifications that you have previously dismissed. If you also choose to delete `Account` folder and the `msalcache.bin3` file, you will be signed out from Power Automate Desktop.
62-
- `DesktopFlowModules`: Contains custom modules that have been downloaded through the Asset Library - they will be downloaded again during runtime if they are missing.
77+
- `Scripts`: Stores execution logs and cached data for cloud-triggered desktop flows.
78+
- `Console\Scripts`: Stores execution logs and cached data for flows triggered from Power Automate Desktop Console.
79+
- `Designer\Scripts`: Stores execution logs and cached data for flows triggered from Power Automate Desktop Designer.
80+
- `Cache\(MSI or MSIX)`: Safe to remove all folders except `Account` and the `msalcache.bin3` file.
81+
- Deleting these folders doesn't cause data loss, but you might see previously dismissed notifications again.
82+
- If you delete the `Account` folder and `msalcache.bin3` file, you'll be signed out of Power Automate Desktop.
83+
- `DesktopFlowModules`: Contains custom modules downloaded from the Asset Library. Missing modules are downloaded again at runtime.
6384
2. Under `C:\Windows\ServiceProfiles\UIFlowService\AppData\Local`:
64-
- `Microsoft\Power Automate Desktop\Cache`: depending on your PAD version, you might have some files being cached under this directory instead of the ones mentioned in the previous section
65-
- `Users`: additional intermediate files can be located here related to binary caching, and purging this folder can be used to eliminate further errors.
66-
- After removing any files under this path, also make sure to restart the **Power Automate Service** as previously instructed.
85+
- `Microsoft\Power Automate Desktop\Cache`: Depending on your Power Automate Desktop version, some files might be cached here instead of the locations listed earlier.
86+
- `Users`: Contains additional intermediate files related to binary caching. Clearing this folder can resolve further errors.
87+
- After removing files from this path, restart **Power Automate Service** as described earlier.
6788

68-
If clearing the cache folders doesn't resolve your issue, contact [Power Automate support](https://www.microsoft.com/power-platform/products/power-automate/support/).
89+
If clearing cache folders doesn't resolve the problem, contact [Power Automate support](https://www.microsoft.com/power-platform/products/power-automate/support/).

0 commit comments

Comments
 (0)