Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Creation of multiple output files from an input file

Hello
I need help. I am a beginner in Talend.
I have a file containing thousands of lines and for each line I have to create new files whose name is the same as my file line. Examples
Line1 = nomb.jpg
So in output I have to create the file nomb.jpg
Line2 = aventure.png
And aventure.png
Etc ...
Please help me.
I used the components tfileinputdelimited, tflowtoiterate, titeratetoflow e tfileoutputdelimited
But my files are not created.
Thank you

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thank you so much, God Bless you 

ça marche

 

View solution in original post

23 Replies
TRF
Champion II
Champion II

Bonjour,

 

Pouvez-vous partager le design de votre job ?

Le mieux sur le forum c'est d'échanger en anglais, plus de personnes pourront répondre.

Anonymous
Not applicable
Author

Hi
It seems you forget to upload the screenshots, please insert the images into your post body instead of attaching them.

Regards
Shong
Anonymous
Not applicable
Author

my job screenshots

 

 


Capture.PNG
TRF
Champion II
Champion II

As you can see, there is at least a warning on tFileOutputDelimited component.
Thanks to share also the settings for this component.
Anonymous
Not applicable
Author

look at file join please , thank you

Anonymous
Not applicable
Author

please look at the file join

 

my message mistake

 

Exception in component tFileOutputDelimited_1
java.io.FileNotFoundException: C:\Users\Desktop\recept_image\"aventure.jpg" (La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)

 

So i want to build the new file and the name of new file must do "aventure.jpg"

thank you


Capture1.PNG
Capture3.PNG
TRF
Champion II
Champion II

Look at the full file pathname C:\Users\Desktop\recept_image\"aventure.jpg"
It seems " are included in the filename.
It should be C:\Users\Desktop\recept_image\aventure.jpg.
So, I guess your input file includes " around fields value. In this case, in tFileInputDelimited component, tick the "CSV options" and let the rest as is.
Try again and and let me know.
Anonymous
Not applicable
Author

He works.

By cons it creates a single file "aventure.jpg".

But i want to have one file per line with the name of the line as the name of my file.

Thank you so much

 

Anonymous
Not applicable
Author

Because i have 21165 lines in my source file, so i must have  21165 files created.