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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
kuwaryogi27
Creator
Creator

Unable to delete files

Hello All,

I am trying to delete some json files after they are pushed into ActiveMQ in the below subjob but the files are not getting deleted.
Attached is the screenshot of the talend job please have a look.
Could you please guide me how to solve this.

Regards,
Yogesh.


Labels (2)
16 Replies
Anonymous
Not applicable

Hello @ykasture 

Could you please try to do tfilelist-->tfiledelete in a child job and the main job calls the child job with option 'independent process' checked to see if it works?

Best regards

Sabrina

kuwaryogi27
Creator
Creator
Author

Hello @xdshi ,
I tried the way suggested by you, but this option is still not working for me. 
Below are the screenshots of the modified job.
Please have a look.


1.PNG
3.PNG
kuwaryogi27
Creator
Creator
Author

Hello All,
Please let me know if anyone has a solution over this topic.
Regards,
Yogesh.

Anonymous
Not applicable

Hi kuwaryogi27
Are you sure there is no other applications or program are accessing the file at the same time. In this job, only tfileinputRaw component is reading the file, for testing, remove tMOMOutput component from the job to see if tfiledelete can delete the file in the end.

kuwaryogi27
Creator
Creator
Author

Hello @shong ,

Apologies for the late reply.
I tried the same suggested by you it did not work.
Let me explain the complete scenario:
1] JSON files are created in this particular job by reading an excel.
2] Those JSON files are fetched by tFileOutputRaw -> .. -> tMomOutput
3] Need to delete those JSON files 

When the files are sent to tMomOutput the files are consumed by a JMS consumer in our application.

I have made a small configuration change in tFileDelete and selected the Fail on error checkbox.
It gave me the error that I have attached in the attachments, please have a look.

Quick questions:
1] So since the files are used by the JMS consumer is the reason to unable to delete those files.
2] I tried changing the directory from [C to D] because due to admin rights if it's not allowing to delete the files but this scenario also didn't worked.

Please guide me how can we achieve this task.

Thanks and Regards,
Yogesh.



25_7_19_1.PNG
25_7_19_2.PNG
Anonymous
Not applicable

Hi Yogesh
"1] JSON files are created in this particular job by reading an excel."
I don't see where the json files are created in your job, maybe the problem occurs in this step, can you please show me the full screenshot of your job?

Regards
Shong
kuwaryogi27
Creator
Creator
Author

Hi Shong,


in tJava Component the logic to read an excel and convert a row into a json file has been written.
After tJava ->onSubJobOk ->tfilelist->tfileinputraw fetches the JSON files created in a folder on the local system and pushes them to a queue.

Regards,
Yogesh. 


29_7_19.PNG