cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Domin
Helper II
Helper II

File is locked for exclusive use by ...

Hi All

I have a flow which has 6 approval steps that work step by step. There is no loops, it updates the properties of the file after each approval.

Issue is that if someone receives the approval, click on the link to file, edits what they need to edit and then leave it open while clicking approve. It throws an error saying -  "file name" is locked for exclusive use by "user". 

Is there any work around for this ? Surely the files can be worked on at the same time with office online ?

 

Thanks All

Dom

7 REPLIES 7
v-litu-msft
Community Support
Community Support

Hi @Domin,

 

Is this a local file? If it is, the file will be locked after the file edit in the past several minutes. As a workaround, you can add a delay action after each approval action, to make the system have time to release the file.

If you use the office online, it can be edit at the same time.

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The file is online, but the flow fails on "update file properties" if its opened by another use. Even myself. It doesnt like when the file is open and the flow get to update the properties. 

I wonder if this is a glitch ?

Is there a way to check if locked or unlock file by force ?!

 

Dom

v-litu-msft
Community Support
Community Support

Hi @Domin,

 

You can use the Check-out and Check-in actions to have a test.

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

I have tried that, i tried to wrap the update properties action between check out and check in but it still fails. 

Not sure what else i can do

ciaolei1
New Member

Same issue.  Did you get a solution for it?

Not yet, there are workarounds using variables butthats when you have about 2 approvals, i have 6 and that would become a monster i reckon ! 


@ciaolei1 wrote:

Same issue.  Did you get a solution for it?


 

Update:
I have used a loop on the update property function. I set a variable globally, then branch it off in the loop, when the update properties is successful (set to success) it will break out the loop and continue, otherwise its set to "failed" and set a delay for 5-10 min to time out after 30 days P30D.

flow.PNG

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,951)