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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
hilmandenis
Contributor
Contributor

Insert Multiple .csv File Into MySQL Table

Hi Everyone,

I really really new to Talend and I need to build a model to insert multiple .csv files to MySQL table. I already successfully downloading multiple .csv files from SFTP to my local and now I need to export it. After reading from multiple sources, I create a model like this

0693p000009IsbjAAC.png

 

 

After I run the model, it just finished without showing error. I open MySQL and the table is created but there is no data inside it. I noticed that 0 rows occured after the tFileInputDelimited. This is my detail on tFileInputDelimited.

 

0693p000009IscDAAS.png

 

Please help me what is wrong with my model. Thank you.

Labels (4)
2 Replies
manodwhb
Champion II
Champion II

@Hilman Utomo​ , you need to use the below global variable for tFilelist in tFileIinputDelimited>> file name/Stream with out double quotes.

 

((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))

 

Thanks,

Manohar

Ganshyam
Creator II
Creator II

Hi,

 

You can create one intermediate text file and write all the csv data into this file and then use this data from file to write into DB table in one go.

 

Regards