Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

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

(0) ShareShare
ReportReport
Posted on by 11

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

 

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Internal server error when trying to update a SharePoint list item in Flow

     

    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,

  • Brad_Groux Profile Picture
    4,556 on at
    Re: Internal server error when trying to update a SharePoint list item in Flow

    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!

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >