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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / OneDrive File Deletion...
Power Automate
Unanswered

OneDrive File Deletion - File locked

(0) ShareShare
ReportReport
Posted on by

Hey guys,

 

I use One Drive to save a temporary file downloaded with the Sharepoint Action. This file is then loaded into the flow with the Excel Action. 

Powerautomate.PNG

 

Unfortunately, the flow fails because of the "Delete file" action with the following error message: "The resource you are attempting to access is locked". To compensate for this, I added a Time delay, which waits 5 minutes before deleting this file. The issue started to happen only recently, which I suppose could be triggered by the Excel file loaded being bigger than previously.

 

Does anyone know how to make this a more reliable flow, or had the same issue and solved it? I already use a Try Block which handles the Deletion Action when it fails, but I would prefer the deletion to work normally.

Categories:
I have the same question (0)

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard