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 / Why would a Excel Scri...
Power Automate
Unanswered

Why would a Excel Script such as myTable.deleteRowsAt(0, rowCount); time out with less than 50 rows in the table?

(2) ShareShare
ReportReport
Posted on by 5

I am trying to run a simple script on Power Automate to delete all rows on a table.

 

There are just a few rows in that table (less than 50), still it times out. If I have even fewer rows, such as 20 rows, it works. How come it work to delete 20 rows and not to delete 45 rows? We are not talking about thousands of rows here! It will always be far less than 500 rows.

 

This is the script that times out:

"function main(workbook: ExcelScript.Workbook) {

let myTable = workbook.getTable("Table1");

let rowCount = myTable.getRowCount();

myTable.deleteRowsAt(0, rowCount);

}"

 

Error Details:

We were unable to run the script. Please try again.

Office JS error: Line 5: Table deleteRowsAt: Timeout

clientRequestId: b98371ca-e968-4f50-a08f-c10082ab9e33

 

It times out after 35s.

Categories:
I have the same question (0)
  • MichelleRanMSFT Profile Picture
    Microsoft Employee on at

    Hi @d_maciel, I'm sorry to hear you're running into this issue - I tested out the script you shared and it seems to work in Power Automate just fine for me (on a simple table with 45 rows). Does the script work if you run it from the Code Editor? If not, could you share a bit more information about your flow and the structure of your table?

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard