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 / Trouble Using "When a ...
Power Automate
Answered

Trouble Using "When a file is created or modified (properties only)"

(1) ShareShare
ReportReport
Posted on by 33

Originally posted here: https://answers.microsoft.com/en-us/msoffice/forum/all/trouble-using-when-a-file-is-created-or-modified/4dec6483-25fc-4c0f-a400-6d7d4b2d8576

 

What I have done:

  1. Created a Flow against a Document Library in SPO using the "when a file is created or modified (properties only)" trigger
  2. Included in the flow, an "Update file properties" action

 

Here are the results:

  • If I create the file and close it quickly (from the browser Excel app), the flow is successful in updating the targeted file property
  • If I modify a file and close it quickly (from the browser Excel app), the flow is successful in updating the targeting file property
  • If I wait too long after creating or modifying the file, the flow is unsuccessful with this error, "The file...is locked for exclusive use by..."

 

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.

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @grhsVman 

     

    The lock error you are getting for trigger or update step?

     

    Thanks

  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    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:Annotation 2020-07-13 134925.jpg

     

    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.

     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard