Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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?
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