SFTP Upload: No such file

Hello!

First time poster here so appologies if I miss anything.

I am using the SFTP.Activities package by Dcunha to upload a file to our local SFTP. Actually a few files using a For Each function but I’ve deconstructed it and made it as simple as possible to try and debug the error I’m getting.

First I did a For Each Item in Directory.GetFiles(“FilePath”)… Upload

Now I’m just doing a single file on my desktop to the SFTP.

The strangest thing is this process worked 2 days ago when I first built it… now its not (don’t know if I forgot to save or what).

Anyways here’s what it looks like:

I’m getting this Upload: No such file

But it doesn’t make sense cause when I do a write line, or check the Input when debugging, the file path works for sure and the file is definitely there.

Please help!

@Kevin_James Did you try uploading the same file from any other location like documents etc

Hi @ushu !

Thank you for your reply!

Yea it was able to work with a normal “Move File” from my desktop to a folder in my C:

Capture

Hey @Kevin_James

I hope you didn’t make any update on the SFTP package right ?

Also a small suggestion on - https://docs.uipath.com/activities/docs/about-the-ftp-activities-pack

Thanks
#nK

Hello @Kevin_James ,

Could you please recheck the path of the file provided and the Config file which you have created?

If both are correct can you try with some different file and verify once.

@Kevin_James I see in the screenshot you are trying to upload the file (CEO.xlsx) which is on the desktop. Place that same file in the documents and change the upload path value in the activity, then execute and see if you are getting the same issue

Also make sure the excel file name does not contain any additional spaces. The excel file name and the one which you are giving in the Upload Path field has to be same

@ushu

I’m not exactly sure what you are meaning, but it seems that any file is able to be recognized using the “Move” Activity.

When I use the SFTP Activity, it doesn’t recognize the file. Even though its in the same specified location.

Surely then since the error is Upload: No such file… it means that the Upload Activity is erroring being able to access the filepath? Since any other activity is able to access the filepath. And the SFTP connection is working.
See screenshot in next post:

@ushu

And again, this was working fine 2 days ago… I restarted my computer to see if that would help (my last resort lol) no luck.
Thank you so much!!

Have you tested to change the Remote Directory Path? Maybe change it to something simple like the root folder "/" (if you have write permission to that folder).

@ptrobot

Thank you it was a filepath issue.

Appreciate it!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.