Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • bscramling Profile Picture
    on at
    Re: Error 502 Bad Gateway

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

  • WPB Profile Picture
    204 on at
    Re: Error 502 Bad Gateway

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard