
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
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