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: 
sushantkapoor19
Contributor III
Contributor III

Reading multiple files one by one in talend

Hello All,

 

i have a scenario, i have to read multiple files one by one through a Talend Studio job and POST to an API.

So read the 1st file , POST to API and then delete/archive the file, then read the second file, POST to an API. and delete/archive the file and so on...

 

i have designed a job to generate json files in a folder which is working fine. Now, when i try to loop the files, it is posting incorrect result to API as its not looping correctly. for 2 files, it is looping 3 times, for 3 files, it is looping 6 times and so on..

Basically i am not getting how to delete/archive the file after it has read and POSTED the file to an API.

 

my job design is :

tFilelist(List of files)-->tInputRaw-->tlogrow-->tFlowiterate-->tRest-->tLogrow-->on component ok-->tFileCopy

but tFilecopy is not working. Can someone please help?

Labels (4)
1 Reply
Denis_Segard
Support
Support

Hello,

When you say : "for 2 files, it is looping 3 times, for 3 files, it is looping 6 times and so on..

Basically i am not getting how to delete/archive the file after it has read and POSTED the file to an API."
Does it mean one file is "treated" 2 times in the loop ?

Kind regards
Denis