With FTP session activity is not working

Add a With ftp session activity and try to configure it as below (adapt it with your details)

Activity: With FTP session

Credentials:

  • Password: "YOUR_PASSWORD"
  • Username: "YOUR_SSH_USERNAME"

Security:

  • Accept all certificates [v] (if needed, check internally if it is required)
  • Select Use SFTP [v]

Server:

  • Host: "YOUR_DOMAIN_NAME"
  • Port: YOUR_SSH_PORT (without quotes)

Activity: Upload Files:

Input:

  • Local Path: "D:\HomeLab\bla.jpg" → change this with your file to upload
  • remote path: "/var/www/html/public_html" → change this with your remote folder

Options:

  • Overwrite [v]

Use a pem certificate in your FTP activity.

Here is the code from backed for the UiPath.FTP.Activities activity.

<data name="ClientCertificatePathDesc" xml:space="preserve">
    <value>Path to the Private key in PKCS #1 PEM format</value>
  </data>

Reference:

Tutorial:

How to use Pem (privacy-enhanced mail) file as an input for the certificate file in UiPath FTP Activities?

Resolution:

Convert the “.PPK” to “.PEM” file and use the same file in UiPath FTP Activities with the given passphrase. Perform the below steps:

  1. Open Puttygen and click on Load in the Actions section

image

  1. Select the PPK file

  1. The key will get imported as below

image

  1. Enter the Key passphrase (password) and the same value in Confirm passphrase

  2. Then, go to the Conversions menu and select the Export OpenSSH key

  1. Name the private key as xxxxx.pem (It should be a file ending with .pem extension) and save it

  2. Use the same pem file certificate as an input for the certificate file in UiPath FTP Activities.

Try to connect in WinSCP also with the same pem certificate. It is working?


If you have a proxy on the Studio machine, the With ftp session activity will not work.

You can run the below command in cmd.exe to see if you are having a proxy in Studio machine:

netsh winhttp show proxy

If you have a proxy, UiPath dev team developed a prerelease version of UiPath.FTP.Activities that will be included in the next official release of this activity.

UiPath.FTP.Activities.2.4.0-alpha.2791109.nupkg (489.4 KB)


Let us know if the provided information from above helped you.

3 Likes