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 Apps / Error 502 Bad Gateway
Power Apps
Unanswered

Error 502 Bad Gateway

(0) ShareShare
ReportReport
Posted on by

I am clicking on a button on my Home Screen and I get the error message below after it goes to the PartsScreen. It seems like everything is working but I always get that error the first time I press the button. The error only appears when accessing the app from the browser, not when running it from developer.

 

Here is the contents of the OnSelect for the button...

 

ClearCollect(
 coll_binLocations,
 '[dbo].[view_UCI]' // SQL Server View with 10 columns and approx 15 records
);
ClearCollect(
 coll_binLocations_sub,
 '[dbo].[view_UCIsub]' // SQL Server View with 10 columns and 5 records
);
Navigate(
 PartsScreen,
 ScreenTransition.Cover,
 {PartCat: "A-Plane"} // Variable used to populate a gallery with a SP List as datasource. Approx. 30 records.
)

Here is the contents of the OnVisible for the PartsScreen...

 

UpdateContext({SliderReset: true});
UpdateContext({SliderReset: false})

ERROR

An error occurred on the server. Server Response: Not a valid connector response. returning message as is: { "error": { "code": 502, "source": "msmanaged-na.azure-apim.net", "clientRequestId": "688a8059-068a-47b3-a172-8a7be00e04f2", "message": "BadGateway", "innerError": { "status": 502, "message": "Unexpected Exception : [0]Microsoft.PowerBI.DataMovement.Pipeline.Diagnostics.RuntimeCheckFailedException: Internal error: gatewayAndUserInfo\r\n Template...

 

 

Anyone have any idea what might be causing this?

 

Thanks!

Categories:
I have the same question (0)
  • WPB Profile Picture
    204 on at

    Try to go In the "View" tab -> "Data Source" and refresh the data to see if it works.

    If not, delete it and add it again.

  • bscramling Profile Picture
    on at

    As I mentioned, it doesn't happen in Developer.

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 Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard