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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Merging more than one tMap output

Hi. Wonder if someone could help. I have a tMap(tMap1) where the main output goes to tMSSQLOutput. However now I am handling the rejected rows from tMap. So the rejected output from tMap1 goes to tMap2, tMap2 also has an input lookup. The output of tMap1 and tMap2 have same schema. I want to merger the output of tMap1 and tMap2 together (union) and send one union output to tMSSQLOutput. I tried tUnite, but tUnite only accepts one input. tUnite basically works when you are iterating (say a folder full of files) but my requirement here is to perform the union. Any ideas?
Thanks,
Prasad 

Labels (2)
7 Replies
Anonymous
Not applicable
Author

Output to the tHashOutput components from your tMaps and then in another subjob use the tUnite to merge the datasets together.
Once you have separated a single flow into 2 or more flows, you cannot re-merge them in the same subjob. So to get round this, you store the data in memory (for relatively small datasets) and merge them together in another subjob.
Anonymous
Not applicable
Author

Thanks. So the output of tMap1 goes to tHashOutput1 and output of tmap2 goes to tHasmOutput2? And in sub job I have two tHashInput components linked to tHashoutput1 and 2 respectively? Not entirely clear on how the subjob should be configured or do I have two sub jobs one for each Hashinput?
Anonymous
Not applicable
Author

You would have 2 subjobs; 1 to load the data into the tHashOutput components and 1 to merge the data. You can use a tUnite for this so long as the schemas of both the datasets are the same.
Anonymous
Not applicable
Author

Got it. All done. Thanks very much indeed
Anonymous
Not applicable
Author

Anonymous
Not applicable
Author

This was the right answer, but I have to mention that in 7.1 and 7.2 versions we have to enable the hash elements under:
Project Settings --> Designer --> Pallete Settings --> Technical
Anonymous
Not applicable
Author

For anyone looking for the current link to the support article referenced above, I believe this is it: 

 

https://community.talend.com/t5/Design-and-Development/Can-I-create-a-Job-with-multiple-paths-from-a...