RA FTP: SYST command causes the job to abort.

Document ID : KB000089445
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
RA FTP: SYST command causes the job to abort.
Resolution:

Symptoms

When running RA FTP JOBS against certain FTP sites, the jobs fail with the following showing within the system generated Trace file:

Caused by: com.uc4.ftpjob.DataTransferException: Unable to determine system type - response: 502 SYST command not implemented.

or

Caused by: java.io.IOException: Unable to determine system type - response: 502 SYST command not implemented.


Cause

The RA FTP Agent will fail if it unable to determine the system type of the FTP system it is connecting to.


Resolution

You can handle this problem by defining a java system variable during the start command of the RA-FTP agent. The value of this variable represents a default SYST response for those cases where the server does not support the command. It will have no effect on connections where the server allows the command.

Please note that the value of the variable should represent the system type of the ftp server system as the network library will use this for parsing the results. For a unix like system the first word should contain Unix like in this example "UNIX Type: L8".

Start the RA-FTP Solution either through the Automic Servicemanger or from a command line. The command to start the solution could look like this example:

java -Dorg.apache.commons.net.ftp.systemType.default="UNIX Type: L8" -jar C:\UC4\UC4HSR1\Agents\rapidautomation\bin\ucxjcitx.jar

Please alter the path in this example to match your system installation directory accordingly. Please note that the definition of the variable must be done in front of the -jar attribute and the name of the variable,  org.apache.commons.net.ftp.systemType.default, is case sensitive.