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

Getting a 502 web server error & JSON

(0) ShareShare
ReportReport
Posted on by

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

 

 

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    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
    on at

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

     

    @Anonymous 

  • Verified answer
    Community Power Platform Member Profile Picture
    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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard