Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
AndyBrown
Contributor
Contributor

tSystem Only Outputting Two Lines to Global Variable

I have a job that consists of four components:

 

tSystem (On SubJob Ok) > tFixedFlowInput > tMap > tFileOutputDelimited

 

What I'm doing is using a command  "du -ah /home/talend/CmdLine/exports" to report on all the zip files from generated jobs. I have the number of rows in tFixedFlowInput set to 10000. My final output is 20000 rows of the first reported zip file repeated in the entire file.

 

On the console I can see the output is correct. What am I doing wrong?

 

Thanks.

Labels (2)
3 Replies
DataTeam1
Creator
Creator

Hi @AndyBrown

 

If you want to list files from folder to file you need to use:
tFileList (Iterate) > tIterateToFlow (Main) > tFileOutputDelimited

 

and in the tIterateToFlow you need to use ((String)globalMap.get("tFileList_1_CURRENT_FILE")) to get Files Names

 

 

Don't forget to give kudos when a reply is helpful and when your query is answered, please mark the topic as resolved.

AndyBrown
Contributor
Contributor
Author

Yes, this is the right way to go (thanks for the nudge in that direction), however, it still doesn't explain why tSystem is only sending the first line repeatedly to the tFixedFlowInput component.

DataTeam1
Creator
Creator

@AndyBrown colud you show me configuration of tFixedFlowInput component?