cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
takolota
Impactful Individual
Impactful Individual

Batch SharePoint HTTP PATCH Request - Can not find resource for batch$

Hello,

I'm trying to create a template flow for batch updating a SharePoint list with external data. I've successfully built 90% of the flow to attach SP IDs to the external data, formatting it for SP, and creating the lines necessary for each PATCH listed in the batch request. However, when I run the flow, it fails on the HTTP request with the following error:

{
  "status"404,
  "message""Cannot find resource for the request $batch.\r\nclientRequestId: 3f8252ae-470a-4e36-b10c-825b1822fb41\r\nserviceRequestId: f86705a0-50f1-c000-7efa-a0a88c2cfc84",
  "errors": [
    "-1",
    "Microsoft.SharePoint.Client.ResourceNotFoundException"
  ]
}
 
HTTP Request in the editor:
Batch HTTP.png
 
Batch HTTP2.png
 
Does anyone know more about what this error refers to or what I can try to fix it?

I've successfully used this batch set-up for batch create & batch delete operations before. I don't know why it won't work with batch update.

Thank You,
1 ACCEPTED SOLUTION

Accepted Solutions
DamoBird365
Super User
Super User

Hi @takolota 

 

Should your batch be a post, not a patch?

 

Damien

View solution in original post

3 REPLIES 3
DamoBird365
Super User
Super User

Hi @takolota 

 

Should your batch be a post, not a patch?

 

Damien

takolota
Impactful Individual
Impactful Individual

Oh duh!

Each line is set as a PATCH, but the overall request is a POST to create a batch request with each of those lines.
I must have reflexively switched the request to PATCH thinking that I'm making a bunch of PATCH requests.

Thanks Damien,

takolota
Impactful Individual
Impactful Individual

Alright, I finished a batch update with external data template flow.
It's currently set to take data from any Excel sheet (can be modified to use any data-source, including HTTP API requests) and update records in SharePoint with corresponding data. Part of it works like a Vlookup function where it identifies if a row of updated data in Excel has some set values in it and matches it to the SharePoint record with those set values through the SharePoint ID. Then it uses the batch update method to update those SharePoint records.

Explore the flow here: https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Batch-Update-SharePoint-List-With-Extern...

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,154)