Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
@abhi90,i was using 6.4 DI and able to delete the file using tPostJob,which has created in Job run.
It's clearly not a 6.4 bug then. Thanks for pointing this out @manodwhb
Hi @manodwhb,
Have you used tfilelist? and used tfilelist Current FilePath before deleting it for deleting the files
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.
Hi @shong,
Sure I will send u the Job tonight with the details. can you please provide me your email address?
Hi @shong,
Can You please tell me your any mailid in which I can send u the Job
Hi @shong,
I have sent u my Job which is having issue. it is built in 6.4.1 Big Data