Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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.
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.
@AndyBrown colud you show me configuration of tFixedFlowInput component?