Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Trying to build a solution to transfer files to an FTP server from local on-premise system. Currently the process is only transferring the last file of the lot found from the directory. Tried debugging the job but couldn't understand where the actual problem is.
What I have tried so far:
Used tFileList to get the list of files for a given directory, given "*.txt" as FileMask.
Used tIterateToFlow to iterate through the list of files. The Schema is of a single column "fileName" with the value set as - ((String)globalMap.get("tFileList_1_CURRENT_FILE"))
Finally used tFTPPut to SFTP the files to remote directory. Local Directory is set as - ((String)globalMap.get("tFileList_1_CURRENT_FILEDIRECTORY")) & FileMask as - ((String)globalMap.get("tFileList_1_CURRENT_FILE")). Overwrite is the option chosen.
Screenshot of the job -
Thanks in advance for any kind of help and let me know if more information is required for this.
Platform: Talend Open Studio for Data Integration Version: 6.5.1
@iamabhishek,please accept solution.