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
Highlighted
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

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now