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
manodwhb
Champion II
Champion II

@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.0683p000009LtVa.png

abhi90
Creator II
Creator II
Author

Anonymous
Not applicable

This *could* be related to the timing of the call. Does this work if not connected to a tPostJob?

abhi90
Creator II
Creator II
Author

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.

Anonymous
Not applicable

Connect it to a tPostJob in your test job and see if it fails. If it does, then you have found a bug.

abhi90
Creator II
Creator II
Author

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.

 


JobErrorLog.txt
testjob_context.JPG
TestJob_contextPassing.JPG
TestJobPrint_tfilelist.JPG
abhi90
Creator II
Creator II
Author

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.

abhi90
Creator II
Creator II
Author

Hi All,

 

@shong@xdshi@agershenson can u let me know how to open a bug?

abhi90
Creator II
Creator II
Author

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.

@rhall

abhi90
Creator II
Creator II
Author

it is happening in Talend 6.4