SFTP Functions

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:
    • Send File Over SFTP
    • Receive File Over SFTP
    • Get Remote Folder Contents Over SFTP
    • Create Folder Over SFTP
    • Remove File Over SFTP
    • Receive Files In Folder Over
    • SFTP Rename File Over SFTP
  • SCP:
    • Send File Over SCP
    • Receive File Over SCP
  • FTP:
    • Send File Over FTP
    • Receive File Over FTP
    • Get Remote Folder Contents Over FTP
    • Receive Files In Folder Over FTP
    • Remove File Over FTP
    • Rename File Over FTP
  • FTPS
    • Get Remote Folder Contents Over FTPS
    • Receive File Over FTPS
    • Receive Files In Folder Over FTPS
    • Send File Over FTPS

Functions:

  • getfoldercontentsoverftp
  • getfoldercontentsoverftps
  • getfoldercontentsoversftp
  • 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