AnsweredAssumed Answered

ODATA Execution Error Code: 502

Question asked by mahesh.c.nair087143 on Nov 9, 2016
Latest reply on Jan 4, 2018 by mmorthala189353

Hi experts,

   I am running the below Position Odata query in our SF prod instance and getting the below error:$format=json&$select=effectiveEndDate,employeeClass,cust_OvertimeE… 


[EXCEPTION] ODATA Execution Error Code: 502 We're Sorry...but the server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request (error code 502)


Query fetches some records everytime (as I can see in Log, as well as execution), but fails to complete it and errors out in the middle.

When I checked the Odata API Audit log, I found the below error :

"code" : "COE_GENERAL_SERVER_FAILURE", "message" : { "lang" : "en-US", "value" : "Failed to retrieve result with given criteria."

Any help in identifying the issue is highly appreciated.
PS: Same query is running fine in other SF instances.

Thanks in advance,