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 Apps / Flow created excel fil...
Power Apps
Answered

Flow created excel file in SharePoint, but keeps it open.. locking and giving a 423 error, why?

(0) ShareShare
ReportReport
Posted on by 255

First I create a SharePoint file and an excel table:

ChannelDevMike_0-1672928711576.png

Then I am checking to see if the items were already created, a false means that there's no new items to add rows. True would add the rows, then switch a column stating that the row has already been added to a file before. 

ChannelDevMike_1-1672928811868.png

While false, I now need to delete the SharePoint excel file that was created above cause it had no values to add. With that, I get the properties of the files in the entire folder, adding a condition looking for the ID from this property is equal to the itemID from the created file.

ChannelDevMike_2-1672929027628.png

This runs properly and targets the file I want to delete. But then I get a 423 "locked" error. By going to SharePoint, I can see its still being "edited" by the flow when I try to delete the file manually.  I have no clue why that is or where to go to fix this.

*And just for reference, even when it creates the new rows and the flow succeeds, the file is still staying open from the flow. And it will stay open even as days pass. 

Categories:
I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,501 on at

    Hey @ChannelDevMike 

     

    There are two techniques as far as I know by which you can by pass this, there can be more.

     

    1) Send HTTP Request to Sharepoint

    2) Using DoUntil Loop.

     

    Giving links for both:

     

    Send HTTP Request to Sharepoint:

     

    http://www.cleverworkarounds.com/2021/02/21/how-to-clear-annoying-excel-file-locks-in-power-automate/comment-page-1/

     

    Do Until:

     

    https://www.youtube.com/watch?v=wT61iTovrqY

     

    I hope this will help 🙂

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 Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard