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 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"
}
}

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics