Showing results for 
Search instead for 
Did you mean: 
Not applicable

Unauthorized error


Currently, my Flow is loops through folders & subfolders and copies files from an FTP directory but for some reason the flow doesn't copy all the files - after I run the flow again, some of the uncopied files are copied and when I run the flow for the third time all the remaining files are copied.  I haven't gotten to the bottom of the why this happens, but there are some "Unauthorized" errors. I ifnd it strange that some files are copied and others aren't. Can anyone help me on this?


Picture of my Flow:
































Heres the FTP directory:

Credentials: guest & guest


Accepted Solutions
Not applicable

Thanks for the help dinesh!


The problem is a limiter on the connector. This loop works as long as I add delays to my Flow.

View solution in original post

Not applicable

A quick fix would be to run the Flow 3-4 times in a row - is that possible?

You could set the run after on the actions.


Also , you could add an Compose action after the failing action. Set the run after to fail, success, time out. Then set the cOmpose value to some of the output from the failing action. Maybe you can get more detail on the error.


I think that you are hitting a limit on the connector only allowing you to connect X times with in Y minutes. Looping willl most likely not resolve the issue. Or maybe some files are not supported or anything else.

Not applicable

Use Do-Until loops to repeat the actions. Enclose all your actions inside the Do-Until scope




Not applicable

Hi Pieter,


Thanks for the response!

Hitting a limit on the connector seems like a feasible culprit since looping didn't resolve the issue.

I added a delay for each step and the performance increased - albeit it's a very inefficient fix. Maybe Flow isn't the best tool for this and I'll have to try some other RPA tool.

Not applicable

Thanks for the help dinesh!


The problem is a limiter on the connector. This loop works as long as I add delays to my Flow.

Hey, @Anonymous!

Thank you for posting to the Flow Community Forum! It appears you have found a solution to your issue! If you feel as though your issue has been solved and you are satisfied with one of the previous replies, please click "Accept as Solution" so that this thread will be marked for other users to easily identify! Thank you for being an active member of the Flow Community!



Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager

Helpful resources

2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,381)