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 Automate - Building Flows
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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard