Solved

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

  • 13 November 2018
  • 10 replies
  • 62 views

Userlevel 4
Badge +13

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?

icon

Best answer by hollyatsafe 13 November 2018, 19:02

View original

10 replies

Badge +2

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

Badge +21

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 !

Badge

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!

Badge

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

Badge +21

@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

 

Badge

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.

Badge +2

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

Badge

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.

Badge +2

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.

Badge

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!

Reply