# Error Enumerating files from SFTP Server

**URL:** <https://forum.uipath.com/t/error-enumerating-files-from-sftp-server/227260>\
**Category:** Studio\
**Tags:** error, ftp, activities\
**Created:** [May 29, 2020, 8:44pm UTC](https://forum.uipath.com/t/error-enumerating-files-from-sftp-server/227260 "2020-05-29T20:44:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrera](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jrera/32/177075_2.png) [@jrera](https://forum.uipath.com/u/jrera)\
**Post date:** [May 29, 2020, 8:44pm UTC](https://forum.uipath.com/t/error-enumerating-files-from-sftp-server/227260/1 "2020-05-29T20:44:02Z")

</div>

Hi,  
I’m using UiPath.FTP.Activities to download files from an SFTP site. When I enumerate objects, I’m receiving the following error:

RemoteException wrapping System.NotSupportedException: Unsupported object type encountered.

I have the Input Remote Path using a String variable, and the Output Files using a IEnumerable variable type:

 ![image](https://global.discourse-cdn.com/uipath/original/3X/2/e/2e36ae74bcf9e7b9d1f1c7acd35b069aa2807714.png)

If I change the Remote Path to “/” I receive a “Permisson denied” error, which is expected because I don’t have access to the root of the SFTP server.

I’ve tried testing using a different SFTP site ([test.rebex.net](http://test.rebex.net)) and I’m able to enumerate files without any issues.

The provider is using Core FTP and they have indicated that they see me successfully listing the files in the directory just before I receive the error message at the Enumerate objects step. Any thoughts as to what would cause this error? It’s puzzling that it works for one site, but not the other.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![jrera](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jrera/32/177075_2.png) [@jrera](https://forum.uipath.com/u/jrera)\
**Post date:** [May 29, 2020, 8:55pm UTC](https://forum.uipath.com/t/error-enumerating-files-from-sftp-server/227260/2 "2020-05-29T20:55:23Z")

</div>

I’m able to connect via FileZilla with the same account info and view and download files from this same site without any issues. If I explicitly list the path and a filename in Remote Path, the file enumerates without any issues (and then I’m able to subsequently run through my For Each loop to download the file). But if the Remote Path variable contains just the directory name, no luck–the “Unsupported object type encountered” error occurs.

---

<div class="post-metadata">

**Author:** ![ram\_sakthi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ram_sakthi/32/270143_2.png) [@ram\_sakthi](https://forum.uipath.com/u/ram_sakthi)\
**Post date:** [May 24, 2023, 4:25am UTC](https://forum.uipath.com/t/error-enumerating-files-from-sftp-server/227260/3 "2023-05-24T04:25:11Z")

</div>

Hi, I face this exact error as well when trying to enumerate files. Replicating the automation with Power Automate’s equivalent activities works, which indicates that it is not a STFP server issue. The function also works with UiPath older FTP activity.

Would appreciate if someone from UiPath can investigate this. Thanks.

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [February 10, 2024, 2:10pm UTC](https://forum.uipath.com/t/error-enumerating-files-from-sftp-server/227260/5 "2024-02-10T14:10:26Z")

</div>

Hi @ram_sakthi

Could you please share the versions of the FTP package where this works for you?

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [October 21, 2024, 6:31pm UTC](https://forum.uipath.com/t/error-enumerating-files-from-sftp-server/227260/6 "2024-10-21T18:31:17Z")

</div>

This issue is most likely related to the specific SFTP server. For anyone who finds this topic - please provide what server are you using and its basic configuration.

I shared more details about the root cause over here:

> [@FTP - Enumerate Object Activity Giving Error](https://forum.uipath.com/t/ftp-enumerate-object-activity-giving-error/764742/9):
>
> @anoop.mohandas Do you happen to know what is your FTP server hosted on? Is it a Windows or a Linux server? And what would be the provider? I am trying to reproduce this and the only way I can is by using a Linux server and a file type that isn’t supported, so not a file, not a directory and not a syslink. I was not able to reproduce this on a Windows server yet, but I would assume that the reason is the same. Currently the FTP activity package only supports the following types of objects: n…
