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 / Getting 502 BadGateway...
Power Automate
Unanswered

Getting 502 BadGateway error while fetching the share point file

(0) ShareShare
ReportReport
Posted on by 357

Hi Team ,

I am getting an error of 502 BadGateway while fetching the file from sharepoint 
First file got saved successfully 
error has been occuring from second transaction.

please let me know why this happening.

 

getting error in "Get file content using path"

 

Error details are:

 

Correlation Id: f4c06f7b-2202-4180-8c28-733fc7ddbdc0

Additional info:
{
"StatusCode": "502",
"Message": "",
"Body": {
"error": {
"code": "BadGateway",
"message": "The issue encountered for 'india-001.azure-apim.net'; cannot fulfill the request."
}
},
"Headers": {
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"x-ms-islandgateway": "ga000009V",
"x-ms-gateway-clusters": "prdil101cin",
"mise-correlation-id": "f03c9b09-9aaa-405c-af9a-8738d9631ea1",
"x-ms-failure-cause": "Listener",
"x-ms-request-id": "centralindia:a021daf1-86a6-4a6d-912c-7c0fa290e461",
"x-ms-correlation-request-id": "a021daf1-86a6-4a6d-912c-7c0fa290e461",
"x-ms-flow-mobile-ios-version": "1.3.0",
"x-ms-flow-routing-request-id": "CENTRALINDIA:20240405T131223Z:a021daf1-86a6-4a6d-912c-7c0fa290e461",
"x-servicefabric": "NoRetry",
"x-ms-service-request-id": "9bcf4198-6e89-43e5-977a-018d933b3427",
"x-ms-correlation-id": "f4c06f7b-2202-4180-8c28-733fc7ddbdc0",
"x-ms-activity-vector": "00.01.00",
"Server-Timing": "x-ms-igw-upstream-headers;dur=453.9,x-ms-igw-req-overhead;dur=1.6",
"X-Content-Type-Options": "nosniff",
"Cache-Control": "no-store, no-cache",
"Date": "Fri, 05 Apr 2024 13:12:22 GMT"
}
}

I have the same question (0)
  • eetuRobo Profile Picture
    4,579 Super User 2026 Season 2 on at

    I would assume that the file path might be the problem since you said that it works the first time but on the second loop gives you that error. So the first loop has correct file path but for some reason the next loop doesn't have valid file path or something.

    I don't know the specific error but that's my first guess.
    Can you take a screenshot of your flow and of the sharepoint action?

    What if you add retries for the actions "On error" does that help at all?

     

    eetuRobo_1-1712336484774.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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 269 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 184 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard