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 / Run excel script timin...
Power Automate
Unanswered

Run excel script timing out - delete rows

(1) ShareShare
ReportReport
Posted on by 4
I'm trying to run a simple script via powerautomate to delete rows in a table however it just times out. Strangely it did work once (I haven't changed anything). The number of rows to delete is about 700.
 
Error: We were unable to run the script. Please try again.
Office JS error: Line 4: Table deleteRowsAt: The request is aborted.
 
Here's the script:
 
function main(workbook: ExcelScript.Workbook) {
    let myTable = workbook.getTable("All_Months");
    let rowCount = myTable.getRowCount();
    myTable.deleteRowsAt(0, rowCount);
}
 
Any help much appreciated!!
Categories:
I have the same question (0)
  • JoeWright Profile Picture
    4 on at

    When directly clicking run script in excel online it had an error/timeout at line 4 yet when I did the same in the desktop app it worked

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

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard