Skip to main content
Question

FME Server: filename inside data download zipfile.

  • September 1, 2020
  • 4 replies
  • 90 views

davtorgh
Contributor
Forum|alt.badge.img+10

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

4 replies

Forum|alt.badge.img+2

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.


davtorgh
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • September 2, 2020
hollyatsafe wrote:

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


Forum|alt.badge.img+2
davtorgh wrote:

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.

 


ashish_man
Contributor
Forum|alt.badge.img+4
  • Contributor
  • June 9, 2022

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


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