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
Parents
  •  Appian Solutions Appian Community   

    I am trying to create folder over sftp, but receiving below error. But when I did ssh and able to manually create a folder in the same location with the same user. Initially for Remote Folder Path, tried with actual base folder location and actual folder to be created but received same below Nullpointer exception. Then created a new parameter newDirectoryName, still received same error.

    Could you please help me why I am facing this issue?

    Inputs configured to the smart service:

    File Transfer Configurations: 

    'type!{plugins.ps.appiancorp.com/.../}FT_Config'
    (
    serverHostName: 'hostname',
    serverPort: 22,
    scsExternalSystemKey: 'SCS_key',
    )

    Remote Folder Path : Actual Path where folder to be created.
    newDirectoryName: New directory name to be created.

    Error:
    2024-02-26 06:11:58,450 [Appian Work Item - 1508821 - WorkID 727 - execution02 - process 538855364 - model 15269 : UnattendedJavaActivityRequest] ERROR com.appiancorp.ps.plugins.filetransfer.sftp.CreateFolderOverSFTP - java.lang.NullPointerException

  • If you pass usePerUserCredentials: false() it should work and if using then userCreds then it should be true()
    For instance: 
    = 'type!{plugins.ps.appiancorp.com/.../}FT_Config'(
    serverHostName: "",
    serverPort: ,
    scsExternalSystemKey: "",
    usePerUserCredentials: false()
    )

Comment Children
No Data