Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I used tFilelist to load files from a Directory to Talend. I need the data to load from these files from tFilelist to different MySQL output tables. I am using Talend Open Studio.
Please help me to design a job for this requirement
File1----->table1
File2----->table2
Thanks & Regards
SJ
Hi,
I am assuming both files are having different schema which means target tables are also having different schema.
The simple way is as shown below.
You have to map the file name from tFileList (you can get the value by giving Control+Space) and matching it with the value you are planning. The tJava is not having any data in it and it is used for just controlling the flow.
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
How do you know that mapping between file and table ?
e.g. File1 should go to Table1 and not to Table2
Hi,
I am assuming both files are having different schema which means target tables are also having different schema.
The simple way is as shown below.
You have to map the file name from tFileList (you can get the value by giving Control+Space) and matching it with the value you are planning. The tJava is not having any data in it and it is used for just controlling the flow.
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Hi, thanks for the quick response.
The first file and the first table will have the same schema. similarly for the second file and second table. so we could do the mapping using a condition right?
@nthampi This solution worked for me. Thanks a lot.
@ksingh Thanks for the quick response. I will try with the steps provided in the link.