Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I would like download some files from FTP directories and then delete the directories when they have been successfully downloaded.
I can use tFTPFileList to get the list of directories, then tFTPGet to download the files, and tFTPDelete to delete the current directory.
The remote directory for tFTPGet is ((String)globalMap.get("tFTPFileList_1_CURRENT_FILEPATH")) and it's working, the files are dowloaded.
The remote directory for tFTPDelete is the directory where is the directory I want to delete and the file mask is ((String)globalMap.get("tFTPFileList_1_CURRENT_FILE")) and it's not working. I've got the message :
tFTPDelete_1 Failure
4: Failure
Where is the problem ?
Hello,
There are two subjobs for your job requirement.
subjob 1-->tFTPfileList_1--Iterate-->tFTPGet
|
oncomponentOK
|
subjob2-->using the data mask from the tFTPfileList_2
tFTPfileList_2--Iterate-->tFTPDelete and use the global parameter from FTPfileList_2 in FTPDelete.
Feel free to let us know if it works.
Best regards
Sabrina
Hello
Pleased to see your issue have some suggestion
Based on the error message you provided, it seems that the tFTPDelete component is failing for some reason. There are several potential reasons why this could be happening:
Authentication issues: Make sure that you have entered the correct login credentials for the FTP server and that you have the necessary permissions to delete files and directories.
Directory structure issues: Double-check that you have entered the correct remote directory path for the tFTPDelete component and that the directory you are trying to delete exists and contains the files you want to delete.
File permission issues: Verify that you have the necessary permissions to delete the files in the remote directory. Some FTP servers may have restrictions on deleting files based on file ownership or other factors.
Network or connectivity issues: Check that you have a stable network connection and that there are no firewall or security settings blocking your FTP connection.
To troubleshoot further, you can try enabling debug mode in the tFTPDelete component to see more detailed error messages. You can also check the server logs or consult with your IT department or FTP server administrator to see if there are any server-side issues that could be causing the problem. Please give your suggestion here.