Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tSCPGet only copies the last file in the directory

Hi,
I'm doing a SCPGet to a server using a public key. The problem i'm having is only the LAST FILE in the directory is being copied to my local server.
What setting is wrong
FTPTCPIP.00G0200.txt
FTPTCPIP.00GV100.txt
FTPTCPIP.00G0500.txt
FTPTCPIP.00G0600.txt
FTPTCPIP.00G0100.txt
FTPTCPIP.00G0180.txt
The current scenario is:
tSCPConnection --- OnSubjobOk --- tSCPFileList --- Iterate --- tIterateToFlow --- main --- tSCPGet
The Filelist in tSCPFileList
"cd /tmp/Talend/"
"ls *.txt"
The tIterateToFlow is
Column Value
filename ((String)globalMap.get("tSCPFileList_1_CURRENT_LINE"))

The Filelist in tSCPGet
"/tmp/Talend/"+((String)globalMap.get("tSCPFileList_1_CURRENT_LINE"))
/tmp/Talend/ is the directory path on the ftp server

Any advice

Labels (1)
  • Other

2 Replies
Anonymous
Not applicable
Author

Hi
tIterateToFlow component is not needed in the job.
tSCPConnection
|
OnSubjobOk
|
tSCPFileList --- Iterate --- tSCPGet
Shong
Anonymous
Not applicable
Author

Thanks Solved