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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard