I’m facing an issue when using the Download Files activity with an SFTP connection in UiPath.
When I try to download a small number of files (e.g., under 100), everything works perfectly. However, when the number of files increases (400–500 files), I get the following error:
Download Files: One or more errors occurred. (An established connection was aborted by the server.)
It seems like the server is dropping the connection when too many files are requested at once. Has anyone else experienced this behavior? Is there a recommended way to download a large number of files from SFTP in a more stable or throttled manner?
Any tips or best practices (looping, batching, delays, etc.) are greatly appreciated!
Thanks in advance!
You could use the activity Enumerate Objects to fetch the files that are available on the SFTP.
Unfortunately I dont see a current activity to download “chunks” of files, so I would think that you have to loop, and download, them one by one by using the Download Files activity.
“Best option” would probably be to initiate dialog with the host, and see if they can change server options regardring your scenario.
Thank you very much for responding to my question. Unfortunately, even after trying the suggestions you shared, I haven’t been able to retrieve the files. When using the Enumerate Objects activity, I encounter the same error, and after retrying, a new error appears as well.
Interestingly, this issue started after migrating the project from Legacy to Windows. In a backup copy I still have of the project in Legacy, I’m able to download all the files without any issues, regardless of the quantity.
No, I have already tried it and it still doesn’t work. In fact, I used Invoke Code and it still doesn’t work. What intrigues me the most is why my previous code is still working when the project is Legacy (regardless of the amount of data), but now with the project being Windows, I have this issue.
What change could have occurred with the FTP activities from Legacy to Windows?