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 Team,

    Recently upgraded version of this plug-in from 1.6.2 to 2.2.1
    I noticed the existing '
    Send File Over SFTP' node started failing after upgrading the version to 2.2.1. Would I need to replace this node with a new node having output parameters?
    Or would deprecated nodes continue to work fine with the 2.2.1 version?

    Thank you!


  • Hi,

    What all possible values are being returned by output parameters 'Error' and 'Status'?
    I found datatype for both these parameters is TEXT. So it will be helpful if you can enlist all possible values returned by these 2 output parameters.

    Thank you!

  • Hi ,

    We tried the receive file over SFTP Smart service in an MNI Node with username/password configuration,we were able to successfully receive the files in Appian. Please Check on the infrastructure side for any issues .If issue still exists please share us with a sandbox sftp environment to reproduce the issue.

  • HI, baghavathit0001,

    We will try to reproduce the issue and update asap.Can you help us with the log files on the occurrence of this issue

  • Hi Team, 

     We  received an error while receiving file over SFTP, It is mentioned as Auth fail, though we are using correct credentials for connecting the SFTP, The files were not moving inside, Later we resumed the process instance, it worked. the process will run via MNI node. Can you please help with this issue?

  • v2.2.1 Release Notes
    • Support For Passive FTP Connections in Send File Over FTP Smart Service
    • Added the following parameters EnterLocalActiveMode and BinaryFileType in Send File
    • Over FTP Smart Service
    1. EnterLocalActiveMode - True Indicates FTP Connection in Active Mode , False indicates Passive Mode.Default Value is False.
    2. BinaryFileType - False indicates Ascii mode ftp file transfer , True indicates Binary Mode File Transfer
    3. Added the output parameters Error and Status in following smart services to denote the status of the smart service file operation performed.
  • Kindly help on the below issue. Let us know if there are any logs to check the error.

  • 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.

  • 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?

  • v2.1.1 Release Notes
    • Receive File Over FTP Bug fix.