Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Bad Request - Error in query syntax.

(0) ShareShare
ReportReport
Posted on 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
    Aydin 2 on at
    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."
            },

     

  • 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
    v-jefferni on at
    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.

  • 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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard

Featured topics