Getting Files Via FTPconnection and apload the data in a PostgreSql BDD

Five Stars

Getting Files Via FTPconnection and apload the data in a PostgreSql BDD

Hello everybody, 
I'm just starting with Talend OPS, and I wanna get a file from the server ( Via the FTPConnection), make some transformations and after that apload the data in a Pstgresql table.
I use the FTPconnection and the tFTPget to recover the file I want to, but I don't know wich component use after this step in order to  get just the rows I want to and put them in my table. 
Any one to help me please.
Thank you ! 


Accepted Solutions
Highlighted
Moderator

Re: Getting Files Via FTPconnection and apload the data in a PostgreSql BDD

Hello,

tFileInputXXX component will get the rows you want to and load them in your table. 

The work flow looks like:tFTPConnection-->tFTPGet-->tFileInputXXX-->tPostgresqlOutput

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

View solution in original post


All Replies
Highlighted
Moderator

Re: Getting Files Via FTPconnection and apload the data in a PostgreSql BDD

Hello,

tFileInputXXX component will get the rows you want to and load them in your table. 

The work flow looks like:tFTPConnection-->tFTPGet-->tFileInputXXX-->tPostgresqlOutput

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

View solution in original post

Five Stars

Re: Getting Files Via FTPconnection and apload the data in a PostgreSql BDD

Hello,

thank you for your answer.
but I don't find which one of the TfileInputXXX I have to use.
on the server, the file type is .csv with "|" as a separator. I tried tu use de TfileInputRaw, but I'm getting just an object with only one line and I can't use the Tmap in order to choose the column to put in my table.

Can you help me please?

Thank you!

Five Stars

Re: Getting Files Via FTPconnection and apload the data in a PostgreSql BDD

Hello,

I'have used the Tfileinputdelimited and it works!

Thank you

Moderator

Re: Getting Files Via FTPconnection and apload the data in a PostgreSql BDD

Hello,

Great it works. Thanks for your feedback.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog