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 / Rename a file in file ...
Power Automate
Unanswered

Rename a file in file system

(0) ShareShare
ReportReport
Posted on by 115

I have a simple Flow that is triggered when a file is created in a file system folder.

I want to rename this file and make it upper case.

 

However, when the Flow runs it fails on the rename step with:

"The requested action could not be completed. Check your request parameters to make sure the path '\\\\server\\000000 Temp Property Compliance Documents\\EICR\\C365/LingfieldAv_D101 - 18.11.20 - DPN18C_22249441.pdf' exists on your file system."

 

I don't know if the forward slash is causing issues, but it's not something I've specified in the path.

 

The rename expression is: 

toUpper(triggerOutputs()?['body/DisplayName'])

and it does work if I hard code the new name.

 

But in the step, it shows that the new name for the file looks ok:

New name: MAGNOLIACT_D31 - 28.10.20 - DPN18C_22210997.PDF

 

flow rename file.png

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @DuncanIVH 

     

    Rename file action only works if the file name is different and not exists. In your case file already exists.  You could use Get File content using path. Then delete the current file and create the file name with upper case.

     

    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

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 840

#2
Valantis Profile Picture

Valantis 661

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard