web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Receiving 401 error wh...
Power Automate
Answered

Receiving 401 error while opening the onedrive document in flow.

(0) ShareShare
ReportReport
Posted on by
I have created a flow in power automate, it opens the excel document from the onedrive account through the excel(onedrive) package and do the update, add or whatever we make up. It works fine for two to three runs, then throwing the 401 error. Don't know why! Also, if i manually resubmit the flow, then its working fine again. For the reference, I attach the Snapshots here. Please check and do the needful and also feel free to ask for any additional info needed.
Screenshot_2024-12-31-23-04-33-36_40deb401b9ffe8e1df2f1cc5ba480b12.jpg
Categories:
I have the same question (0)
  • Verified answer
    Gopala_Krishna Profile Picture
    1,495 on at
    This could be occurring due to multiple reasons and I request you to try the following steps if these may help with a resolution to the problem
     
    1. Re-authenticate the onedrive connection in Power Automate portal (Connections) tab
           Go to Data > Connections in Power Automate.
           Find the OneDrive for Business or Excel connection.
           Re-authenticate by entering your credentials, and then test the flow to ensure it’s working properly
    2. Try setting up a re-try policy on the flow
           Select the Excel action.  
           Go to its Settings (ellipsis ... > Settings).  
           Set retry to exponential interval (e.g., 3 retries at a 10-second interval PT1M (refers to a 1 minute time interval) like wise you can configure.
    3. File locking
            Minimize file edits to avoid unnecessary locking.
            Alternatively, copy the file to a temporary location, update it, and move it back.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard