Skip to main content
Question

Adding current date in a prefixed output Excel file name into Excel Writer


jiro
Contributor
Forum|alt.badge.img+6
  • Contributor

Hi,

I'm trying to set up an FME workspace so that the name of the output file at runtime is followed by the date the output file was generated.

For example: "myexcelfile_20210720", where "myexcelfile" is the prefixed name and "20210720" the current date.

How can I implement this with the FME Desktop Excel Writer?

 

Regards,

5 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • July 20, 2021

Hi @jiro​ 

 

I suggest you to use the transformer DateTimeStamper to get the Date current.

 

On the Writer Excel, you can use the option Fanout attribute ( in navigator ) and concatenator the name:

 

Workspace_Date 

Navigator configuration:

 

Fanout 

Thanks in Advance,

Danilo

 


jiro
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • July 20, 2021

Hi Danilo,

 

Thank you for your response. I'll give it a try try write away and I'll give you a feed-back.

 Regards,


jiro
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • July 20, 2021

Hi Danilo,

Below is the Excel output file result. The file creation logic is fine but all the remaining columns are missing into the Excel file.

Thanks,


danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • July 20, 2021
jiro wrote:

Hi Danilo,

Below is the Excel output file result. The file creation logic is fine but all the remaining columns are missing into the Excel file.

Thanks,

Hi.

 

Please, send me your Workspace template ( fmwt ).


jiro
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • July 20, 2021

Oh sorry Danilo! I had not seen the other columns in the Excel file which were hidden due to the size and width of the column. The workbench works very well ...

I'm just going to change the width of the columns in the Feature Type -> User Attribute.

Thank you again for your help! It's very appreciated.


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