#1 2012-06-12 05:47:41

surendrag
Member
Registered: 2010-11-08
Posts: 29

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

Offline

#2 2012-06-12 06:35:59

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: tFileRename component

Hi Surendra

How about renaming a file with the tSystem component by using commands?

Regards,
Pedro


Only Paranoid Survive.

Offline

#3 2012-06-12 06:52:09

surendrag
Member
Registered: 2010-11-08
Posts: 29

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

Offline

#4 2012-06-12 08:07:50

surendrag
Member
Registered: 2010-11-08
Posts: 29

Re: tFileRename component

Hi Pedro,

This way, it does not seem to be supported for UNC path. Any suggestion?

Thank you.

Regards,

Surendra

Offline

#5 2012-06-12 08:44:52

pedro
Member
Registered: 2011-11-17
Posts: 3682

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.

Code:

 <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


Only Paranoid Survive.

Offline

#6 2012-06-13 01:01:49

surendrag
Member
Registered: 2010-11-08
Posts: 29

Re: tFileRename component

Thank you very much Pedro. That works.

Best regards,

Surendra

Offline

#7 2012-06-14 01:36:33

surendrag
Member
Registered: 2010-11-08
Posts: 29

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

Offline

#8 2012-06-14 03:55:33

pedro
Member
Registered: 2011-11-17
Posts: 3682

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


Only Paranoid Survive.

Offline

#9 2012-06-15 06:54:36

surendrag
Member
Registered: 2010-11-08
Posts: 29

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

Offline

#10 2012-06-18 09:56:44

avdbrink
Member
Company: Conspect Consulting & ICT
Registered: 2010-11-08
Posts: 360
Website

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

Offline

Board footer

Powered by FluxBB