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 / Cannot Rename File wit...
Power Automate
Unanswered

Cannot Rename File with comma and space

(0) ShareShare
ReportReport
Posted on by 2

Hello there,

 

I am new to power automate desktop. I am trying to rename a bunch of files but having issues asking Power Automate to name it in the format I require. 

 

I need to rename files as LASTNAME, Firstname. I have managed to create a flow that can extract the file name and convert to the format I need but the problem happens during the renaming of the file. I have realized that power automate cannot rename the file when there is a comma followed by a space (ie: "xxx, xxx"). And there is no error when I run the flow. The flow completes but the file will not be renamed.  

 

I have tried running a one-line flow just for renaming and when I specify a name with comma followed by space, power automate will just not rename the file but complete the flow. Other format works for renaming such as comma alone, space alone, underscore and space. 

 

Have anyone else encountered this issue? Is there any explanation to it or am I doing something wrong. Please advice and thank you all. 

 

I have the same question (0)
  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    It works. Could you please share your PAD script? I used it "xxx, xxx" and it got renamed to other name. Please correct if I am missing anything.

  • VJR Profile Picture
    7,635 on at

    True, it works fine for renaming with a comma and a space.

    Hope you are giving the right parameters in the Rename action.

     

    VJR_0-1658811714073.png

     

  • ms2GURU Profile Picture
    2 on at

    Thank you Ankesh for your reply. After reading it I did some additional tests and figured out that PAD is not allowing me to rename the file with the same name but a different case. (i.e.: XXX, XXX to XXX, Xxx). Initially, I was not getting errors because the file I was renaming was in a USB stick but once I retried the flow with the file located on the desktop, I got the "can't rename file" error. 

     

    Finally, I figured that to rename the file with a different case, I had to rename the original file to something else before renaming it again with the correct name. This is the solution that worked for me. Let me know if another method exists. Thank you again.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 386

#2
Valantis Profile Picture

Valantis 342

#3
Haque Profile Picture

Haque 336

Last 30 days Overall leaderboard