tFileRename component

One Star

tFileRename component

Hi,
I found tFileRename component on Exchange. But it does not seem to be working for 5.0.2 version of Talend Enterprise. Do we have any other component just to rename the file. I did rename through the tFileCopy, but I prefer not to use it for big file copying and renaming.
Thank you.

Regards,
Surendra
One Star

Re: tFileRename component

Hi Surendra
How about renaming a file with the tSystem component by using commands?
Regards,
Pedro
One Star

Re: tFileRename component

Hi Pedro,
Yes, that is the way I did eventually and seem to be working fine. You think this is the best option.
Regards,
Surendra
One Star

Re: tFileRename component

Hi Pedro,
This way, it does not seem to be supported for UNC path. Any suggestion?
Thank you.
Regards,
Surendra
One Star

Re: tFileRename component

Hi Surendra
Edit tFileRename_java.xml file in TOS\plugins\org.talend.designer.components.localprovider_5.1.0.NB_r82740\components.
Add <FAMILIES> node as seen below.
 <HEADER
PLATEFORM="ALL"
SERIAL=""
VERSION="0.100"
STATUS="ALPHA"

COMPATIBILITY="ALL"
AUTHOR="Edouard GUERIN"
RELEASE_DATE="20071231A"
STARTABLE="true"
>
<SIGNATURE />
</HEADER>
<FAMILIES>
<FAMILY>Custom Code</FAMILY>
</FAMILIES>
<DOCUMENTATION>
<URL />
</DOCUMENTATION>

Then restart TOS and this component works now.
Regards,
Pedro
One Star

Re: tFileRename component

Thank you very much Pedro. That works.
Best regards,
Surendra
One Star

Re: tFileRename component

Hi Pedro,
I got this tFileRename component working from designer as you advised, but when I deploy job on TAC it does not seem to be working. Is there any tweak I need to do on the TAC side as well?
Regards,
Surendra
One Star

Re: tFileRename component

Hi Surendra
When you deployed the job with TAC and JobServer, did you get any error?
When you ran the job on JobServer, did you get any error?
Regards,
Pedro
One Star

Re: tFileRename component

Hi Pedro,
Actually, I did not get any error while deploying or running from TAC on job server. But, when it ran from TAC I noticed it did not actually renamed the file.
Regards,
Surendra
One Star

Re: tFileRename component

Hi Surendrag,
To make sure the job runs well on your TAC you should make sure you install the altered tRenameFile component to the TAC as well. I don't know the tandard procedure to do this, but maybe Pedro can tell you that.
You should probably copy the component folder to the user components folder on the TAC, location can be found in TAC Configuration settings.
Regards,
Arno