web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Can't rename file error
Power Automate
Answered

Can't rename file error

(0) ShareShare
ReportReport
Posted on by 24

I keep getting this error when trying to rename a file 

 

The given path's format is not supported.: Robin.Core.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 Robin.Modules.File.Actions.FileActions.RenameSingleFile(FileVariant currentFile, String eventualName, Boolean overwrite, ListVariant`1& result)
at Robin.Modules.File.Actions.FileActions.RenameFile(Variant source, Variant newName, Variant textToAdd, Variant textToRemove, Variant textToReplace, Variant replaceWith, Variant newExtension, Variant customDateTime, Variant seqNewName, Variant startNumberingAt, Variant incrementBy, Variant& renamedFiles, Boolean overwrite, Int32 fileRenameScheme, Boolean newNameKeepExtension, Boolean addTextBeforeName, Int32 newCaseForName, Int32 newCaseForExtension, Int32 dateTimeToAdd, Boolean addDateTimeBeforeName, Int32 addDateTimeSeparator, String addDateTimeCustomFormat, Boolean addSequenceBeforeName, Boolean sequenceUseExistingName, Int32 sequenceSeparator, Boolean usePadding, Int32 paddingLength)
--- End of inner exception stack trace ---
at Robin.Modules.File.Actions.RenameFiles.Execute(ActionContext context)
at Robin.Runtime.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement)

  • Rkv Profile Picture
    Microsoft Employee on at

    If Possible, please share the screenshot of the action configuration.

  • zdavis Profile Picture
    24 on at

    @Rkv 

    zdavis_0-1620828811467.png

     

  • JeroenP Profile Picture
    32 on at

    Hi,

     

    You cannot use the double and foward slash(':' and '/') in file names in general. Also some other characters. Try it without these characters or use allowed characters like '_' and '-'.

     

    JeroenP_0-1620978205186.png

    Kind regards,

    JP

  • Verified answer
    zdavis Profile Picture
    24 on at

    Thanks for the reply. I figured out that automate suggests the time and date formats to you but cannot have any characters in them, unlike the suggestion.

  • extended Profile Picture
    2 on at

    Hi,
    I am transferring data from a Word document to an Excel doc., but I got this error code. Can't rename file and the data I am trying to retrieved from Word doc, transfer to Excel as "Table Cell."

     

    Can anyone explain to me why am I getting this error code? 

     

    Thank you in Advance.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard