web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help with Metadata Err...
Power Automate
Suggested Answer

Help with Metadata Error on Renaming Flow

(0) ShareShare
ReportReport
Posted on by 643
My Flow is throwing up errors with the Metadata error when trying to rename a sharepoint file : '__metadata' does not exist on the specified type
 
My HTTP Request is shown below.
 
 
I was follwoing this guide: https://www.youtube.com/watch?v=-Z1_43SWboM&t=816s and it just doesnt work.
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    13,859 Super User 2026 Season 1 on at
    Are you trying to rename a file or flow? If a file, please update the subject of your post. And if it is a file you want to rename, I think you are encountering the same issue I had just yesterday. The key to fixing it is adding /ListItemAllFields to the end of the Uri value.
     
    I am by no means an expert, but the following configuration of the HTTP request worked for me with updating 50 items:
     
     
    The following are the values used above. I used a compose action to generate the new name, so you can replace that with your values.
    • Uri value: _api/web/GetFolderByServerRelativeUrl('@{items('For_each')?['{Path}']}@{items('For_each')?['{Name}']}')/ListItemAllFields
      • Note: I was updating folder names, so I would use your current Uri value but add "/ListItemAllFields" to the end as I mentioned above.
    • Headers: {
        "Accept": "application/json;odata=verbose",
        "X-HTTP-Method": "MERGE",
        "IF-MATCH": "*"
      }
    • {
      "FileLeafRef": "@{outputs('Compose')}"
      }

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard