Search code examples
etltalend

Combining different data flows and create .txt file by sorting output


I have a requirement. I am trying to combining several data flows with Talend in order to create a .txt file. In my case the input flows are DB tables. I am able to create the output file "prova.txt", but in this file some fields of 2nd and 3rd tables are missing and I don't know why. I checked with tLogRow and the probelm seems to be in tHashInput_1. In the 3 tHashOutput rows are logged correctly with all fields.

Below, my job:

enter image description here Components tHashOutput_2, tHashOutput_3, tHashInput_1 are linked to tHashOutput_1.

Am I doing something wrong? Does anyone could help me?

Thank you in advance!


Solution

  • Assuming for all thashoutput schema will be same, I attached image for your problem. Here in all tfileoutputdelimited components give same file name, same schema and use append option. It will append data in same file from all 3 tables.

    enter image description here

    enter image description here