cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IanWa
Frequent Visitor

Internal server error when trying to update a SharePoint list item in Flow

Hi all,

I've been working on a Flow to update the name of a SharePoint list item, using the step: Send HTTP request to SharePoint.

The problem part of the flow is shown below. 

Server error.jpg

I have validated the site address and URI by putting a combination of the two into Chrome. The resulting xml also provided the format of the metadata type in the body section of the step. FileLeafRef is I believe the internal SP name for 'Name'.

The error that I get - after two retries by flow - is Internal Server Error, followed by Bad Gateway.

Can anyone advise what the problem might be? The service account is set up as an owner on the SP site, and both form and flow are built in the service account.

All advice welcome!

Many thanks,

Ian

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @IanWa ,

 

You should fill items() with item ID instead of File identifier, please replace Id with ID.

You can refer to this similar thread:

https://powerusers.microsoft.com/t5/Building-Flows/Renaming-a-File-in-SharePoint-Online/td-p/176708

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Brad_Groux
Super User II
Super User II

This is likely a syntax or permissions error (as most bad gateway errors are). At first glance the issue may lie in the Id parameter that you are passing into the Uri entry box. 

If you could provide an expanded screenshot of your entire Flow and steps, and of any detailed error messages you're receiving we could likely better assist you. Also, for the best results, you may want to review How to write a good forum post.

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

v-bacao-msft
Community Support
Community Support

 

Hi @IanWa ,

 

You should fill items() with item ID instead of File identifier, please replace Id with ID.

You can refer to this similar thread:

https://powerusers.microsoft.com/t5/Building-Flows/Renaming-a-File-in-SharePoint-Online/td-p/176708

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Kudoed Authors
Users online (3,328)