Hi, last week several of my flows started failing, and they all have in common that the error is thrown when a file is being updated in a SharePoint library. I noticed the same error with
1. The connector "Update file properties"
2. The connector "SharePoint HTTP request" when used to update a file's properties.
The error message is "The file <filename>.docx has been modified by <user ID> on <timestamp>. clientRequestId: <id> serviceRequestId: <id>"
The file is indeed created in the step just before, so maybe the previous action is not completed yet when the new action is run.
I have witnessed the same error in 2 flows now, and as this is typically an action performed at the end of a flow, I did not immediately notice it.
Any ideas on what has caused this to happen?
You need to put some time delay after you create the file before updating it. Working with files from power automate is not instant, and can take up to 6 minutes in some cases.
Excel Connector - Known Limitations
MS Word Connector - Known Limitations
Depending on the type of file being created, you could put a 1 or 2 minute delay after create file.
Another thing to try which I believe helps is to Get File after creating the file. This doesn't necessarily offset the need for time between actions, but I think it helps.
Just because it worked in the past is probably because there were less things in your environment or library, so maybe it was faster, but now needs extra time. Or you could've just been getting lucky. Either way, add delays to help give time for files to be created and updated.