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
Unanswered

ERROR BAD REQUEST

(0) ShareShare
ReportReport
Posted on by

I got this error on my flow: 

 

HTTP/1.1 400 Bad Request
CONTENT-TYPE: application/json;odata=verbose;charset=utf-8

 

{"error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"Invalid request."}}}
--batchresponse_fe7f85a1-d115-42d2-82bb-59cbe67ca499
Content-Type: application/http
Content-Transfer-Encoding: binary

 

HTTP/1.1 400 Bad Request
CONTENT-TYPE: application/json;odata=verbose;charset=utf-8

 

{"error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"Invalid request."}}}
--batchresponse_fe7f85a1-d115-42d2-82bb-59cbe67ca499
Content-Type: application/http
Content-Transfer-Encoding: binary

Someone knows why?

It's a "Do until" condition:

Gorilla_8_0-1661268136499.png

 

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Gorilla_8  are you getting this error in response of Send HTTP request to SharePoint action, if yes, can you expand that action and share screenshot of it to see the configure parameters in that action.

  • Gorilla_8 Profile Picture
    on at

    @annajhaveri here


    Gorilla_8_0-1661375739619.png

     

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Gorilla_8  so it looks like you are performing some kind of batch operations in SharePoint, can you please elaborate whether you are trying to create/update/delete items from SharePoint list using batch operation? 

  • Verified answer
    Gorilla_8 Profile Picture
    on at

    @annajhaveri 

     

    I found the solution, it was the name of one of the actions

     

    Thanks for the help! 

  • Ahemed Profile Picture
    23 on at

    @Gorilla_8 what is the solution for above ask

  • theacidday Profile Picture
    5 on at

    What the solution???

  • alexa_028 Profile Picture
    63 on at

    Does anyone knows what is the solution and what changes needs to be done for action?
    I am facing similar issue... I did like below but no success:
    Updates:

    actions('settings')?['TrackedProperties']['changeSetGUID']

    Old: 
    actions('settings')?['trackedProperties']['changeSetGUID']
  • alexa_028 Profile Picture
    63 on at

    I am able to solve my issue following the article and recommendation by Will.

    https://www.tachytelic.net/2021/06/power-automate-flow-batch-create-sharepoint-list-items/

    Things I did :
    1. Make sure column names in Sharepoint list and datasource are in same sequence and correct names.
    2. Did the changes as described below:

    Issue: Sharepoint List Display Name vs Web Address Name
    The list name from Settings is used in multiple places. However, the formatting has to be adjusted based on the location it is used. In the batchTemplate the SPList name needs to be regular display name. In the GenerateSPData _metadata the needs to be the web address name. OP tried to help the _metadatafield by adding some replace values for underscores, but that only works if the name never changed.
    If a Sharepoint list is created with the initial name “InitialSharePointName” and then the display name is changed to “New Display Name”, then it will never call the correct webaddress since the webaddress doesn’t change from initial name just like column names.

    Solution to first issue: Add a second row in the Settings and differentiate the sharepoint display name and the sharepoint webaddress name.

    Original Settings Format:
    {
    “siteAddress”: “https://OrgName.sharepoint.com/sites/SiteName/”,
    “listName”: “ExampleListName”,
    “batchSize”: 1000
    }

    New Settings Format:
    {
    “siteAddress”: “https://OrgName.sharepoint.com/sites/SiteName/”,
    “SPListDisplayTitleName”: “(Copy Sharepoint Name from List Settings)”,
    “SPListWebAddressName”: “(Copy list name section from the Web Address section in List Settings”,
    “batchSize”: 1000
    }

    After Changing the settings you have to go into where they are used and update the expressions.
    1. Batch Template – change the output of getByTitle in the PATCH statement to: PATCH @{outputs(‘settings’)[‘siteAddress’]}_api/web/lists/getByTitle(‘@{outputs(‘settings’)[‘SPListDisplayTitleName’]}’)/items(|ID|) HTTP/1.1

    2. Generate SP Data – change the _metadata value field to contain json(concat(‘{“type”:”SP.Data.’, replace(replace(replace(outputs(‘settings’)[‘SPListWebAddressName’], ‘_’, ‘_x005f_’), ‘ ‘, ‘_x0020_’),’-‘,’_x002d_’), ‘ListItem”}’))

    I hope this helps some people because this flow really helped me get what I needed and saved a massive amount of calls.

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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard