Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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!!
  • JoeWright Profile Picture
    4 on at
    Re: Run excel script timing out - delete rows

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow