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 / Bad Gateway error when...
Power Automate
Answered

Bad Gateway error when using Flow

(0) ShareShare
ReportReport
Posted on by 35

I have a flow that moves newly created files on OneDrive/Sharepoint to an FTP.  It's run smoothly for days but failed today with the following error 

 

{
"error": {
"code": 502,
"source": "flow-apim-msmanaged-na-centralus-01.azure-apim.net",
"clientRequestId": "2675e2de-8acb-4b23-b97d-8dd7770993a9",
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "The attempted operation is prohibited because it exceeds the list view threshold.\r\nclientRequestId: 2675e2de-8acb-4b23-b97d-8dd7770993a9\r\nserviceRequestId: c855a89f-3008-b000-d6d9-a97053d8193e",
"source": "#####################################/GetFolderByServerRelativePath(decodedUrl=@p)/Files?$filter=TimeCreated%20ge%20datetime'2021-02-05T07:48:29Z'&$orderby=TimeCreated,Name&@p='%2fsites%2f####################################################################'",
"errors": [
"-2147024860",
"Microsoft.SharePoint.SPQueryThrottledException"
]
}
}
}


BadGateway, 502, Microsoft.SharePoint.SPQueryThrottledException

 

cfnwfwmd_1-1612547754407.png

 

 

cfnwfwmd_0-1612547562301.png

 

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

    Hello @cfnwfwmd,

     

    In reviewing your post. The error you are receiving sounds like you have exceeded the List/Library View threshold and have been blocked. This is because there is a view threshold of 5000 items in a view.

     

    With the information provided my suggestion would be to evaluate the limits here: SharePoint limits - Service Descriptions | Microsoft Docs, and determine if you need to remove some of the items in the library, and/or determine if you want to setup indexing to assist with the views.

     

    Here are a couple of links that may help with creating indexes and managing large lists/libraries:

    Add an index to a list or library column - SharePoint (microsoft.com)

    Manage large lists and libraries - SharePoint (microsoft.com)

     

    Hopefully, this helps! 😊

     

    Regards,

    Kristie

    Community Support Team

     

    If this post helps, then please click on the "Accept it as the solution" to help the other members find it more quickly.

    If you would like to create a ticket with Microsoft Customer Support here is a link on how to do so: Get Help + Support - Power Platform | Microsoft Docs

  • cfnwfwmd Profile Picture
    35 on at

    Thank you! 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard