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

Notifications

Announcements

Community site session details

Community site session details

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

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
    12,966 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard