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 Platform Community / Forums / Power Automate / Bad Request - Error in...
Power Automate
Answered

Bad Request - Error in query syntax.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

So, I am making a flow to create a new task in planner when an email is sent with an especific subject. In my flow there is a conditional for when the email has an attachment, or some attachments, and when this is true, it creates a folder at sharepoint then retrieves the link of every attachment in this folder and put it as an attachment of the task. There is just one problem, and it is when I try to update the task details, it doesn't work. The error message is: "Bad Request - Error in query syntax.". What can I do? 

Obs: I am doing an adaptation of this flow Create Planner Task and Include Attachments From O... - Power Platform Community (microsoft.com), because I need some extra features, but this part I followed exactly as it demands.

error message when testing the flowerror message when testing the flow

the part of the flow where the error occursthe part of the flow where the error occurs

Overview of the flow.

brkuvasney_3-1648746873866.png

 

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I already solved it. It was just an error when selecting the task to update the details!

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Glad to know you have fixed the issue. Was the task id wrongly selected from dynamic contents?

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, it was exactly this! I will mark your answer as the solution because it can helps other people. Thank you!!

  • Aydin Profile Picture
    2 on at

    When I try to create a lead record , I am getting below error. Is anyone know how to solve?

     

    Aydin_0-1671385272778.png

     

     
        "statusCode"400,
        "headers": {
            "Pragma""no-cache",
            "x-ms-request-id""2e9b63f1-aeec-43ed-a773-3ee16c92d188",
            "Strict-Transport-Security""max-age=31536000; includeSubDomains",
            "X-Content-Type-Options""nosniff",
            "X-Frame-Options""DENY",
            "Cache-Control""no-store, no-cache",
            "Set-Cookie""ARRAffinity=ca7c46c3c31662c75d55b74e76f40f531eebe8abea76034cc43fa51d9c4747f3;Path=/;HttpOnly;Secure;Domain=commondataservice-ea.azconn-ea.p.azurewebsites.net,ARRAffinitySameSite=ca7c46c3c31662c75d55b74e76f40f531eebe8abea76034cc43fa51d9c4747f3;Path=/;HttpOnly;SameSite=None;Secure;Domain=commondataservice-ea.azconn-ea.p.azurewebsites.net",
            "Timing-Allow-Origin""*",
            "x-ms-apihub-cached-response""false",
            "x-ms-apihub-obo""false",
            "Date""Sun, 18 Dec 2022 17:30:54 GMT",
            "Content-Length""287",
            "Content-Type""application/json",
            "Expires""-1"
        },
        "body": {
            "status"400,
            "message""Bad Request - Error in query syntax.",
            "error": {
                "message""Bad Request - Error in query syntax."
            },

     

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

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 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard