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 / Could not find a part ...
Power Automate
Answered

Could not find a part of the path

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am currently in the process of renaming 187 files in a folder. 54 files were renamed without any issue in the format needed. But the rest of the 121 files do not get renamed. I get the following error:

 

Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Folder doesn't exist ---> System.IO.DirectoryNotFoundException: Could not find a part of the path.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
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)

I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    pkositz_0-1659035373664.png

     

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    To troubleshoot, I would recommend creating a list up by your "Get files..." action, and then in your loop, add to the list TextList[6], and see what values you are getting.

    I'm wondering if there are some invalid characters or slashes that it is finding?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It continued to work if I took the renamed files out of the folder and transferred it to a different one and ran the flow again.  

  • Verified answer
    Pavel_NaNoi Profile Picture
    1,074 on at

    Rename files & its other similar actions are pretty unstable at the moment with for each loops I feel like, just try doing OCR of a file followed by any file action inside one, it won't work.

     

    In your case though I think what might've happened is that it extracted the same name twice, thus you had two files with the same name in the same file and something broke, not 100% sure on that though, its hard to tell as you have to think from File Explorer's perspective on this, not PAD's

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard