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 / 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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard