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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Delete file after archiving on Windows

Hi all,
I have a child job that will archive a file then delete that file immediately after it's been archived. Initially I did this using the Mac version of the studio and everything was working but with the same job but different file directory, it doesn't work when using the Windows version of the studio.
If I were to run the child job separately to just archive and delete the file it would work, but when running the parent job that calls the child job, it will only archive the file but not delete it.
Essentially my child job just looks like the screen shot below. I know for sure that the directory I use is correct because I can run the subjob independent of the parent and everything was working. I also know the parent job is also working because I tested this initially when working on the Mac version of the studio.
Is there a reason why when testing this on the Windows version that my job would stop working? Could the file still be locked and is read only after archiving the file and that's why the job can't delete it? 
0683p000009MBdB.png
Labels (2)
12 Replies
Anonymous
Not applicable
Author

Hi,
Which build version are you using? What's the error info when you use this job on window server?
Best regards
Sabrina
Anonymous
Not applicable
Author

When I run the parent job, I set the sub job component to "Propagate the child result to the output schema" but nothing gets log so I'm assuming that means it's not getting executed or there's just no error log.
It's also set to "die on child error" but it still runs afterwards so I would assume that no error occurs. It's just that the file is still there so I can see that the delete does not happen. The archive file has been created so I can at least see that happening and that the child job is being called.
I'm currently running Talend Open studio for Data Integration but I'm not sure about the version. I just see 5.5.1r118616 at the top of the studio if that helps.
Anonymous
Not applicable
Author

Hi,
How did you set your tfiledelete component? We don't repro your issue on window 7.
Please see my screenshot
Best regards
Sabrina
0683p000009MBdG.png
Anonymous
Not applicable
Author

I made the exact same changes as your screen shot but it still doesn't work.
0683p000009MBdL.png
Anonymous
Not applicable
Author

Hi,
I'm currently running Talend Open studio for Data Integration but I'm not sure about the version. I just see 5.5.1r118616 at the top of the studio if that helps.

Does this issue repro on other build version?
Best regards
Sabrina
Anonymous
Not applicable
Author

I don't actually have any other versions of the Studio. I just know the code you gave in your sceenshot doesn't work in the Mac version of the studio as well.
Anonymous
Not applicable
Author

Hi,
What's your current OS? Did you use Windows version of the studio in Window OS?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi,
My current Windows operating system is a Windows 7 64-bit. And yes, I did use the Windows version of Talend Open Studio 64-bit version in Windows.
Anonymous
Not applicable
Author

Hi,
Could you please create a new job with: tFileArchive-->tFileDelete for testing only to see if it is OK with you?
Best regards
Sabrina