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 / Detecting locked files...
Power Automate
Answered

Detecting locked files in power automate

(0) ShareShare
ReportReport
Posted on by 76
I have been using this method to detect locked files during my power automate workflows.
 
 
This worked great, but I am having trouble with one where the update file properties is inside an apply to each loop. I am looking for advice on how to detect this open file inside this for each loop. I originally set it up exactly like the article said, but I set variable varFileLocked to true if error 400 was found in the apply to each loop. I believe this didn't work because the error occurs in the Update file properties and not in the for each loop itself. I tried referencing the update file properties in the set variable 3 section, but I guess it can't see this action inside the apply to each loop because it didn't work. Here is what my do until loop looks like. Any idea how to detect that file open error inside that apply to each loop?
 
Categories:
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    12,064 Super User 2026 Season 1 on at
     
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 535

Last 30 days Overall leaderboard