Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
sushantk19
Creator
Creator

renaming a file

hello,

i recieve a file with a timestamp such as qppxg6dy3oqo_2021-09-14T090000_8fd9627ba6f33235446f8fcb88ca7891_c3575d. csv in my local shared drive. how can i rename this file to a name that I want something like file.csv

i tried "mv *.* file1.csv" in tsystem component of talend, but is giving me an error. I have share the screenshot of teh component. Is there any other way to do it.

Labels (3)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@Sushant Kapoor​ ,check this is working for me. You need to check the configuration of tfilecopy. and the values what are you getting.

 

 0695b00000IeHngAAF.png 

Thanks,

Manohar

View solution in original post

5 Replies
manodwhb
Champion II
Champion II

@sushantk19 (Customer)​ , you can check the below scenario to rename the files.

 

https://help.talend.com/r/UnUtyrKpHkBWzBHzA4PPYg/1jIg2GLSxzginFRAMCzFzw

 

Thanks,

Manohar

sushantk19
Creator
Creator
Author

@manodwhb: i read about this. why do i get the below error even though i have 3 files at the location:

 

[statistics] connecting to socket on port 4015

[statistics] connected

[ERROR] 15:08:17 .job_000_adjust_20210914_0_1.job_000_Adjust_20210914- The source File "qppxg6dy3oqo_2021-09-14T100000_8fd9627ba6f33235446f8fcb88ca7891_2853a9.csv" does not exist or is not a file.

[ERROR] 15:08:17 .job_000_adjust_20210914_0_1.job_000_Adjust_20210914- tFileCopy_1 qppxg6dy3oqo_2021-09-14T100000_8fd9627ba6f33235446f8fcb88ca7891_2853a9.csv

[ERROR] 15:08:17 .job_000_adjust_20210914_0_1.job_000_Adjust_20210914- The source File "qppxg6dy3oqo_2021-09-14T100000_8fd9627ba6f33235446f8fcb88ca7891_be822a.csv" does not exist or is not a file.

[ERROR] 15:08:17 .job_000_adjust_20210914_0_1.job_000_Adjust_20210914- tFileCopy_1 qppxg6dy3oqo_2021-09-14T100000_8fd9627ba6f33235446f8fcb88ca7891_be822a.csv

[ERROR] 15:08:17 .job_000_adjust_20210914_0_1.job_000_Adjust_20210914- The source File "qppxg6dy3oqo_2021-09-14T100000_8fd9627ba6f33235446f8fcb88ca7891_c3575d.csv" does not exist or is not a file.

[ERROR] 15:08:17 .job_000_adjust_20210914_0_1.job_000_Adjust_20210914- tFileCopy_1 qppxg6dy3oqo_2021-09-14T100000_8fd9627ba6f33235446f8fcb88ca7891_c3575d.csv

[statistics] disconnected

manodwhb
Champion II
Champion II

@Sushant Kapoor​ ,check this is working for me. You need to check the configuration of tfilecopy. and the values what are you getting.

 

 0695b00000IeHngAAF.png 

Thanks,

Manohar

sushantk19
Creator
Creator
Author

@Manohar B​ : Yes, it works fine now. Thanks for your inputs

Anonymous
Not applicable

Hello,

That is really good answer, have you thought of entering our competition?

https://community.talend.com/s/blog/aGn5b000000CaZw/getting-smart-about-talend-tip-of-the-day

There are rewards for winners!

Best regards

Sabrina