web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Bad Gateway Error (502...
Power Automate
Unanswered

Bad Gateway Error (502) - it exceeds the list view threshold??

(0) ShareShare
ReportReport
Posted on by 33

With flow i scheduled 27 rest api call.

The URI is

 

_api/web/lists/getbytitle('listname')/items?$filter=ColumnName eq 'FilterValue'&$top=5000

 

Only 1 of 27 http requests gave me this error:

 

{
 "error": {
 "code": 502,
 "source": "flow-apim-europe-001-francecentral-01.azure-apim.net",
 "clientRequestId": "f6397a9d-aa13-4dfc-b048-3cda740a5260",
 "message": "BadGateway",
 "innerError": {
 "status": 502,
 "message": "The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator.\r\nclientRequestId: f6397a9d-aa13-4dfc-b048-3cda740a5260\r\nserviceRequestId: a221619f-80d0-a000-64a9-05482da35f5f",
 "source": "https://*****.sharepoint.com/sites/****/en/WM/GA/******/_api/web/lists/getbytitle('ListName')/items?$filter=SupplierName%20eq%20'FilterValue'&$top=5000",
 "errors": [
 "-2147024860",
 "Microsoft.SharePoint.SPQueryThrottledException"
 ]
 }
 }
}

 

 
Categories:
I have the same question (0)
  • Rohit Sharma354 Profile Picture
    on at

    Hello,

     

    This error indicates that get items action is timing out due to large number of items retrieved in a minute and throttling.

     

    I can see that you are limiting the columns and record count. Please try doing the same using the get items settings "Limit columns by view" and top count.

     

    Screen1.png

     

    This error can also occur when you have over 20,000 items in the SharePoint list; and for that error, a possible fix is to index all columns used in list view filters,  you can index up to 20 columns or you can also try indexing only the first column in each list view.

     

    Please follow the steps in the following link and let me know if this solves the situation: https://support.office.com/en-us/article/add-an-index-to-a-sharepoint-column-f3f00554-b7dc-44d1-a2ed-d477eac463b0

     

    Hope this helps !

     

     

  • GianGian Profile Picture
    33 on at

    Hi, thanks for your help.

    I followed all of your steps.

    Unfortunately it still not works.

    I did the index of all columns and even reindexed the list

    The issue involves only that specific supplier (name)

    Pretty sure it's not an "issue for large number of items":

     

     Count of Items in the List
    Supplier1487
    Supplier10634
    Supplier11580
    Supplier1239
    Supplier13395
    Supplier14544
    Supplier15272
    Supplier16444
    Supplier17330
    Supplier1840
    Supplier19117
    Supplier2450
    Supplier20307
    Supplier3414
    Supplier4 -ERROR128
    Supplier51
    Supplier632
    Supplier7786
    Supplier8245
    Supplier9181
    TOTAL6426

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard