File rename base on start word of file

Hello Forum,
I would like to rename file base on start word of file. There will be multiple file inside one folder. For example. If file name is start with “Johny”, I would like to rename to “YesPaPa.xlsx”. I created one UIpath Work Flow and attached, but it is not working. It is something wrong. Could you please someone show me , what wrong at my work flow. Thank you so much in advance. Main.xaml (5.1 KB)


  1. Please check if there are spaces in your file name, if you try to replace it with empty
  2. If there are multiple files starting with Johny in your folder, then it will only generate one file and it will be the last one generated , The previous ones will be overwritten

@WangJidong , Thank you so much for your reply. So you mean, my work flow file (Main.xaml) don’t have any error? Is it correct?