Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Two questions regarding tFileCopy:
1.
We have a job that uses tFileCopy to move a file to a destination directory. The destination is specified in the tFileCopy component as a context variable.
Due to a misconfiguration, the job ran with the context variable still empty.
In such cases, does the file get copied anywhere, or does the component just do nothing?
2.
Furthermore, would there be any problems with the job design below, which gets the destinations from the input flow? I know sometimes in a flow, variables may be initialized to null.
Talend Data Integration v 7.3
Hi, if for eg your file is out.txt and your directory is an empty context variable tFilecopy will try to copy the file to \out.txt, it can run to an access denied exception. you can use tFLowtoIterate component to transform your flow into iteration and use the globalVar of the tFlowToIterate component into your tFileCopy component eg:
Parse Destinations -->main link--> tFlowToIterate --> iterate link --> empty tJava --> run if link (your directory name variable not null and not empty) --> tFileCopy (with the var of tFlowToIterate).
Hi, if for eg your file is out.txt and your directory is an empty context variable tFilecopy will try to copy the file to \out.txt, it can run to an access denied exception. you can use tFLowtoIterate component to transform your flow into iteration and use the globalVar of the tFlowToIterate component into your tFileCopy component eg:
Parse Destinations -->main link--> tFlowToIterate --> iterate link --> empty tJava --> run if link (your directory name variable not null and not empty) --> tFileCopy (with the var of tFlowToIterate).