App Connect

 View Only

 SFTP not retrieving file

John Hawkins's profile image
John Hawkins IBM Champion posted Fri August 29, 2025 12:06 PM

Hi folks,

I suspect this is a dumb one - so, please forgive me now !

I've got a fileinput (and fileread also fails) that is attempting to SFTP read.

I have put on service trace and can see that it connects to the remote server and reads the directory (SFTPService.getDirectoryList) and indeed lists the files I want and returns with it in the list.

It then closes the connection - but no file.

} RemoteFileManager.doRemoteTransfer (000016F4-68B1CC17-00000004) , '[[SftpFileManager]Service: [[SFTPService]Server: <servername redacted by me> port: 22 user: Auser  pw: ****** directory: / status: CLOSED connected: false] regex: payload\.txt]'

I have my file in that dir called "payload.txt". and that appears to be what the regex was that it was looking for. (I've tried various "" ".*" etc.)

It then seems to look at the local file system for the same file.

com.ibm.broker.nodes.filenodes.FileReadContext@-3553657.findLocalFile - which returns false.

Then it just goes out of the nofile terminal.

Any clues as to why it's not picking up the file from the SFTP site??

I have connected using the same user/passwd in WINSCP and all is well - I can read and copy the file to my local system.

many thanks for any help !!

John.