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 when tryin...
Power Automate
Answered

Bad Gateway when trying to access sharepoint list using REST API

(1) ShareShare
ReportReport
Posted on by 2

i am using Power automate to getting data from sharepoint list without using REST API directly.

 

recently i have a requirement to use REST API to perform aggregate function sum and average the SharePoint list column.

 

Following is the sample flow i did

summercoke77_1-1613727649578.png

 

i used the send an HTTP request to sharepoint in automate instead, see below.

 

summercoke77_0-1613727581646.png

 

but when run process gets stuck in send an http request to SharePoint step.

and following is the error message

summercoke77_2-1613727751463.png

 

i tried to create a new list with simply two column list also same error.

 

I create a simple list in another site also i ran into same error.

 

what do i missed here ?

 

any pointer is  very very much appreciated and many thanks in advance. ...

 

 

Note : the flow will keep running for long time and will required to cancel the running. it just wont timed out or throw a run time error other than the bad gateway message i shown above.

Categories:
I have the same question (0)
  • Verified answer
    Gopala_Krishna Profile Picture
    1,495 on at

    @summercoke77 

    This usually happens when there is an error in the query syntax that we are trying to pass, or we have misconfigured the data when passing the query.

     

    I suggest to please check the data present in the action body of the "Send HTTP request to SharePoint" action and check if you have misconfigured or entered an incorrect input.

     

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    if the information shared helps you, please consider giving a thumbs up 👍 and mark solution as resolved

  • brooksg23 Profile Picture
    2 on at

    @summercoke77 did you figure out what syntax you had incorrect that was invoking the bad gateway error message? I am facing a similar problem. Thanks in advance!

  • bassiekb1983 Profile Picture
    2 on at

    In my scenario the BadGateway error message was caused because of a column validation on that list. The value in that column did not meet the column validation, hence the Bad Gateway 502 error. 

     

    bassiekb1983_0-1657568067424.png

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard