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 / Getting a 502 web serv...
Power Apps
Answered

Getting a 502 web server error & JSON

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello working on a vacation app. I came into this webserver error as well as a JSON error. 

 

Attatched is the server error. Data seems to flow just fine, but throws this error. Attatched the function it is trying to use

 

Error Message: 


 
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": "59ed4b56-1a9f-4327-8257-5935babf4ba5", "message": "The response is not in a JSON format.", "innerError": "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
Server Error
\r\n
\r\n
\r\n 502 - Web server received an invalid respon...

 

 

502 Web server.JPG
Patch.JPG
Categories:
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a bit more about your data source used within your app? Is it a SQL Table?

     

    Based on the error message that you mentioned, it seems to tell that there is something wrong with the SQL Table connection added within your app.

     

    The user @hshah has faced same issue with you, please check my response within the following thread:

    https://powerusers.microsoft.com/t5/Common-Data-Service-for-Apps/Powerapp-connected-to-database-with-on-premise-gateway/m-p/285519#M1744

     

    If the issue still exists, please conside submit an assisted support ticket through the following link:

    https://powerapps.microsoft.com/en-us/support/pro

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous are you still receiving this error? Was the above reply helpful? 

     

    @Anonymous 

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Still getting the error. Tech above reached out and has said that it is working by design SQL cannot use those predicts. 

     

     

    Our product team has informed us that this issue is by design and documented in the below link:

     

    https://docs.microsoft.com/en-us/connectors/sql/

    The following data types cannot be used as query option predicates:

    • date
    • datetime
    • datetime2
    • smalldatetime

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard