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
  • Currently we upgraded our SFTP plugin to version 4.1.0. Configured the plugin to use the File Transfer Configurations with the proper mappings as below  

    'type!{plugins.ps.appiancorp.com/.../}FT_Config'{

    serverHostName:"text value", 

    serverPort: 22,

    scsExternalSystemKey: "text value",

    usePerUserCredentials: false(),

    privateKeyFile: "document"

    }

    we get the following error in the logs

    ERROR com.appiancorp.process.engine.UnattendedJavaActivityRequest - An error occurred while executing activity: id=704, classname=com.appiancorp.ps.plugins.filetransfer.sftp.SendFileOverSFTP

    Caused by: java.lang.ClassCastException: class com.appiancorp.ps.plugins.typetransformer.AppianPrimitive cannot be cast to class com.appiancorp.ps.plugins.typetransformer.AppianObject (com.appiancorp.ps.plugins.typetransformer.AppianPrimitive and com.appiancorp.ps.plugins.typetransformer.AppianObject are in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @789e2dec) at com.appiancorp.ps.plugins.typetransformer.AppianTypeFactory.toJavaObject(AppianTypeFactory.java:174) at com.appiancorp.ps.plugins.filetransfer.AbstractActionOverProtocol.setConfig(AbstractActionOverProtocol.java:54)

    The old version of the plugin with the same credentials works fine

Comment
  • Currently we upgraded our SFTP plugin to version 4.1.0. Configured the plugin to use the File Transfer Configurations with the proper mappings as below  

    'type!{plugins.ps.appiancorp.com/.../}FT_Config'{

    serverHostName:"text value", 

    serverPort: 22,

    scsExternalSystemKey: "text value",

    usePerUserCredentials: false(),

    privateKeyFile: "document"

    }

    we get the following error in the logs

    ERROR com.appiancorp.process.engine.UnattendedJavaActivityRequest - An error occurred while executing activity: id=704, classname=com.appiancorp.ps.plugins.filetransfer.sftp.SendFileOverSFTP

    Caused by: java.lang.ClassCastException: class com.appiancorp.ps.plugins.typetransformer.AppianPrimitive cannot be cast to class com.appiancorp.ps.plugins.typetransformer.AppianObject (com.appiancorp.ps.plugins.typetransformer.AppianPrimitive and com.appiancorp.ps.plugins.typetransformer.AppianObject are in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @789e2dec) at com.appiancorp.ps.plugins.typetransformer.AppianTypeFactory.toJavaObject(AppianTypeFactory.java:174) at com.appiancorp.ps.plugins.filetransfer.AbstractActionOverProtocol.setConfig(AbstractActionOverProtocol.java:54)

    The old version of the plugin with the same credentials works fine

Children
No Data