Originally posted here: https://answers.microsoft.com/en-us/msoffice/forum/all/trouble-using-when-a-file-is-created-or-modif...
What I have done:
Here are the results:
Obviously, this suggests that the file is "locked for exclusive use" while I have it open. This also suggests that the flow doesn't kick off immediately. If I close the file before the flow kicks off, the flow can work because it is not locked. If the file is still open, the flow can't be successful.
If my suggested conclusions are valid, WHAT IS THE POINT OF THE "When a file is created or modified (properties only)" trigger? In common workflows, a user is going to create a new file and then leave it open in the browser. The file will always be locked and actions that update file properties will NEVER WORK.
Solved! Go to Solution.
Hi @grhsVman,
"When a file is created or modified (properties only)" is a pop trigger, once a new file is created or modified in the SharePoint library, it will trigger the Flow. When you editing the Excel file in SPO, the file will save automatically, it means though you haven't put all data into the Excel file, the Excel file will save automatically to make the Flow be fired.
And the update file profiles action should make sure the file is available, it shouldn't be opened or it will fail.
As a workaround, if you want to update the file profiles after you create a file or modify a file, you could create a delay action to make sure the user has enough time to edit the file, for example:
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.
Hi @grhsVman
The lock error you are getting for trigger or update step?
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @grhsVman,
"When a file is created or modified (properties only)" is a pop trigger, once a new file is created or modified in the SharePoint library, it will trigger the Flow. When you editing the Excel file in SPO, the file will save automatically, it means though you haven't put all data into the Excel file, the Excel file will save automatically to make the Flow be fired.
And the update file profiles action should make sure the file is available, it shouldn't be opened or it will fail.
As a workaround, if you want to update the file profiles after you create a file or modify a file, you could create a delay action to make sure the user has enough time to edit the file, for example:
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.
User | Count |
---|---|
88 | |
37 | |
25 | |
13 | |
13 |
User | Count |
---|---|
120 | |
55 | |
36 | |
24 | |
21 |