Five Stars

FTP transfert

Hi,

TAC 6.2

 

I've got a question about ftp transfer.

I'm trying to get files with folders from a windows server to another windows server througth Talend Unix server.

The Get part works fine and all files with folders are in the Talend server.

My problem is in the put part.

When i put those files, i'm loosing the folders or i think it tries to copy the file with the tree Talend server.

First tree server is ./Folder1/file

Talend is ./home/user/Folder1/file

Second tree server is ./Folder1/file

 

My job:

 

tFtpConnection1 ==> tFTPGet

II

V

tFtpConnection2 ==> tFileList ==> tFTPPut

 

The tFileList get all files and folders.

In the tFTPPut, the files are ((String)globalMap.get("tFileList_1_CURRENT_FILE"))

It doesn't work.

Wher do i miss something ?

Do i have to zip all files/folders from 1st server and unzip it in the 2nd one ?

 

Thanks.

 

 

Tags (2)
11 REPLIES
Moderator

Re: FTP transfert

Hello,

Please use  tFTPFileList instead of tfilelist component which is used to list files in local not FTP server.

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.
Five Stars

Re: FTP transfert

Hello Sabrina.

 

the ftpget copy from the server 1 to the Talend Server.

Then from local Talend Server  to server 2, so that's why i used the fFileList.

If i can copy the files directly from server1 to server2 using tftpget or tftpput, it will be nice but it seems i can't do it.

 

Five Stars

Re: FTP transfert

Here is my job

Seven Stars sgv
Seven Stars

Re: FTP transfert

Hi,

essaye plutôt avec ça ^^

((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))

 

Good luck,

SGV

Five Stars

Re: FTP transfert

Hi,

 

Si je prend la valeur ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")), j'aurai l'arborescence du serveur local Talend qui n'est pas la meme que celle du serveur 1 et 2. :-(

D'où mon problème.

-------------------------

If i use the ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) value, i will have the Talend tree which is not the server 1 and 2

That's my problem.

How can i do ?

Seven Stars sgv
Seven Stars

Re: FTP transfert

Hi,

 

T'es sûr de tes variables de context ? T'as essayé avec des valeurs en dur et non avec des variables ?

--------

Are you sure about your context var ? Dit you try to put the value directly in the component instead of using variable ?

 

Good luck ,

SGV

Five Stars

Re: FTP transfert

Hi,

 

Oui, dans le tfilelist, je vois bien tous mes fichiers et l'arborescence à partir du repertoire temp Talend.

Sauf qu'il ne me recopie ni les répertoires, ni les fichiers qui sont à l'intérieur. Il n'y a que les fichiers du niveau du répertoire temp qui sont copiés.

J'ai pourtant un user avec tous les droits. Il y a quelque chose qui m'échappe.

Moderator

Re: FTP transfert

Hello,

This is an international forum and English is the language we use. Posting in English will allow you to get more visibility and more help. Thanks for your understanding!

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.
Five Stars

Re: FTP transfert

Hi

 

In the tfilelist, i see all my files and folders from temp Talend folder.

But the tftpput don't transfer the folders and files that are in those folders. Only the files that are in the first folder are copied.

My user have all rights so there's something i'm missing but where ?

Five Stars

Re: FTP transfert

Moderator

Re: FTP transfert

Hello,


Clopes wrote:

Is this topic always valid ?

https://www.talendforge.org/forum/viewtopic.php?id=12656

 


We are planning to close fluxbb (old community portal) in the future. Do you need to move this thread to the new Community? Feel free to let us know it.

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.