I dont think the global variable tFileList_1_CURRENT_FILEPATH can be used in the tFTPPut component for this case as it is a flow variable.
Why you would say global variable tFileList_1_CURRENT_FILEPATH cannot be used in tFTPPut. Is it just for that particular case or for all cases?
I am trying to transfer directories and files from my local machine to a remote server:
In tFileList, the FileList Type is : Directories
And here is the config for tFTPPut:
Local directory: ((String)globalMap.get("tFileList_2_CURRENT_FILEPATH"))
context.Tgt_Dir + StringHandling.RIGHT(((String)globalMap.get("tFileList_2_CURRENT_FILEPATH")),StringHandling.LEN((String)globalMap.get("tFileList_2_CURRENT_FILEPATH"))-StringHandling.LEN(context.Local_Dir))
Filemask: "*" New name: ""
I was able to create the same directories in the remote server with tFTPCreateDirectory.
I was also able to send the files to the remote directories with tFTPPut, though sometimes the job would fail in the middle of file transfer. I am still trying to figure out why and I tend to think it is something in the source file that job failed at.
Did you mean ((String)globalMap.get("tFileList_2_CURRENT_FILEPATH")) is not allowed in Local directory field?
It is just for that particular case. Your files are located in local directories when you are using tfilelist to iterate a set of files or folders.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema
Pick up some tips and tricks with Context Variables