Skip to main content
Solved

How can I change the folder structure returned in the zip file from FME Servers Data Download Service?


fmelizard
Contributor
Forum|alt.badge.img+17

I recently upgraded my FME Server and now when I run jobs using the data download service the zip file returns an unwanted file hierarchy with additional folders named after each Writer in my workspace (e.g. XLSXW2_1 and GEODATABASE_FILE_1), how can I remove these folders?

Best answer by hollyatsafe

Changes were made in FME Server 2017 that caused folders with the names of the writers used in the workspace to be created in the zip file returned by the data download service. However in 2018.1 we introduced another change to give back more control to help fix any unwanted behaviour.

 

In FME 2018.1 onwards, you can remove these unwanted folders by setting the structure of the output zip file when publishing the workspace to FME Server.

 

From the Register Services page, click Edit beside the Data Download service, then click the '...' button next to Include Writers in Download, then click on 'More...'. This will open a dialog that will let you set up the paths for each of the files within the zip file.

datadowloadfolderstructure

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

10 replies

Forum|alt.badge.img+2
  • Best Answer
  • November 13, 2018

Changes were made in FME Server 2017 that caused folders with the names of the writers used in the workspace to be created in the zip file returned by the data download service. However in 2018.1 we introduced another change to give back more control to help fix any unwanted behaviour.

 

In FME 2018.1 onwards, you can remove these unwanted folders by setting the structure of the output zip file when publishing the workspace to FME Server.

 

From the Register Services page, click Edit beside the Data Download service, then click the '...' button next to Include Writers in Download, then click on 'More...'. This will open a dialog that will let you set up the paths for each of the files within the zip file.

datadowloadfolderstructure


sigtill
Contributor
Forum|alt.badge.img+24
  • Contributor
  • November 13, 2018
hollyatsafe wrote:

Changes were made in FME Server 2017 that caused folders with the names of the writers used in the workspace to be created in the zip file returned by the data download service. However in 2018.1 we introduced another change to give back more control to help fix any unwanted behaviour.

 

In FME 2018.1 onwards, you can remove these unwanted folders by setting the structure of the output zip file when publishing the workspace to FME Server.

 

From the Register Services page, click Edit beside the Data Download service, then click the '...' button next to Include Writers in Download, then click on 'More...'. This will open a dialog that will let you set up the paths for each of the files within the zip file.

datadowloadfolderstructure

Good to know this @arnebrucksch !


cwarren
Forum|alt.badge.img
  • November 13, 2018
hollyatsafe wrote:

Changes were made in FME Server 2017 that caused folders with the names of the writers used in the workspace to be created in the zip file returned by the data download service. However in 2018.1 we introduced another change to give back more control to help fix any unwanted behaviour.

 

In FME 2018.1 onwards, you can remove these unwanted folders by setting the structure of the output zip file when publishing the workspace to FME Server.

 

From the Register Services page, click Edit beside the Data Download service, then click the '...' button next to Include Writers in Download, then click on 'More...'. This will open a dialog that will let you set up the paths for each of the files within the zip file.

datadowloadfolderstructure

Wow. I just was looking for a way to customize that!


Forum|alt.badge.img

@hollyatsafe why is this fix not enabled for the data streaming option which is also returning nonsense folders?


sigtill
Contributor
Forum|alt.badge.img+24
  • Contributor
  • December 9, 2019
hannesfpaulin wrote:

@hollyatsafe why is this fix not enabled for the data streaming option which is also returning nonsense folders?

The streaming can only return a single file I assume. So if you only select your shape or your mdb - what happens? @hannesfpaulin

 


Forum|alt.badge.img
sigtill wrote:

The streaming can only return a single file I assume. So if you only select your shape or your mdb - what happens? @hannesfpaulin

 

Data streaming returns multiple files in one zip. But with the unwanted sub folders.


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

@hollyatsafe why is this fix not enabled for the data streaming option which is also returning nonsense folders?

Hi @hannesfpaulin,

The data streaming service was designed to be used to deliver content to be displayed in the web browser immediately and therefore having the option to configure the file path was not taken into consideration. If you select more than one writer for the data streaming service then a zipped file will be downloaded instead. Since the Data Download service specialises in delivering zip files this is why the enhancement was made there.

Is there a reason you need to use the Data Streaming service instead of the Data Download? Is it that the Download provides a link whilst the Streaming directly presents the download? If you could describe your use case this would assist me when requesting this enhancement.


Forum|alt.badge.img
hollyatsafe wrote:

Hi @hannesfpaulin,

The data streaming service was designed to be used to deliver content to be displayed in the web browser immediately and therefore having the option to configure the file path was not taken into consideration. If you select more than one writer for the data streaming service then a zipped file will be downloaded instead. Since the Data Download service specialises in delivering zip files this is why the enhancement was made there.

Is there a reason you need to use the Data Streaming service instead of the Data Download? Is it that the Download provides a link whilst the Streaming directly presents the download? If you could describe your use case this would assist me when requesting this enhancement.

Hello @hollyatsafe

The data streaming is used in several ways. One is citrix clients that are using data streaming to return files. We also have web clients and the preferable way of returning files is also wihtout a separate window.

In all export functionalities the streaming option is used to return files independent of any web browser that may, or may not, be involved in the tool.


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

Hello @hollyatsafe

The data streaming is used in several ways. One is citrix clients that are using data streaming to return files. We also have web clients and the preferable way of returning files is also wihtout a separate window.

In all export functionalities the streaming option is used to return files independent of any web browser that may, or may not, be involved in the tool.

Hi @hannesfpaulin,

I have filed an enhancement request to add the option to set the file in zip path for the Data Streaming Service (FMESERVER-14012) and will update this post when the issue is resolved.


Forum|alt.badge.img
hollyatsafe wrote:

Hi @hannesfpaulin,

I have filed an enhancement request to add the option to set the file in zip path for the Data Streaming Service (FMESERVER-14012) and will update this post when the issue is resolved.

Thank you @hollyatsafe that is very good news!


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