Skip to main content
Community site session details

Community site session details

Session Id : LsL+xAywC71e7FngJlbEca
Power Automate - Building Flows
Answered

The step to move all files and folders does everything but fails with error

Like (0) ShareShare
ReportReport
Posted on 7 Sep 2023 13:59:41 by 3

I am building a longer flow but one of the actions in there involves moving all files and folders inside a library to a different library (inside folders). The move completes without any issues but the flow throws an error.

 

Here is a much simpler version of the steps that are throwing the error (even though it moves all files):
move-files.jpg

This flow works fine if there are only files in the source. But if there are folders and subfolders in the library, then the error shows up (even though all folders do move). As you can see the Get File Properties action already does not include nested items so the move action should only run on items in the root of the library (and not have entries for nested items).

 

The error is shown for each folder in the library and just says "Not Found". However, as I mentioned, the folder and all its content moves just fine.

 

I have thought about using the Move Folder action but there can be individual files in the root of the library as well that should be moved.

 

Please advise on how to get rid of the error.

 

  • Verified answer
    wskinnermctc Profile Picture
    6,517 Moderator on 07 Sep 2023 at 15:06:40
    Re: The step to move all files and folders does everything but fails with error

    Could you put in a Condition control and check the "Is Folder" property of each?

    Is Folder is true then Move Folder.

    Is Folder is false then Move File.

     

    Condition - Is FolderCondition - Is Folder

     

    This way you are using the correct action for the type of file/folder.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete