Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Clopes
Contributor III
Contributor III

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.

 

 

Labels (2)
32 Replies
Clopes
Contributor III
Contributor III
Author

Sabrina,

 

I've created this post because i CAN'T do what you are recommending.

I can do the ftpget but the ftpput doesn't work

Anonymous
Not applicable

Hello,


@Clopes wrote:
Is there another way to transfert files from server 1 to server 2 without copying them in Talend server ?

So far, talend don't support for transferring data by air.  You cannot directly transfer your files from FTP server1 to server 2 without copying them to a local directory.

Could you please try to put your local file into your destination remote FTP directory by using tFTPPut component to see if it works?

The work flow looks like: tFTPConnection(destination remote FTP server)-->tFTPPut.

Best regards

Sabrina

Clopes
Contributor III
Contributor III
Author

Sorry but it doesn't work
Anonymous
Not applicable

Hello,

You are still losing folders tree and all files are put into the root folder instead of every folder?

Have you already tried to check out " Move to the current directory" option in tFTPPut component?

This option appears when " Use an existing connection" is enabled.  You can select this check box to change the directory to the one specified in the Remote directory field.

 

Best regards

Sabrina

 

Clopes
Contributor III
Contributor III
Author

It does nothing.

I've tried the move to the current directory and unchek it, put the folders local and distant in hard (no context variable).

I can connect to the server because i've tried the tFTPFileList but the put doesn't do anything.

May be it's my mask ?

Regex is uncheked and i have the "*" to retrieve the folders and the files.

Anonymous
Not applicable

Hello,

When you enter the name of the remote directory you want to upload, do you put "/" at the beginning and "/" at the end of the path?

Note:The ftp component don't have a function of creating directory. So, it is impossible to copy a directory from local to a ftp server, it is only used to transfer file.

Best regards

Sabrina

Clopes
Contributor III
Contributor III
Author

I have just tried with the / at the beginning and the end and i have this warning

 

[WARN ]: clients.jcltgreqlisyncserverprod2rec_0_1.jCLTGREQLISyncServerProd2Rec - tFTPPut_1 - No match file exist!

I have added the "*QVD" and "*.csv" and created the folders in the remote server as the connector will not create them as you said.

0683p000009LsOv.jpg

Anonymous
Not applicable

Hello,

In your tFTPPut componet, you are using a relative path for your local directory? Your selected files is not from a defined local directory?

Best regards

Sabrina

 
Clopes
Contributor III
Contributor III
Author

Ok

Got it.

 

the folders source are

../Qlik/test2/test1.QVD

../Qlik/test2/test2.csv

../Qlik/test1/test.csv

 

And destination is

/test2/

 

I thought that in the tftpput local repertory, not writing all the path will take all folders in source.

Wrong.

If i write /Qlik/test2 to /test2/test2 it works.

How can i retrieve all files with folders dynamically to dynamically destination ?

Clopes
Contributor III
Contributor III
Author

I'm executing y job in local so it's a local folder