I want to dump a sharepoint list into an excel file every time it changes. I have set it up as in this post:
Get Items > For each (Value) > Add rows to a talble (Excel for business)
I've connected to sharepoint and selected the file and table. When I run the script I get:
Graph API is unable to acquire or refresh a lock on the file because it is already locked. Please close edit sessions and try again.
When I modify the flow, the table name will often disappear and I won't be able to select the table name again.
What could be the issue here?
Hi @RobinV86 ,
The link you provided could not be checked. Could you share it again?
According to your description, I have set up the flow likes below. However, the issue you mentioned didn’t occur.
The items could be saved from SharePoint list to the Excel table successfully, even the file is open. Besides, the table name won’t disappear.
Do you have any other flows that is also trying to insert data into the Excel table?
Please try to recreate the flow to see if the issue still exists on your side.
Which browser are you using? Please try with a different browser.
I have set it up just like this, but the file lives on our corporate sharepoint (cloud based). It is almost as if the flow is not able to get access (check out) the file on sharepoint.
Hi @RobinV86 ,
Have you shared the Excel file with others?
Please make sure the file is not opened by other users.
Could you try with a difference Excel file to see if the error still exists?
Hi @v-yamao-msft Mabel
I am also getting the same error when, I load the excel file. The tables within that file do not get populated. I receive this exactly same error instead.
As per your suggestions, I have ensured that the file is not shared with any other users and it is not opened by any other application but excel on my laptop.
I have also tried to create another file with exactly same data but same error recurres.
I wrote about this in my blog. Make sure you are not editing the flow in one tab while you are running the flow in another. There are a bunch of other reasons as well that are listed in the blog.
If in some part of your flow updating the file causes the file to be locked, if your using Update File action is some of the actions that might locked your file and take some time to release the file.
Check out the new Process Advisor community forum board!
Check out new user group experience and if you are a leader please create your group
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks