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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Insert multiple files into mysql

Hi,
I try to upload in a mysql table, a lot of files.

So I try like this:
tFileList_2 ------> tIterateToFlow_2 -- What to put here ----> tFileInputDelimited_1 ------> tMap_1 ------> tMysqlOutput_1

0683p000009MH9l.png

1) tFileList_2 I use a context where I define the path (listedesfichiers for the name) and a filter on the extention file (*.I18)
2) tIterateFlow_2 I use the mapping name Fichiers and this value : ((String)globalMap.get("tFileList_2_CURRENT_FILEPATH"))
3) tFileInputDelimited_1 Is metadata on one file, all the file have the same layout : int, int, date, int, int.
4) tMap_1 I do the matchin gbetween the column of the files and the field on the Mysql databse
5) tMysqlOutput_1 where i give the parameters for the connection.

I can upload only one file, but I would like to upload all the file present in tFileLIst_2 in my database, but I don't know to send all the value to the component and witch component to use!

Regards
Burnside.

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

It should be something like
tFileList-->tFileInputDelimited-->tMap-->tMySqlOutput
You do not need tIterateToFlow
You can iterate to tFileInputDelimited and then refer to the file path directly

View solution in original post

2 Replies
Anonymous
Not applicable
Author

It should be something like
tFileList-->tFileInputDelimited-->tMap-->tMySqlOutput
You do not need tIterateToFlow
You can iterate to tFileInputDelimited and then refer to the file path directly
Anonymous
Not applicable
Author

Hi,
Thank's for your idea, I have resolved the problem.
Thank's a lot.
Burnside.