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

Notifications

Announcements

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:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,681 Super User 2025 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
    11,681 Super User 2025 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,270 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
    11,681 Super User 2025 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard