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: 
abhi90
Creator II
Creator II

tfileArchive taking Workspace as Default Directory

Hi All,

Hope everyone is doing fine.0683p000009MACn.png

I am facing a strange issue. I have designed a Reusable Archival Job which archives Files to s3 mentioned location. Now context.SRC_DIR is some other location which is coming from the Master Job. But Everytime this Job is creating .zip file of the particular any .csv in the Location where talend is present .C:\Users\aghosh46\Desktop\Softwares\TOS_BD-20170623_1246-V6.4.1\TOS_BD-20170623_1246-V6.4.1. I have placed a tfiledelete which operation is to delete .zip files which is not working as a result. using Talend Open Studio 6.4.1. Anyone with any help. @rhall , @manodwhb@TRF will be really appreciated

0683p000009LyCb.jpg

0683p000009LyCg.jpg

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@abhi90,it is bit difficult to replicate the issue.i suggest you to check tfileArchive with hard coded values test the component alone and then use the context values.

View solution in original post

8 Replies
abhi90
Creator II
Creator II
Author

For Testing purpose When I am putting the Value of SRC_DIR Context Value in the Directory Field of tfileArchive it is still creating those .zip in C:\Users\myusername\Desktop\Softwares\TOS_BD-20170623_1246-V6.4.1\TOS_BD-20170623_1246-V6.4.1. How this is happening?any clue

@lli@xdshi

manodwhb
Champion II
Champion II

@abhi90,it is bit difficult to replicate the issue.i suggest you to check tfileArchive with hard coded values test the component alone and then use the context values.

abhi90
Creator II
Creator II
Author

Hi @manodwhb,

was actually checking that. But strange thing is still that Location it is picking i.e C:\Users\myusername\Desktop\Softwares\TOS_BD-20170623_1246-V6.4.1\TOS_BD-20170623_1246-V6.4.1 0683p000009MPcz.png 

TRF
Champion II
Champion II

"context.SRC_DIR is some other location which is coming from the Master Job"

are you sure SRC_DIR is passed from parent to child job?

the location where the archive file is created is the default for every output file as soon the target directory is not defined (a common mistake when context or global variable is null or not defined).

manodwhb
Champion II
Champion II

@abhi90,since i was using the tfileArchive, i do not see any problem ,when i had coded the value is was creating .zip file. you need to be sure about the values of context.SRC_DIR .

abhi90
Creator II
Creator II
Author

Hi @TRF,

Yes context.SRC_DIR I am passing from Master Job. as it will be reusable for Archival so it will pass from Master to this Child Job. in tFileArchive also under Directory I am giving context.SRC_DIR as well as tried with Hardcoded Value. Still it is been creating in Workspace

Anonymous
Not applicable

Hi

This is due to a somewhat ill-considered attitude. But normally it is practically a duty to set the path for the archive anyway and not just to adopt the default settings.

abhi90
Creator II
Creator II
Author

Hi @manodwhb@lli,

Got the Issue which was coming due to Slash of Directory path where File was supposed to archive but not getting that was taking Default Path where Talend Launcher is present. Marking the Answer as Solution