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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Excel S...
Power Automate
Suggested Answer

Power Automate Excel Script - Run from sharepoint is SLOW

(0) ShareShare
ReportReport
Posted on by
So, i'm running into an issue with a flow I built which was working fine & it will run, but not complete one of the excel scripts from sharepoint.
 
I have checked & we haven't changed any of the connection references, the script, the script's location or the location of the excel file it is looking up against.
 
I tried running the script manually and it works in around 15s, so don't think it's an issue with the script itself.
 
To add confusion, I have a parallel script doing the exact same thing (albeit with a few thousand less rows) that runs absolutely fine and takes 8sec to run. Previously this problem script would take 36 seconds to run, but now wont run even if I leave it for 15min.
 
Has anyone got any ideas as to why one script would run & the other wouldn't and what might've caused the script to suddenly break?
Categories:
I have the same question (1)
  • nico32 Profile Picture
    2 on at
    For the past few months, I've observed the same thing: a script that used to take 30 seconds to run now takes 1 to 10 minutes! There's no difference whether the script is in the workbook, in the flow owner's OneDrive, or in SharePoint. When I run the script from the workbook, opened in Excel or in the browser, the execution time drops back down to 30 seconds. I think Microsoft is intentionally slowing down this kind of job.
  • Suggested answer
    David_MA Profile Picture
    13,280 Super User 2025 Season 2 on at
    You don't show your flow, so I don't know how the script is being used or how you have created the script or which Office Script action you are using to run it. However, if you created an *.osts file for the script, these should be saved to the OneDrive of the owner of the flow in the folder Documents > Office Scripts as noted in Office Scripts file storage and ownership - Office Scripts | Microsoft Learn
     
    If the script is being run on the account of the owner of the flow, I would move the file to this folder in the owner's OneDrive and run it from there to see if that improves performance.

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
David_MA Profile Picture

David_MA 258 Super User 2025 Season 2

#2
trice602 Profile Picture

trice602 205 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 204 Most Valuable Professional

Last 30 days Overall leaderboard