One Star

tFTPRename showing error: RNFR command failed

Hi
I want to rename some files on a ftp server. I am using tFTPRename to do it.. In the Filemask I give "Balance_*.csv" and the new name I give as "processedBalance.csv".
But it gives an error :
Exception in component tFTPRename_1
com.enterprisedt.net.ftp.FTPException: RNFR command failed.
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:999)
at com.enterprisedt.net.ftp.FTPClient.rename(FTPClient.java:3239)
at ......

How to sort it out?
Thanks!
3 REPLIES
Community Manager

Re: tFTPRename showing error: RNFR command failed

Hello
Which version of TOS do you use? I can't reproduce this error, is there one 'Balance_*.csv' file at least on ftp server?
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: tFTPRename showing error: RNFR command failed

Hi!
I am using TIS Suite. Yes there are files such as Balance_1.csv, Balance_2.csv etc on the ftp server. But this tFTPRename is not reading characters for '*' in the file name. If I give the full file name in the tFTP Rename then it works but if i want to rename multiple files like Balance_1.csv, Balance_2.csv by giving the file mask as "Balance_*.csv" it gives this error.
Community Manager

Re: tFTPRename showing error: RNFR command failed

Hello
tFTPRename recognise character *,but if there are more than one files, it will throws exception,eg:
Exception in component tFTPRename_1
4: /u01/oracle/test/t_*.csv is not unique:
So, we should set the full name.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business