Products | Versions |
---|---|
TIBCO BusinessConnect | - |
Not Applicable | - |
Resolution:
Description
------------
When using a custom script, BusinessConnect cannot delete files on remote SFTP server using the executeDelCmd() method.
Environment
------------
All
Symptom
-------
During executing the executeDelCmd(), the following error is observed in the BusinessConnect log:
File '<XXXX.XXXX.XXXX>.trg' could not be deleted: Remote file (or path) not found: <XXXX.XXXX.XXXX>.trg
This same script may work for other transactions. When it fails, it reports that it cannot find the remote file/path even when files copied to configured directory manually.
The same script would also produce the following error:
Error during executeListCmd(): Remote file (or path) not found: <XXXX.XXXX.XXX>.trg
Resolution
-------------
The executeDelCmd()method will not find all files that it needs to delete (even though the executeMGetCmd is able to retrieve the files).
This can be resolved by providing the full path to the executeDelCmd command as follows:
delreply = sshftpClient.executeDelCmd("//" + dataFileName);
Note that the same problem occurs even if you specify the remote home directory using the setRemoteDir() method.