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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -