cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
carudev
Helper II
Helper II

Error when trying to update a sharepoint list

When I try to update a sharepoint list (which has about 5k items) I have this error in some items. Does anyone know what can it be?

{

 "status": 400,
  "message": "The type SP.ListItemEntityCollection does not support HTTP PATCH method.\r\nclientRequestId: 8f0c408d-24cd-4e15-803d-3460780851aa\r\nserviceRequestId: 27d1bf9f-704a-0000-b7cf-3c9b6f1350d4",
  "source""https://****************************/_api/web/lists/GetByTitle('PeopleSoft')/items()",
  "errors": [
    "-1",
    "Microsoft.SharePoint.Client.InvalidClientQueryException"
  ]
}
 
PS: When I try with a smaller test list, about 50 lines long, the flow works perfectly.
 
 See my function of updating item:::::
carudev_0-1618930006361.png

Thank you all! 😄

1 ACCEPTED SOLUTION

Accepted Solutions
fchopo
Super User
Super User

Hi @carudev 

In the "Update item rest" action are you using a method "POST" or a "PATCH"? (in the screenshot I see a POST operation).

Could you try using "PATCH"?

Regards,

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

3 REPLIES 3
kierian
Community Support
Community Support

fchopo
Super User
Super User

Hi @carudev 

In the "Update item rest" action are you using a method "POST" or a "PATCH"? (in the screenshot I see a POST operation).

Could you try using "PATCH"?

Regards,

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

Hii!
I am using the POST method, following the automate documentation here:

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-re...

I tried to use the PATCH method and it doesn't work either.

I realized that this failure occurs only in some random items, (I have a total of 6k items to update in the sharepoint), so I created an error handle so that when the item fails, it sends me an email, informing me which item could not be updated. It is not the best solution, but at least it allows the flow to run fully. 😕

Thank you! 😄

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (3,333)