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 / Move files to an archi...
Power Automate
Unanswered

Move files to an archived folder after 7 days

(0) ShareShare
ReportReport
Posted on by 6

I'm trying to move file that is older than 7 days to an archived folder by following online guide. but it keep showing me error..

 

the setting as shown below

 

nickliau_0-1642217518542.png 

nickliau_3-1642217632317.png

 

Below is the error, when i try to run the flow. 

nickliau_4-1642217800483.png

 

Anyone know how to fix this error?

 

thanks

Categories:
  • Ellis Karim Profile Picture
    12,277 Super User 2026 Season 2 on at

    You shouldn't need to use the Get File metadata action. Please try:

    Snag_6c3d1a4.png


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • nickliau Profile Picture
    6 on at

    Hi @ekarim2020 , Thank you for the reply.. 


    I have try your recommended solution.

     

    The flow seems like ran successfully. However, the file do not move to the archived folder. May i know what is the reason?

    nickliau_0-1642380813940.png

    No file moved to the archieved folder after ranning successfully:

    nickliau_3-1642381241826.png

     

    This is the file that i need to move:

    nickliau_1-1642380989623.png

     

    This is how I count the day and limit the entries to the respective folder only:

    nickliau_2-1642381141035.png

     

    Can you assist for the problem?

     

    Thank you.

     

     

  • Ellis Karim Profile Picture
    12,277 Super User 2026 Season 2 on at

    From the runtime output, how many files did the flow try to move?

    For example, 29 files moved:

    ekarim2020_0-1642497025111.png

    Check the runtime for the Move file action to see WHERE the files were moved to

     

    Or if no files were moved you will see:

    ekarim2020_1-1642497056306.png

     

    Please check the date calculation in Get Files query filter.

     

    To simplify the find process you could hardcode a date into the query:

    ekarim2020_2-1642498605325.png

    If the flow works, then look at the data calculations.

     

    Ellis

     

     

     

  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @nickliau 

    Can you post a screen shot of your loop and the actions in the loop?

  • nickliau Profile Picture
    6 on at

    Hi, @ekarim2020 

     

    I tried to run the flow but No file is moving. below is the screenshot:

    nickliau_0-1642552252466.png

     I did try to hardcode the date as per following

    nickliau_1-1642554655839.png

    but still no file is moving

    nickliau_2-1642554734552.png

     

  • nickliau Profile Picture
    6 on at

    Hi @ScottShearer 

     

    Currently my flow action as below:

    nickliau_3-1642555115769.png

     

    nickliau_4-1642555171811.png

     

    Below is how its look like after the flow run:

    nickliau_6-1642555320049.png

     

    Flow ran successfully but actually no file is moving.

  • Ellis Karim Profile Picture
    12,277 Super User 2026 Season 2 on at

    It looks like your Get files action is not returning any values (files):

    Snag_727d63.png

    Please check the filter query and confirm that it does return a valid set of files.

     

    Ellis

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 213 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 151

Last 30 days Overall leaderboard