Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

  • Ellis Karim Profile Picture
    10,900 Super User 2025 Season 1 on at
    Re: Move files to an archived folder after 7 days

    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

     

  • nickliau Profile Picture
    6 on at
    Re: Move files to an archived folder after 7 days

    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.

  • nickliau Profile Picture
    6 on at
    Re: Move files to an archived folder after 7 days

    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

     

  • ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: Move files to an archived folder after 7 days

    @nickliau 

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

  • Ellis Karim Profile Picture
    10,900 Super User 2025 Season 1 on at
    Re: Move files to an archived folder after 7 days

    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

     

     

     

  • nickliau Profile Picture
    6 on at
    Re: Move files to an archived folder after 7 days

    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
    10,900 Super User 2025 Season 1 on at
    Re: Move files to an archived folder after 7 days

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,962 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow