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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
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
abhi90
Creator II
Creator II
Author

Hi Admins,

Can you please confirm it as 6.4 Bug that tfiledelete can't delete files which is been created during the JobRun in tpostjob? @yilengli @rhall

manodwhb
Champion II
Champion II

@abhi90,i was using 6.4 DI and able to delete the file using tPostJob,which has created in Job run.

Anonymous
Not applicable

It's clearly not a 6.4 bug then. Thanks for pointing this out @manodwhb

abhi90
Creator II
Creator II
Author

Hi @manodwhb,

Have you used tfilelist? and used tfilelist Current FilePath before deleting it for deleting the files

Anonymous
Not applicable

Hi abhi90
I can't reproduce this issue on version 6.4.1. Why don't you pass the current file name to child job for deleting?
((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))
I see you only pass the current folder path to child job. There might be a design issue in your job.

Regards
Shong
abhi90
Creator II
Creator II
Author

Hi @shong,

The files are generating in Runtime(During JobRun) by Talend. The Delete Job should be in PostJob. and My requirement is to delete the .zip files created by Child Jobs Flows in Parent Job. So in tpostjob I have scan that Directory and iterate tfilelist current filepath.

Anonymous
Not applicable

Hi abhi90


Can you export your testing job which can reproduce the issue and send it to me vie email?


Regards

Shong
abhi90
Creator II
Creator II
Author

Hi @shong,

Sure I will send u the Job tonight with the details. can you please provide me your email address? 

abhi90
Creator II
Creator II
Author

Hi @shong,

Can You please tell me your any mailid in which I can send u the Job

abhi90
Creator II
Creator II
Author

Hi @shong,

I have sent u my Job which is having issue. it is built in 6.4.1 Big Data