I have a flow that takes data from an Excel file and adds it to a SP List.
After the add to list action completes, I use a Do Until action to move the Excel file to an archive folder. The Do Until tests to see if the Excel file is still locked and when it's not locked, the file is archived.
I get an error (after 6 or 7 minutes) "Action 'Move_file' failed" "Microsoft.SharePoint.SPFileLockException: The file ... is locked for shared use ...".
When I check the 'archive' folder, the file was actually moved correctly. If I look at the flow status history, it says the flow run failed.
Is there any way to modify the Do Until so it doesn't throw the error?
Thanks in advance for any suggestions!