BC SFTP script aborts on executeRenameCmd().

BC SFTP script aborts on executeRenameCmd().

book

Article ID: KB0092806

calendar_today

Updated On:

Products Versions
TIBCO BusinessConnect -
Not Applicable -

Description

Description:
When executing a executeRenameCmd() in a SSHFTP script, the script aborts.
Symptoms:
The following is seen in the InteriorServer log file:

Rename command for file : <filename. - Copy.txt failed with reply message : SSH Exception: Unexpected Signal from Peer: SSH_FX_FAILURE Tunnel: 

Cause:
The new file name already exists on the target file system.

Issue/Introduction

BC SFTP script aborts on executeRenameCmd().

Resolution

Use executeListCmd() with the new file name as the parameter and check for the existence of the file name prior to renaming the file.

Additional Information

BusinessConnect Java API Guide