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, you need to verify the the folder/file does have right permessionsto delete from Talend and also can you check that zip folder has not corrupted. just for your information,you need to configure below way.
Hi @manodwhb, @yilengli, @vboppudi, @rhall,
I have attached my settings in this comment.Still the problem persists.
This *could* be related to the timing of the call. Does this work if not connected to a tPostJob?
Hi @rhall,
Yes when I am testing in my test job there it's perfectly working fine. Even I tried the same context settings and everything.There it is perfectly working fine.
Connect it to a tPostJob in your test job and see if it fails. If it does, then you have found a bug.
Hi @rhall,
Yes You are right. This is a Bug. when I connected it to my tpostjob of my TestJob It failed again. Where as FilePath is printing.
Hi @shong, @xdshi, @agershenson
Please let me know How to open this Issue in Bugtracker. I have attached settings,JobLog with this Comments.One More thing I tried tfiledelete in my SubJobs of main Job. There also it is not working.
One More thing add over here.
When I am using tfilelist and tfiledelete in my Parent without creating a ChildJob then after 35 File Deletion same issue is coming in tfiledelete. which should not be the case.
One thing to update over here is,
My Delete Job is working deactivating other Child Jobs keeping old files. But when I am activating the SubJobs the .zip files Talend is creating in runtime tfiledelete is failing only that time.
it is happening in Talend 6.4