Re: Existing flow to just copy Sharepoint folders is taking 30+ minutes per step
It seems to happens after a failure. For example, a folder with the same name exist then the copy folder will take forever to execute. Then for the subsequent run, it will take forever. If I cancel it, it simply won't run until xxminute and will get the error
"status": 400,
"message": "The source folder 'file location' is already part of another copy/move operation\r\nclientRequestId: "
this errors keeps happenning a while (likely 30minutes)
Then, after that it will be fine and fast again. That makes no sense to me. It is driving me nuts. If anyone has any idea

retry is set to fixed interval, count : 3, interval PT15S
I added an action timeout of PT1M30S
--
I think that the copy folder can get stuck if the previous copy folder failed because I believe the folder stays "locked" and is in a queue waiting to be copied or something.
This should not happens. If the copy folder fails because a folder with the same name already exist, then, it should exit the copy/move operation queue
The solution would be to validate that a folder with the same name doesn't already exist, of course. but in case of error, you are screwed for a while
---edit
Even when it succeed, it might still take forever on the next run. This makes no sense. The last runs I got that is only for the copy folder action(the folder contains 7 empty subfolders and thats it)
- feb21rst 2024
- 41minutes (the rest of the flow takes 2seconds)
- 04minutes (the rest of the flow takes 2seconds)
- 2hr08minutes
- 1hr07minutes
- 1h28minutes
- feb22 2024
- 0minutes 19sec... (0.2% of the time of the longest run yesterday) just why?
something is very wrong here.