How to Fix Power Automate Excel 401 Permission Error
Question details
Users are unable to retrieve an Excel table from a OneDrive workbook using Power Automate or Microsoft Graph API due to a 401 Unauthorized error.

- Product
- Power Automate, Microsoft Excel
- Device & OS
- not provided
- Scenario
- Selecting a table from an Excel workbook stored on a consumer OneDrive account within a Power Automate flow or via Microsoft Graph API.
- Observed behavior
- The system throws a 401 permission error stating the file cannot be opened in the browser, preventing the retrieval of the Excel table.
Ensure that your Power Automate flow is logged in with the correct Microsoft credentials and that your Excel workbook is not currently locked by another application.
Verify Connections and Migrate to Business Storage
Re-authenticating your connections and moving the file to an enterprise-grade storage solution (SharePoint or OneDrive for Business) usually resolves Microsoft Graph and Power Automate 401 limitations.
Microsoft Graph API does not officially support Excel workbooks stored in personal (consumer) OneDrive accounts. This limitation frequently causes 401 authorization errors in Power Automate.
Open Power Automate, navigate to Data > Connections. Find your 'Excel Online' connection, click on the three dots, and re-authenticate or recreate the connection.
Open the source workbook in Excel for the Web. Ensure your target data is explicitly formatted as a Table by highlighting the data and clicking Insert > Table.
If you are using a personal consumer OneDrive account, copy or move the Excel workbook to SharePoint Online or OneDrive for Business to ensure full API support.
Edit your Power Automate flow to point to the new file location in SharePoint or OneDrive for Business, then run a test.

Temporarily Open the File in a Browser
A quick workaround is to open the Excel file in a web browser before running the flow, which can temporarily bypass the 401 error.
Experience Seamless Spreadsheet Management with WPS Office
If you frequently encounter complex cloud permission errors like Power Automate's 401 unauthorized issue, consider simplifying your document workflow. WPS Office is a highly compatible, lightweight, and free alternative to Microsoft Office that manages your spreadsheets efficiently.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your device.
- 2. Open Your Workbooks: Launch WPS Spreadsheets and easily open your existing .xlsx files without worrying about formatting loss.
- 3. Edit and Save Locally: Edit your tables locally and save them directly to your device, avoiding intricate cloud permission constraints.

Frequently Asked Questions
Why do I get a 401 error with Excel in Power Automate?
A 401 error typically means 'Unauthorized'. This happens when your Power Automate connection loses its authentication tokens, lacks edit permissions for the file, or is trying to access a consumer OneDrive file via Microsoft Graph API.
Does Microsoft Graph support personal OneDrive Excel files?
No, Microsoft Graph provides very limited and unofficial support for Excel workbooks stored on personal (consumer) OneDrive accounts. Moving the file to OneDrive for Business or SharePoint is highly recommended.
How do I ensure my Excel data is formatted as a table for Power Automate?
Open your Excel file, highlight the specific data range you want to extract, go to the 'Insert' tab, and click 'Table'. Ensure your table has a defined name in the Table Design tab so Power Automate can locate it.
Can sharing the Excel file fix the Power Automate permission error?
Simply sharing a consumer OneDrive file does not usually resolve the 401 error. The issue stems from the underlying API limitations regarding personal accounts rather than standard file sharing settings.




