Hi! Super new to Power Automate, and I'm having some trouble.
I have PDF files that are exported from a software that produces a standard name based on the data from the software, OrdeType LastnameFirstname OrderLocation. I need each of the files to be renamed using a specific string of text OrderNumber in the PDF. I'm having an issue getting it to actually rename the file. It's pulling all the correct info to the assigned variables, it just won't perform the action. It tells me that there's an illegal character in the path, but I can't figure out what it's referring to. The files are stored locally on a Desktop subfolder, not in OneDrive or SharePoint.
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)