Hello all,
This is my first time using power automate and I am trying to rename a file based on a clipboardtext. While I can rename the file by adding a datetime to the filename without any issue, when I try to set new name using the clipboard text I get this error:
Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Can't rename file ---> System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
at System.IO.Path.Combine(String path1, String path2)
at Microsoft.Flow.RPA.Desktop.Modules.File.Actions.RenameFilesAction.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.File.Actions.RenameFilesAction.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)
The clipboard copies a line from an excel file and stores it just to rename the file in the folder. It does not contain any special characters that would stop the file from being renamed.
Any help would be appreciated.