# FTP Activities - Enumerate Objects

**URL:** <https://forum.uipath.com/t/ftp-activities-enumerate-objects/776141>\
**Category:** Activities\
**Tags:** question, ftp, activities\
**Created:** [October 28, 2024, 5:13pm UTC](https://forum.uipath.com/t/ftp-activities-enumerate-objects/776141 "2024-10-28T17:13:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![VimalrajMoorthi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vimalrajmoorthi/32/177297_2.png) [@VimalrajMoorthi](https://forum.uipath.com/u/VimalrajMoorthi)\
**Post date:** [October 28, 2024, 5:13pm UTC](https://forum.uipath.com/t/ftp-activities-enumerate-objects/776141/1 "2024-10-28T17:13:01Z")

</div>

Hi, I am getting following error when try to get the files in a folder. but when try to get the list of folders it works. but fails when there is a file in a folder

Enumerate Objects: One or more errors occurred. (Unsupported object type encountered.)

---

<div class="post-metadata">

**Author:** ![pikorpa](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pikorpa/32/548059_2.png) [@pikorpa](https://forum.uipath.com/u/pikorpa)\
**Post date:** [October 28, 2024, 5:20pm UTC](https://forum.uipath.com/t/ftp-activities-enumerate-objects/776141/2 "2024-10-28T17:20:05Z")

</div>

Hey @VimalrajMoorthi  
check these topics first:

> [@FTP - Enumerate Object Activity Giving Error](https://forum.uipath.com/t/ftp-enumerate-object-activity-giving-error/764742):
>
> I am automating the process of downloading/uploading files from an FTP server. I am using an FTP activity, and the FTP session was connected to the Directory Exist activity first, and I got the correct response. I need to iterate through each file in the directory, so I used Enumerate Objects and its giving below error. “Enumerate Objects: One or more errors occurred. (Unsupported object type encountered.)” Any help is much appreciated

> [@'Enumerate Object' activity under FTP package is not working](https://forum.uipath.com/t/enumerate-object-activity-under-ftp-package-is-not-working/114710/5):
>
> Sorry for late response. I was checking your issue. Finally seems that during installation of FTP package a UiPath.FTP name space have not installed automatically. Please go to Imports tab, then type “UiPath.FTP” and click it. [image] This should eliminate the error with variable.

---

<div class="post-metadata">

**Author:** ![VimalrajMoorthi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vimalrajmoorthi/32/177297_2.png) [@VimalrajMoorthi](https://forum.uipath.com/u/VimalrajMoorthi)\
**Post date:** [October 29, 2024, 8:41am UTC](https://forum.uipath.com/t/ftp-activities-enumerate-objects/776141/3 "2024-10-29T08:41:16Z")

</div>

![An error message in a UiPath project indicates "Enumerate Objects: One or more errors occurred. (Unsupported object type encountered.)" under the "Imported namespaces" panel. (Captioned by AI)](https://global.discourse-cdn.com/uipath/original/4X/4/d/1/4d108c0fe2250f47b7ecaed483c37917745a9657.png)  
UiPath.FTP is already exists in the import window

---

<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 29, 2024, 9:13am UTC](https://forum.uipath.com/t/ftp-activities-enumerate-objects/776141/4 "2024-10-29T09:13:38Z")

</div>

Hi @VimalrajMoorthi

Could you please share what server you are using?

As you will see in my comment below, we struggle a bit to reproduce this:

> [@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…

The activity supports by default Files, Directories and Links, and anything other than this that is present in the folder will throw this error.

It would help us a lot to understand what objects could be causing this, but the information gather so far suggest that it only occurs for some specific type of SFTP servers.

---

<div class="post-metadata">

**Author:** ![VimalrajMoorthi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vimalrajmoorthi/32/177297_2.png) [@VimalrajMoorthi](https://forum.uipath.com/u/VimalrajMoorthi)\
**Post date:** [October 29, 2024, 10:54am UTC](https://forum.uipath.com/t/ftp-activities-enumerate-objects/776141/5 "2024-10-29T10:54:17Z")

</div>

I created a new folder and placed a sample text file in the folder. still it is throwing same error.

---

<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 29, 2024, 12:06pm UTC](https://forum.uipath.com/t/ftp-activities-enumerate-objects/776141/6 "2024-10-29T12:06:12Z")

</div>

This means that there is something else that is unique about your setup that this activity cannot handle.

Would you be able to share the name and the version of your SFTP server (is it SFTP?), and some details whether it is a Windows or a Linux one, and hopefully also a view of the folders and their permissions? (maybe via a third party tool)

---

<div class="post-metadata">

**Author:** ![dokumentor](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/dokumentor/32/459286_2.png) [@dokumentor](https://forum.uipath.com/u/dokumentor)\
**Post date:** [October 29, 2024, 12:40pm UTC](https://forum.uipath.com/t/ftp-activities-enumerate-objects/776141/7 "2024-10-29T12:40:27Z")

</div>

If you access to this FTP/SFTP server using a client (for example Filezilla or WinSCP) and same credentials. Are you able to list the content of the target folder?

---

<div class="post-metadata">

**Author:** ![VimalrajMoorthi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vimalrajmoorthi/32/177297_2.png) [@VimalrajMoorthi](https://forum.uipath.com/u/VimalrajMoorthi)\
**Post date:** [October 29, 2024, 2:54pm UTC](https://forum.uipath.com/t/ftp-activities-enumerate-objects/776141/8 "2024-10-29T14:54:19Z")

</div>

Yes, I am able to read and write the files and folders using Filezilla

---

<div class="post-metadata">

**Author:** ![VimalrajMoorthi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vimalrajmoorthi/32/177297_2.png) [@VimalrajMoorthi](https://forum.uipath.com/u/VimalrajMoorthi)\
**Post date:** [October 29, 2024, 2:56pm UTC](https://forum.uipath.com/t/ftp-activities-enumerate-objects/776141/9 "2024-10-29T14:56:35Z")

</div>

Currently I don’t have these details, Because this sftp configured on Clients server
