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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get Same input File dynamically to the output file

Hello All

 

Am reading files from tfilelist, and in the output file i do a column filename ,and am able to print file name in that column by using this code in tMap corresponding to column "((String)globalMap.get("tFileList_1_CURRENT_FILE")) " it works and am able to a file name but , if i use same thing in tfileouputdelimited to get that file i used

below in the component at outputdelimited 

"C:/Users/"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+TalendDate.formatDate("yyyyMMddHHmmss", new Date()) +".csv",

 

But am getiing the file as null followed by timestamp , how i resolve this issue.  "null20191017160704"

 

 

Thanks

Manish

Labels (4)
1 Reply
TRF
Champion II
Champion II

That's normal because components are executed in the order they are on the subjob. For example, tJava starts first, as lookup for tMap. For tFileInputDelimited, the output filename is assigned when the subjob starts. So you need to break the flow with tFlowToIterate then, as tFileInputDelimited requires an input flow, you need to initiate a new one with tFixedFlowInput, using global variables issued from tFlowToIterate.