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

tFileList problem

Hello community, 

 

I have a TDBInput in which I will select FileName that I will store in a context and I will see if this FileName exists in a folder

If yes I will move the file.

 

My job is working but the problem is that it only selects one file.

 

Any solution ?

Labels (2)
7 Replies
fdenis
Master
Master

you can use tRunJob to run a job with multiple context.

good luck
akumar2301
Specialist II
Specialist II

Run If is not part of flow , It will run only once.

 

tDBINPUT -- tFlowToItrate -- TfileExist -- runif[((Boolean)globalMap.get("tFileExist_1_EXISTS"))] -- tFileCopy

 

below link will help 

 

https://help.talend.com/reader/q23BCE3W4MjloHD1RvMJ4A/g3tWtZMSyBup4eLk5HdOAg

 

 

Anonymous
Not applicable
Author

I only have one context, I want that my job work dynamically with any number of iteration 

for this example, i have two values of tFileName but the tFileCopy copy only one file

Anonymous
Not applicable
Author

add the file patterns in the files option in tfilelist, i think you added the pattern , but once check the files, the name of the files may not be in same pattern, so try to add the pattern of files you have in the contexts

Anonymous
Not applicable
Author

@uganesh 

I got an error

 


22.PNG
akumar2301
Specialist II
Specialist II

C'est Déjà marqué.

 

Somewhere in your job , You are have used unwanted " in your job.

 

Go to your Code Tab of job

, in the right side you will have something marked red ,

Click on That , you will reach to the actual error line. You will understand where it is not correct.

Anonymous
Not applicable
Author

the result of run if is false but i'm sure it's not !