Skip to main content
Solved

Move and Rename CSV


keller
Contributor
Forum|alt.badge.img+7

This may be a little simple but it seems not to work for me, I have a workspace that reads a .csv file and runs a process. Ideally i would like to move this csv file once the process is complete and rename it by date.

What i have tried so far,

After the reader i created a junction and I put one process to run through the whole workspace and another arrow i put to a DateTime stamper, DateTimeConverter and created the attributes filecopy_source_dataset, filecopy_dest_dataset and filecopy_dest_filename, (based on several tutorials i have been reading.) I then use the filecopy writer to move the file. The file gets moved but the name is not changed and i get a warning that --> Ignoring the destination filename .. because the source dataset...was not a file. Destination file names are only used when the source dataset is a file.

For some reason the exact name i did set (@Value(Datum)_@Value(filecopy_dest_filename)) is shown in the written summary but not on the folder, anyone with an idea of how i can approach this?

 

With thanks,

Keller.

Best answer by hkingsbury

I've attached an example of how you could do it :)

View original
Did this help you find an answer to your question?

2 replies

hkingsbury
Celebrity
Forum|alt.badge.img+55
  • Celebrity
  • Best Answer
  • May 12, 2023

I've attached an example of how you could do it :)


keller
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • May 12, 2023

Hey @hkingsbury​ many thanks for the help, it saved the day.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings