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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / "Excel Online (OneDriv...
Power Automate
Unanswered

"Excel Online (OneDrive)" actions fails frequently but not always

(1) ShareShare
ReportReport
Posted on by 4
A very simple flow that uses "Excel Online (OneDrive)" connector to edit an excel file fails frequently but not always with message that "You do not have permissions to open this file in the browser". Resubmitting the flow as is, without making any change in the flow or the file almost always succeeds. The flow is triggered by an incoming email using "Outlook.com" connector. It gets triggered so that part is fine but later actions involving the Excel Online fail. Actions are "Get a row", "Add a row" and "Update a row". The file is rather small, less than 0.5MB. The number of rows are less than 2500 in each of the tabs. The trigger frequency is also very low, usually 10-15 times a day, typically hours apart, sometimes several minutes apart i.e. not a case of throttling. The error message is always about "missing permissions" which isn't the case as the OneDrive, Excel File, Power Flow all run under my own account, plus the same flow works unattended for some of the time. The flow was written and published about 3 months back and it worked consistently for 2+ months. Then it started failing few times a day, slowly increasing the failure count to now when "most" of the time is fails and only handful occurrence are successful. Resubmitted failed flows run successfully. The full sample error message is
{
    "statusCode": 401,
    "headers": {
        "Cache-Control": "no-store, no-cache",
        "Pragma": "no-cache",
        "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
        "x-ms-request-id": "5ff7xxxx-xxxx-xxxx-xxxx-xxxxxxxx2917",
        "X-Content-Type-Options": "nosniff",
        "X-Frame-Options": "DENY",
        "x-ms-tenant-id": "f8cdxxxx-xxxx-xxxx-xxxx-xxxxxxxx255a",
        "Timing-Allow-Origin": "*",
        "x-ms-apihub-cached-response": "true",
        "x-ms-apihub-obo": "false",
        "Date": "Fri, 11 Oct 2024 15:48:47 GMT",
        "Content-Length": "324",
        "Content-Type": "application/json",
        "Expires": "-1"
    },
    "body": {
        "status": 401,
        "message": "You do not have permissions to open this file in the browser.\r\nclientRequestId: 5ff7xxxx-xxxx-xxxx-xxxx-xxxxxxxx2917",
        "error": {
            "message": "You do not have permissions to open this file in the browser."
        },
        "source": "excelonline-eus.azconn-eus-003.p.azurewebsites.net"
    }
}
 
What could be the reason for this and how could it be troubleshooted/fixed?
 
 
 
 
 
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    52,944 Super User 2025 Season 2 on at
    "Excel Online (OneDrive)" actions fails frequently but not always
    Hi
     
    Without seeing the flow its not super helpful to try to debug but its very possible its simply a timing issue and need to add a delay, but without seeing the run and see the flow its all guesses
  • CU11101551-0 Profile Picture
    4 on at
    "Excel Online (OneDrive)" actions fails frequently but not always
    Here is the screenshot of the flow's first two steps. It fails in the "AddNewRowToRaw" with "Unauthorized" (401) exception randomly. There is no pattern to when or why (notice the execution time in the second screenshot). The email volume is rather small (less than 10 a day, spread through the day). No other process or user touches the file in the onedrive. Needless to say, permissions are already configured successfully or else it won't succeed ever. Without touching the flow or the file, resubmission of failed flow always succeeds.
     
     
    Execution Log:
     
     
    Failure Details:
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard