Fix Power Automate Desktop Flow Fails Saving Excel on Network Drive
Question details
A Power Automate desktop flow fails when attempting to save or close an Excel file on a network drive via a cloud flow trigger, despite working perfectly when run manually.

- Product
- Microsoft Power Automate and Excel
- Device & OS
- not provided
- Scenario
- Triggering a scheduled cloud flow that runs a desktop flow to manipulate and save an Excel file located on a network drive.
- Observed behavior
- The desktop flow executes successfully when triggered manually, but fails during automated cloud execution specifically at the step of saving or closing the Excel application.
Ensure that the unattended service account running the cloud flow has full read and write permissions to the targeted network drive path, and that the host machine is powered on and connected to the network.
Verify Permissions and Network Paths for Unattended Flows
Cloud-triggered runs often use a different service account or session type than manual runs, which can cause network drive access to fail.
When running a desktop flow manually, it uses your active user session and permissions. When triggered from a cloud flow (especially unattended), it relies on the connection credentials configured in the cloud. Mapped network drives (like Z:\) are tied to specific user sessions and may not be accessible during automated runs.
In your Power Automate cloud flow, open the 'Run a flow built with Power Automate for desktop' action and verify the exact credentials being used for the connection.
Open your desktop flow and change any mapped network drive paths (e.g., Z:\folder\file.xlsx) to absolute UNC paths (e.g., \\server\sharedfolder\file.xlsx).
Log into the machine using the exact service account configured for the cloud flow connection, and attempt to manually open, edit, and save the Excel file on the network drive to verify permissions.
Consult the Microsoft Power Automate Community
If permissions and paths are correct but the flow still fails, consult Microsoft specialists for advanced debugging.
Try WPS Office for a Seamless Spreadsheet Experience
If you are experiencing constant compatibility or performance issues with Microsoft Excel automation, consider switching to WPS Office. It is a lightweight, robust, and highly compatible alternative that handles complex spreadsheets effortlessly without consuming excessive system resources.
- 1. Download the installer: Visit the official WPS Office website and download the free version for your operating system.
- 2. Install the software: Run the setup file and follow the on-screen instructions to complete the quick installation process.
- 3. Open your spreadsheets: Launch WPS Spreadsheet and easily open, edit, and save your existing network drive Excel files.

Frequently Asked Questions
Why does my Power Automate flow work manually but fail when triggered by the cloud?
Manual runs use your active Windows session and current user privileges. Unattended cloud flows use the configured connection credentials, which might lack access to specific network folders, mapped drives, or require an unlocked screen to interact with UI elements like Excel pop-ups.
Can I use mapped network drives in Power Automate desktop flows?
It is highly recommended to use absolute UNC paths (e.g., \\server\sharedfolder) instead of mapped drive letters (e.g., Z:\). Mapped drives are tied to specific user sessions and often fail to resolve when a flow is triggered remotely via a cloud flow.
How do I force Excel to close silently in Power Automate?
Use the 'Close Excel' action and set it explicitly to 'Save document' or 'Do not save document'. If a 'Save As' or 'File in use' prompt appears due to file permissions or network latency, it will block the flow in unattended mode.




