Skip to main content
Community site session details

Community site session details

Session Id : fvM6D3PSYOJwJWalpqpdwl
Power Automate - Using Connectors
Answered

Bad Request - Error in query syntax.

Like (0) ShareShare
ReportReport
Posted on 31 Mar 2022 17:17:25 by

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

 

 

  • Aydin Profile Picture
    2 on 18 Dec 2022 at 17:43:35
    Re: Bad Request - Error in query syntax.

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

     

  • Community Power Platform Member Profile Picture
    on 07 Apr 2022 at 16:38:08
    Re: Bad Request - Error in query syntax.

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

  • Verified answer
    v-jefferni Profile Picture
    on 04 Apr 2022 at 06:38:10
    Re: Bad Request - Error in query syntax.

    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
    on 31 Mar 2022 at 17:34:37
    Re: Bad Request - Error in query syntax.

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

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Loading complete