Unable to override server port number when using FTP_JAVA, SFTP_JAVA or AW_SFTP Jobs

Document ID : KB000087579
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
Error - unable to connect to remote host - '.com:'

When using the File Transfer jobs Applications Manager (AM) includes by default: FTP, FTP_JAVA and SFTP_JAVA, there is no option to change port numbers.  Instead the defaults are used as follows:
  • FTP_JAVA - port 21
  • SFTP_JAVA - port 22
AM's FTP, FTP_JAVA, and SFTP_JAVA Jobs are legacy jobs with limited functionality.  For the latest full featured FTP jobs, use the RA FTP Agent to execute FTP jobs.

Investigation
  1. Update an SFTP server to require a port other than port 22 (i.e 22222).  
  2. Create and run an SFTP_JAVA job in AM to connect to the updated server.
  3. Job fails and errors similar to these are seen in the SFTP_JAVA job log.
Invoking JOBID 1502971, module - AW_SFTP_ORGCHART, alias name - AW_SFTP_ORGCHART 
2017-01-09 12:09:29 Parameters: 
2017-01-09 12:09:29 Remote UserId = user@company
2017-01-09 12:09:29 Remote Host = fcosftp.cohosted.com:22222 
2017-01-09 12:09:29 FTP Command = PUT 
2017-01-09 12:09:29 Local Path = F:\HR\ORGCHARTS\ 
2017-01-09 12:09:29 Local File/Pattern = ORGCHARTS_RPT.txt 
2017-01-09 12:09:29 Remote Path = /PROD/inbound/data 
2017-01-09 12:09:29 Remote File/Pattern = ORGCHARTS_REPT.txt 
2017-01-09 12:09:29 File Type = BINARY 
2017-01-09 12:09:29 Compression = N 
2017-01-09 12:09:29 Minimum Run Time = 0 
2017-01-09 12:09:29 Maximum Run Time = 0 
2017-01-09 12:09:29 remoteUserid = userid
2017-01-09 12:09:29 known_hosts file = C:\Users\amsvc/.ssh/known_hosts 
2017-01-09 12:09:29 Error - unable to connect to remote host - 'fcosftp.cohosted.com:22222' 

Resources
Cause:
Cause type:
By design
Root Cause: Legacy AM FTP jobs use default ports. This parameter can not be overridden.
Resolution:
This field was added on 30/03/2017. This article has not been updated yet. Refer to the "Description" or "Workaround" sections for solution information.

Fix Status: No Fix

Fix Version(s):
N/A
Additional Information:
Workaround :
For the latest full featured FTP jobs, use the RA FTP Agent to execute FTP jobs withing Applications Manager.