Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Sudden 504 using Excel connector - Data well within range

(0) ShareShare
ReportReport
Posted on by 152

I am confused and hoping for someone to explain. I have been receiving .xlsx files without issue, saving to SP and running an Office Script against. The biggest file is 500K rows, 12 columns. Not even 1.3MB

 

Starting today everything is failing with "BadGateway" and "Request to Graph API has timed out." Any advice is appreciated.

 

Running the script outside of PA with the file yields "Range getCell: The request payload size has exceeded the limit. Please refer to the documentation:"

 

    function main(workbook: ExcelScript.Workbook) {

    const currentSheet = workbook.getActiveWorksheet();
    const usedRange = currentSheet.getUsedRange();

    let values = usedRange.getValues();
    let rowCount = usedRange.getRowCount();

    for (let i = rowCount - 1; i >= 0; i--) {
    if (
    values[i][9] == "Apples" ||
    values[i][9] == "Oranges" ||
    values[i][9] == "Ackee" ||
    values[i][9] == "Strawberry") {
    usedRange.getCell(i, 1).getEntireRow().delete(ExcelScript.DeleteShiftDirection.up)
    }
    }
    }

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow