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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
JavierP2
Contributor
Contributor

tfileList - tFileCopy: Max number of files to copy

Hi there,

 

I do need to move abut 50k files from a folder to another, i'm using tFileList and tFileCopy.

 

It works fine but as there are many files this is a mess. I would like to know if there's any way to limitate to for example move only 100 files each time that I run the project instead all the files.

 

Any suggestions?


thanks a lot!

 

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Parse the value of global variable ((Integer)globalMap.get("tFileList_1_NB_FILE")) and break the iteration if it matches the number of you defined. On tJava:
int i=((Integer)globalMap.get("tFileList_1_NB_FILE"));
if(i==10){
break;
}

The job looks like:
tFileList--iterate--tFileCopy--oncomponentOK--tJava

Regards
Shong

View solution in original post

1 Reply
Anonymous
Not applicable

Parse the value of global variable ((Integer)globalMap.get("tFileList_1_NB_FILE")) and break the iteration if it matches the number of you defined. On tJava:
int i=((Integer)globalMap.get("tFileList_1_NB_FILE"));
if(i==10){
break;
}

The job looks like:
tFileList--iterate--tFileCopy--oncomponentOK--tJava

Regards
Shong