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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Import tFileInputDelimited and pass column values to tFtpGet as file mask?

Hi everyone,

 

I tried a few things without success.

 

Basically I just want to feed a list of files to an tFtpGet component. I have a singular column of file names within a tFileInputDelimited component and run through the list, passing each file name to a file name mask within an tFtpGet component.

 

tFileInputDelimited -> fFlowToIterate -> tFtpGet

 

I know this isn't right but the farthest I get is a null pointed exception on the first row processing but when I disable the FTP component and put the output to a tLogRow it displays all the file names as expected.

 

Can you please point me in the right direction?

 

Thanks

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

This is the right direction.
If the row between tFileInputDelimited and fFlowToIterate is named row1 and fFlowToIterate has the default settings, you should be able to use (String)globalMap.get("row1.filename") for the filemask field.
Feel free to share your settings.

View solution in original post

3 Replies
TRF
Champion II
Champion II

This is the right direction.
If the row between tFileInputDelimited and fFlowToIterate is named row1 and fFlowToIterate has the default settings, you should be able to use (String)globalMap.get("row1.filename") for the filemask field.
Feel free to share your settings.
Anonymous
Not applicable
Author

Thanks! That is what I needed.

 

Is it possible to set a wildcard in the remote directory input? I want to set a directory but let it go through all sub-directories to scan for a given file.

 

Remote directory: "folder name/./" 

 

This is what I tried, hoping "." would trigger a wildcard for the sub-directories but it doesn't seem to be taking it. I don't see an option to explicitly include sub-directories.

 

Thanks!

TRF
Champion II
Champion II

Not sure. You have to try it by yourself.