cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
abrae005
Kudo Collector
Kudo Collector

502 Bad Gateway when creating Planner Tasks

I've got a flow that creates several tasks in MS Planner. This flow has worked in the past, but this morning it doesn't seem to be working. I have checked all my authorizations on the flow, those are all good, and I have checked that I can log into Planner and see the task board that I'm trying to add items to. I have also re-created the "Create Task" action, and that did not resolve.

 

Here is the error that I'm receiving:

 
Status code
502

 

Headers
request-id
9d48882b-8a26-4d23-b714-0436a31df0d4
client-request-id
9d48882b-8a26-4d23-b714-0436a31df0d4
x-ms-ags-diagnostic
{"ServerInfo":{"DataCenter":"West US","Slice":"SliceA","Ring":"5","ScaleUnit":"001","Host":"AGSFE_IN_12","ADSiteName":"WST"}}
Duration
129.0637
Strict-Transport-Security
max-age=31536000
Timing-Allow-Origin
*
Cache-Control
private
Date
Fri, 30 Mar 2018 13:53:56 GMT
Content-Length
639
Content-Type
application/json
Body
{
  "error": {
    "code": 502,
    "message": "{\r\n  \"error\": {\r\n    \"code\": 502,\r\n    \"source\": \"msmanaged-na.azure-apim.net\",\r\n    \"clientRequestId\": \"762c9477-4b44-403a-ab5f-5a4cec288892\",\r\n    \"message\": \"BadGateway\",\r\n    \"innerError\": {\r\n      \"error\": {\r\n        \"code\": \"\",\r\n        \"message\": \"Error retrieving graph object\",\r\n        \"innerError\": {\r\n          \"request-id\": \"9d48882b-8a26-4d23-b714-0436a31df0d4\",\r\n          \"date\": \"2018-03-30T13:53:56\"\r\n        }\r\n      }\r\n    }\r\n  }\r\n}, clientRequestId: 762c9477-4b44-403a-ab5f-5a4cec288892"
  }
}
 
 
27 REPLIES 27

I have not heard back from Microsoft yet, but my flows started working again, so you might want to give it a shot at this time.

Anonymous
Not applicable

Thanks for the updates, all. I'm up and running as well!

Anonymous
Not applicable

By the way, it looks like Microsoft added in a "testing" feature into the flow design screen. This rollout may be why some features were disabled.

I tested this morning, and my flow is working again as well.
v-yuazh-msft
Community Support
Community Support

Hi @abrae005,

 

The issue is fixed, please take a try to test the flow again.

Please let me know if it works now.

 

Regards,

Alice Zhang

View solution in original post

Thanks all, yes my flows are all working now. They started working last Wednesday morning. 

I'm still getting these issues. All I would say is check the the recycle bin for existing site and clear down. Remove from both stage bins. I have done this and still getting error. Now it happens all the time. Before it was sporadic. I have checked for 502 Bad Gateway and continue in Flow.....against my better judgement. This is dangerous I know, but I have no choice. 

johnguilbert197
Advocate I
Advocate I

Here is the Body Request I am using to create a new SharePoint Site. Did work a few times, but now issues all the time.

 

Site Creation EndPoint: /_api/web/webinfos/add

 

{

'parameters':

          { '__metadata': { 'type': 'SP.WebInfoCreationInformation' },

            'Url':'0520180021',

            'Title':'Project School',

            'Description':'* Short Project Description * ',

            'Language':'1033',

            'WebTemplate':'{FE350FC5-8A39-4EA0-97E5-364741804991}#Media Project',

            'UseUniquePermissions': false

}

}

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (1,221)