SFTP job fails with error "com.uc4.ftpjob.DataTransferException: Bad message"
book
Article ID: 87772
calendar_today
Updated On:
Products
CA Automic Workload Automation - Automation Engine
Issue/Introduction
Error Message : com.uc4.ftpjob.DataTransferException: Bad message
Running SFTP job fails with the following error message in the job report:
com.uc4.ftpjob.DataTransferException: Bad message at com.uc4.ftpjob.commands.SFtpCommandImpl.runCmd(SFtpCommandImpl.java:104) at com.uc4.ftpjob.commands.SFtpCommandImpl.delete(SFtpCommandImpl.java:125) at com.uc4.ftpjob.commands.FtpFacadeCommandImpl.delete(FtpFacadeCommandImpl.java:348) at com.uc4.ftpjob.commands.impl.CopyCommand.execute(CopyCommand.java:668) at com.uc4.ftpjob.commands.ThreadPoolJobExecutor$ThreadRunner.run(ThreadPoolJobExecutor.java:81) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: 5: Bad message
Cause type: Configuration Root Cause: Some SFTP sites moves file automatically when it is downloaded therefore the Automation Engine cannot delete it if 'Erase transferred files on source host' option is checked.
Resolution
Make sure 'Erase transferred files on source host' option is not checked in FTP tab of job.