edi - Talend : Generate and populate txt file and put in on FTP -


i have question in talend :

i need create file name "file_" + talenddate.getdate("ccyy-mm-dd hh:mm:ss") + ".txt" , populate result of sql query , add "\t" separator on each column of each row.

after that, need connect ftp (through tftpconnection component), , put file on folder (through tftpput component)

the main problem encounter don't know composent should use when i'll create text file ? should use tfileoutputpositional ? tfileoutputdelimited ? component ?

moreover, have issue : when i'm connecting ftp, no worries when i'm on tftpput component, have issue :

java.net.sockettimeoutexception: accept timed out

enter image description here

any idea ?

thanks

first need execute sql query.

to generate file should use tfileoutputdelimited on row data , change field separator tab "\t".

set filename directly in tfileoutputdelimited component. keep in mind path contains forward slashes, e.g.:

"c:/my-folder/file_" + talenddate.getdate("ccyy-mm-dd hh:mm:ss") + ".txt" 

depending on configuration might set ftp connection passive mode (see more here https://community.boomi.com/docs/doc-1643)


Comments

Popular posts from this blog

ruby on rails - Permission denied @ sys_fail2 - (D:/RoR/projects/grp/public/uploads/ -

c++ - nodejs socket.io closes connection before upgrading to websocket -

java - What is the equivalent of @Value in CDI world? -