Question

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

  • 20 July 2021
  • 5 replies
  • 97 views

Badge +6

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

Userlevel 4
Badge +30

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

 

Badge +6

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,

Badge +6

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,

Userlevel 4
Badge +30

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 ).

Badge +6

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