Skip to main content

Hi everybody,

 

I have a seemingly trivial problem that I can't solve: I would like the name of a file inside the zipfile produced by FME Server data download service to be the same as the one produced by FME Desktop (maybe statically defined or by some parameters/attribute values) instead of a random meaningless name.

 

Any advice?

 

Thanks

Hi @davtorgh​ ,

You can set the filename to be used for the Data Download Zip in the Service Properties when you are publishing the workspace to FME Server. Please see the answer on this Question for instructions on how to do this.


Hi @davtorgh​ ,

You can set the filename to be used for the Data Download Zip in the Service Properties when you are publishing the workspace to FME Server. Please see the answer on this Question for instructions on how to do this.

Hi @hollyatsafe​ ,

 

thanks for your answer, but this not seems to resolve my issue, because the name set in the Data Download Zip in the Service Properties is statically defined during the publishing procedure. I need, instead, a way to make the name dynamically defined based on the name it gets in workspace.

 

Let me clarify with an example:

  • in the workspace there is a parameter (published or private, it doesn't matter) 'year' set to '2020';
  • in the workspace the output filename is set to 'project_$(year).qgs' (in this example the name is 'project_2020.qgs');
  • everything works fine in FME Workbench, but I want the same name in the zipfile returned by FME Server.

 

Thanks


Hi @hollyatsafe​ ,

 

thanks for your answer, but this not seems to resolve my issue, because the name set in the Data Download Zip in the Service Properties is statically defined during the publishing procedure. I need, instead, a way to make the name dynamically defined based on the name it gets in workspace.

 

Let me clarify with an example:

  • in the workspace there is a parameter (published or private, it doesn't matter) 'year' set to '2020';
  • in the workspace the output filename is set to 'project_$(year).qgs' (in this example the name is 'project_2020.qgs');
  • everything works fine in FME Workbench, but I want the same name in the zipfile returned by FME Server.

 

Thanks

Hi @davtorgh​ ,

 

It is not currently possible to set up the file name in the data download URL dynamically using attribute or user parameter values. I'd recommend adding a vote and supporting comments to the Idea requesting this enhancement.

 


Ran into this issue too, definitely voted the idea. Alternatively, we can use a filecopy writer to rename the file once created and specify the output of filecopy writer to use in Data Download.


Reply