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 Automate - Building Flows
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Bad Gateway when creating Planner Task with an attachment

Posted on by
Hi, 
 
I've been following this tutorial to create a flow that will take a Microsoft Form submission and create a Microsoft Planner Task.
I've set the flow up so that if the 'Scope' with attachment has failures then the Planner Task will still be created, however, I'd ideally like to be able to capture if there are attachments (as well as if there aren't any) but I've been struggling.
 
Recently, I've been getting a bad gateway error when updating a task with an attachment and I can't work out how to solve it.
Can anyone help?

Here's the headers and body of the 400 error:
 
Headers:

{
"Access-Control-Allow-Methods": "GET, PUT, PATCH, DELETE, POST",
"Access-Control-Allow-Origin": "*",
"Access-Control-Max-Age": "3600",
"Access-Control-Expose-Headers": "*",
"Date": "Wed, 24 Jul 2024 15:20:48 GMT",
"Content-Length": "688",
"Content-Type": "application/json"
}
 
Body:
 
{
"error": {
"code": 400,
"message": "Cannot set child value ' !' on Newtonsoft.Json.Linq.JValue:'[\n {\n \"alias\": derek sellar - SQL fundamentals certificate_Derek Sellar 10.pdf\n \"resourceLink\": https://jsainsbury-my.sharepoint.com/personal/derek_sellar_sainsburys_co_uk/Documents/Apps/Microsoft%20Forms/Digital%20Performance%20Request%20Form/Question%201/derek%20sellar%20-%20SQL%20fundamentals%20certificate_Derek%20Sellar%2010.pdf\n]'",
"source": "flow-apim-europe-001-westeurope-01.azure-apim.net",
"path": "choose[17]\\when[1]\\choose\\when[1]",
"policyId": "",
"clientRequestId": "d630ef52-29be-4dcf-9ded-f58f5e589003"
}
}
Screenshot 2024-07-24 163003.png
Screenshot 2024-07-24 163105.png
Screenshot 2024-07-24 163041.png

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard

Featured topics