SFTP Smart Services

Overview

Contains multiple Smart Services for interacting with a remote file server via SFTP, FTP, or SCP.  Using these services, an Appian application can be configured to send and receive files, folders, and metadata in a process.  Features support for zlib compression.

Key Features & Functionality

Smart Services included:

  • SFTP:
    • Remove Directory Over SFTP (Basic Credentials)
    • Send File Over SFTP
    • Send File Over SFTP (Basic Credentials)
    • Receive File Over SFTP
    • Receive File Over SFTP (Basic Credentials)
    • Rename File Over SFTP
    • Get Remote Directory Contents Over SFTP
    • Get Remote Directory Contents Over SFTP (Basic Credentials)
    • Create Directory Over SFTP
    • Create Directory Over SFTP (Basic Credentials)
  • SCP:
    • Send File Over SCP
    • Receive File Over SCP
  • FTP:
    • Send File Over FTP
    • Receive File Over FTP
    • Receive Folder Over FTP
  • FTPS
    • Receive Folder Over FTPS
    • Send File Over FTPS (Basic Credentials)

All smart services in the package use Secure Credentials Store.

Anonymous
  • Hi

    Thank you for notifying. We can reproduce the issue. We will work on it and update it asap. Thanks.

  • Hi, 
    Im trying to invoke Send File over SFTP smart service. When I run an instance, after an hour, the node fails with the error message "Connection closed by foreign host" . What could be the possible reason?

  • Hi ,

    1. Please check if the user is having full permissions to access the file/dir

    2. Please check the Port & Firewall is open or not.

    3. Try to connect to the SFTP server using some 3rd party tools like Filezilla and check.

    Once you checked the above-mentioned steps, check the smart service again. If the issue persists, please provide the snapshot of the issue and application server log as well.

  • Hi Team,
    We are trying to do FTP over SSL using SEND FILE OVER FTPS smartservice.
    We have deployed the necessary client certificate in the admin console yet the smart service gives the error message like ERROR READHANDSHAKE RECORD
    From the below discussion, I can understand that if the authentication is indeed via client certificate, we can not incorporate this smart service directly
    https://community.appian.com/discussions/f/plug-ins/12127/sftp-smart-service-plug-in
    Please help us resolve this.

  • Hi ,

    We will check on the possibilities of using an SSL certificate in the SEND FILE OVER FTPS Smart service.

  • hi  ,

    Can you help us with the steps to reproduce this issue.If Possible please share with us a sandbox environment(with credentials) to work on the possibilities to resolve this issue,Thanks.

  • v2.1.1 Release Notes
    • Receive File Over FTP Bug fix.
  • Hello, I wonder why this smart service is not able to return a response of whether the action was successful or not. What I'm currently doing is Sending the File Over SFTP and then Getting the Remote Directory Contents in order to verify if the file it was sent was successfully saved on the server. However, if the file ends up not being in the server, it will throw an error (this because I'm now passing the file path and not the directory path for the simple reason of in case there are thousands of files in that directory). I can't seem to find a solution to this problem. Any tip or if this plugin will ever be updated to return any type of response of whether the sending of the file was successfully executed?

  • Hi Team,

    Below is the issue we face while using SFTP plugins.

    The SFTP smart services are used in the application to receive files and post processing remove these files using Remove files over SFTP smart service. The process runs daily thrice where the files are picked up from different folders. The SFTP credentials , host , port used are same for all folders.

    Initially , in production all the folders did not have files at the same time. The files came in at different times so the scheduelers receiving the files and its removal were not impacted. Now a new folder is added and the files come into these folders at the same time and the process model instance runs simultaneously for 2 folders and thats when the error occurs. Even though the PM errors out at the Remove files over SFTP with the error as - 'Error removing file in the remote server. See application server log for more details. Error Message: Specified file path is invalid. '. Actually the files are removed from the folder, but we keep getting the error from production everyday after the PM runs.

    Also , while replicating the issue in the lower environments, the PM instances fail but with different error (below).

    Error establishing SFTP connection. Confirm your hostname, username and password. See application server log for more details. Error Message: Session.connect: java.net.SocketException: Connection reset

    Even though this error comes up, one file from each folder has been removed successfully.

    The credentials used to receive and remove the files via SFTP are same. No changes are introduced to the process model for the new implementation. Please let me if anyone can help us on this issue.

  • Kindly help on the below issue. Let us know if there are any logs to check the error.