Hi community,
Anyone who knows how to do this would you please help me?
I am using PAD free version. Here is the flow:

I have retrieved all the unread emails in the RetrievedEmails list. The attachments are downloaded into the targeted folder.
By specifying its property I am able to get the email's subject:
・RetrievedEmails[count].Subject
Attachment file's current path:
・RetrievedEmails[count].Attachments[count]
Attachment file's current name:
・RetrievedEmails[count].Attachments[count].NameWithoutExtension
*count is variable
*there could be more than one attachment
When RenameFiles and an error appears saying file name cannot be changed.
I have tried Display Message to see if variable NewAttachmentName works and it does display the right subject name.
For some reason when used in RenameFiles it didn't work.
Below is the error detail:
---
Correlation Id: 8186355a-d95b-46a8-901d-88fa66876497
The given path's format is not supported.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Can't rename file ---> System.NotSupportedException: The given path's format is not supported.
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)
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)
---
Anyone knows the reason for this error?