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 / Data throttle limit fo...
Power Automate
Unanswered

Data throttle limit for Run Script (Excel connector)? BadGateway error

(0) ShareShare
ReportReport
Posted on by 151

Good first day of the month all

Ran into an issue with Run Script (to run Office JS on an Excel Online file).
One of our flows uses this connector to grab the contents of a six column table, transform some data, then output a JSON that is used to create a CSV. Always works without a hitch.

However, we get the BadGateway error when larger files need to be processed. Usually when the table has more than 200 rows, but of course it is less about the row count and more about the amount of data that is communicated through the connector. I suspect we're the victim of an invisible cloud throttling barrier here. It seems this throttle is set very low for Run Script because a table of 600 rows cannot really be called overkill in my opinion. I further assume that Run Script uses Microsoft Graph in the backend at some point and the limitation is there.

FYI, my licenseSKU is SeededD365. I found this in the JSON of the maker portal. I assume this also impacts my performance profile.

I am looking for a solution.

  1. What is the data limit in Run Script?
  2. How can I best measure the data size before passing it through Run Script?
  3. Are there other ways I can parse my Excel table and create the JSON? Note that looping the table directly in Power Automate is not an option. It is too slow, and I cannot do all data transformations as I can in Javascript/Typescript.
  4. Microsoft uses a lot of different names for licenses. Which one is SeededD365? Is it equal to Dynamics 365?
  5. If I upgrade the account, do I get a better performance profile? If yes, which license gives me the best performance profile?

Thank you

Categories:
  • takolota1 Profile Picture
    4,980 Moderator on at

    I’ve been creating Excel batch actions using office scripts…

    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Batch-Create-Update-and-Upsert-Excel/td-p/1624706

    These can load far more JSON records than a few hundred. The real limitation you’re probably hitting is the timeout or time limit.

    It seems scripts are only allowed to run for like 2 minutes. If you go over then it gives a bad gateway error.

     

    You may need to optimize your script code and/or move more data transformation steps into Power Automate.

     

    But also, it sounds like your usecase could more easily be handled by a dataflow.

    https://youtu.be/8IvHxRnwJ7Q

  • GeorgeCristea1 Profile Picture
    2 on at

    Hello Takolota, I have been trying to Parse JSON into Excel via Office Script, and I run into the same problem.
    If my file has 106 records, the file finishes within 11 seconds. I run 300 records, it times out and doesnt end flow.

     

    +200 it shouldnt have increased the run-time more than 30 seconds... but it just crashes... There are definitely limitations and throttling issues, I believe the post creator was right. Im not sure how to fix it but I will try to see if I can split the JSON file in chunks and run it multiple times... not sure if its possible or how it would react.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard