Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 vidya821
		
			vidya821
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi all,
How can i merge the data from multiple tMap components into single output file
PFA
Thanks
 
					
				
		
Hi,
Please take a look at this post:https://community.talend.com/t5/Troubleshooting-Development/Can-I-create-a-Job-with-multiple-paths-f....
Best regards
Sabrina
 cterenzi
		
			cterenzi
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 TRF
		
			TRF
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 vidya821
		
			vidya821
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 vidya821
		
			vidya821
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 
					
				
		
Hi,
Please take a look at this post:https://community.talend.com/t5/Troubleshooting-Development/Can-I-create-a-Job-with-multiple-paths-f....
Best regards
Sabrina
 
					
				
		
Hi,
I want to conduct an upsert logic for a flat file, i.e consider a StudentList which consists of Id, Name. Once, the data is inserted, next time, only a delta file would be provided which would consist of new rows, and rows with updates. Please note, there is no database involved. ONLY flat files. Should I implement this?
I tried creating a Tmap as given in the screenshot, and sent both the outputs NewRecord and UpdatedRow to different tFileOutputDelimited referencing the same output file but, it gets replaced, hence, not implementing the UPSERT logic.
Regards,
Princy
 
					
				
		
Hi,
I want to conduct an upsert logic for a flat file, i.e consider a StudentList which consists of Id, Name. Once, the data is inserted, next time, only a delta file would be provided which would consist of new rows, and rows with updates. Please note, there is no database involved. ONLY flat files. Should I implement this?
I tried creating a Tmap as given in the screenshot, and sent both the outputs NewRecord and UpdatedRow to different tFileOutputDelimited referencing the same output file but, it gets replaced, hence, not implementing the UPSERT logic.
Regards,
Princy
 vidya821
		
			vidya821
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Better approach would be
1) Read the flat file as a single file row instead of columns (The Tmap will compare the complete row data with lookup file row data and it would give you the difference data)
2) Use only one output with the tmap settings of Catch lokup inner join reject as true (Thus the new records and the updated records would be sent as output)
Thanks
