Issues with GET and SFTP_JAVA module using ASCII mode

Document ID : KB000089927
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Issues with GET and SFTP_JAVA module using ASCII mode
Resolution:
Detailed Description and Symptoms

When trying to GET a file using the SFTP_JAVA module in version 8.0 in ASCII mode the file is Not where you expect it to be. If you look in the master's tmp directory you will find it renamed.


Investigation

If trying to get test.txt the file would be renamed in a similar fashion:

 

sftp-1762test.txt

 

If you try looking in the output file for the job you will notice no real error. The only indicator of this issue is the file is not transferred to the correct directory but rather appears renamed in the tmp directory.


Solution

This is a known issue. SFTP_JAVA does not support ASCII file transfers. It only supports BINARY file transfers. Please try transferring the file in BINARY mode and SFTP_JAVA should perform as expected.