Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

Help with Metadata Error on Renaming Flow

(0) ShareShare
ReportReport
Posted on by 629
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.
  • Suggested answer
    David_MA Profile Picture
    David_MA 8,929 on at
    Help with Metadata Error on Renaming Flow
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard