cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jasond213
Helper I
Helper I

Locked for Shared Use Error When Updating File Properties

I currently have a flow that is based on the trigger: When a new response is submitted (via Microsoft Forms). Within the Form, the respondent attaches an excel file, which is placed in a Sharepoint group. There is an approval step within the flow, and at the end of the approval, if it is approved, I would like to update the file properties' approval status column to reflect that the file has been approved. Therefore, I added this at the end of the flow, if approved:

 

jasond213_0-1605551634890.png

However, when running the flow I get the following error:

 

The file "xxxx.xlsx" is locked for shared use by xxxxxx@xxxxx.com.
clientRequestId: xxxxxxx
serviceRequestId: xxxxxxx

 

How can I update the file properties/how do I make sure the file is not locked?

1 ACCEPTED SOLUTION

Accepted Solutions
Paulie78
Super User III
Super User III

This is the way https://ibb.co/3dR35xw :

documentLocked.png

Let me know how you get on.

 

View solution in original post

4 REPLIES 4
chsanche
Microsoft
Microsoft

Hi @jasond213 

 

This is by design, if another user has the file locked then Power Automate will not be able to edit it, nor its properties, if the file is getting locked then you will need to wait for a but until the file gets unlocked and you will be able to edit it.

 

Best Regards,

If this post helps you give a :thumbs_up: and if it solved your issue consider Accept it as the solution

Thank you for the reply- however, there are no other users involved. I am the one creating the file, and testing it by myself and it is not working.

abm
Super User III
Super User III

Hi @jasond213 

 

SharePoint Connector Action step Update File Properties authenticated by which user? Is that under your account?



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials
Paulie78
Super User III
Super User III

This is the way https://ibb.co/3dR35xw :

documentLocked.png

Let me know how you get on.

 

View solution in original post

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (98,533)