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 / Delete File No Longer ...
Power Automate
Suggested Answer

Delete File No Longer Working in Workflow

(0) ShareShare
ReportReport
Posted on by 12
2024-08-02 - Update:
 
I removed the filtering from the workflow, and it returned no documents from the folder. I changed the workflow to a different folder in the same document library, and it returned a list of files in that folder. Same workflow, same document library, different folder yields different results.
 
It's as if the workflow no longer sees the content of the folder.
 
Any suggestions?
 
 
Original Post:
 
I created a simple automatic workflow (scheduled to run daily at 6:00AM) to delete files in a specific folder of a document library that were created more than 4 days ago. It worked fine for over three months. To my knowledge, nothing was changed. On June 4, 2024, the flow stopped working.
 
Running the file in test mode, I get the following error: ActionConditionFailed The execution of template action 'Delete_File' is skipped: there are no items to repeat.
 
Looking at the "Get files (properties only) action, in the Outputs section under body, I can clearly see the filter parameter is correct - getfileitems?$filter=Created+lt+%272024-07-27 but for some reason, it's no longer seeing files that match the filter.
 
I've attempted to re-create the workflow, but the results are the same.
 
Any help would be appreciated!
 
Flow:
 
 
Get files (properties only)
 
File Query
 
For Each
 
 
Delete File
 
 
Categories:
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at
    The only thing I can think of is that the time zone somehow changed and so its either the format of the DataTime etc has changed.
     
    Do this
     
    1. Do a list files (dont filter)
    2. After it runs, look at a time and grab the JSON
    3. put it in notepad or notepad++ or whatever
    Look for the DateTime format in the Created column
    See if its changed and doesn't match what you have anymore.
     
    that's my guess
    that or you are actually looking in the wrong place because you didn't remember changing where the files go.. I got nothing else ;-) its usually the first one.
     

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard