Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
abhi90
Creator II
Creator II

tfiledelete Strange behaviour

Hi All,

I want to delete some zip files after my Job completition process. I am taking a Path like "C:/Users/aghosh46/Desktop/SRCFILES" in the context Variable of Parent Job. and Now Passing that Value to ChildJob for File Deletions in tpostjob. Here in tfilelist giving Directory Name as context.FilePath+"/". In tfiledelete using filelist's Global Variable Current Filepath. Strange Part is when tpostjob starting that FileDeletion Child Job is failing saying Filename.zip can not be deleted. Whereas In a testJob without any contexts The Job is deleting the Zip Files.Dont know where I am missing something.

 

Labels (2)
30 Replies
PranayVatsal
Contributor
Contributor

Hi All,

 

We have a job which processes few files from inbound location to outbound location doing some transformations.

Once the file gets created, we need to delete all the input files.

So, we had main transformation --> onsubjobOk--> tfilelist -->iterate-->tfiledelete and in tfiledelete we get the global file list values from tfilelist.

But, the job fails all the time with no file found error, even though the files are present.

 

I created an individual job only to delete the files(tfilelist -->iterate-->tfiledelete).it worked fine.

But, only on subjob ok condition it is failing. tried to put the individual job as child job in trunjob component and even that failed. failed with tpostjob component too..

Could you please address the issue. Even tfilecopy had the same issue as tfiledelete. file not found issue.