Skip to main content

Hi There,

 

I am trying to create my own folder structure with the help of this article:

https://community.safe.com/s/article/create-specific-directory-structure-in-the-data-do?t=1604933837460

Setting the FME_SERVER_DEST_DIR to the FME_SHAREDRESOURCE_TEMP\\myfolder still sends all the results into a fme engine folder (fme_temp/engine/fmeengines/localhost_Engine4/_auto_zip_dataset_1604932399611_14776.zip) and the download zip file still contains the standard writer folders (ACAD_1, ACAD_2, etc) and not the expected myfolder name.

Another issue I have is that using the filecopy writer to copy 2 files from the FME Server resources into the data download zip file results in an empty zip file.

 

Did anybody successfully use this method to create a custom folder structure AND copy files into it? Is it at all possible?

 

Cheers,

 

Itay

Hi @itay​ ,

 

The Data Download service writes to a temp location on the engine, so does not use the file path value set in the workspace. If you'd like to change the folder structure within the zip file please see the answer on this question.

 

For your second query with the File Copy Writer this is actually a known issue. In your if the format attribute filecopy_dest_dataset is set FME will copy the files here instead of to the data download zip file destination (Bug Ref: FMESERVER-13766). Therefore to make sure these files are copied into the zip file, please do not set the filecopy_dest_dataset attribute in your workspace.


Hi @itay​ ,

 

The Data Download service writes to a temp location on the engine, so does not use the file path value set in the workspace. If you'd like to change the folder structure within the zip file please see the answer on this question.

 

For your second query with the File Copy Writer this is actually a known issue. In your if the format attribute filecopy_dest_dataset is set FME will copy the files here instead of to the data download zip file destination (Bug Ref: FMESERVER-13766). Therefore to make sure these files are copied into the zip file, please do not set the filecopy_dest_dataset attribute in your workspace.

Hi @hollyatsafe​ ,

Thanks for getting back to me on this issue.

 

I have seen the article you mention and it explains how to add results into the data download zip file. What I am searching for is how to create a custom folder structure, for example myfolder and a subfolder (mysubfolder) for the translation results.

 

The structure gets created kind of correctly, the files that should be in the subfolder are written into the subfolder (using the write fanout expression), but each subfolder has the same main folder and what I need is 1 main folder (containing the copied files) and 1 subfolder containing the translated result.

Something like:

KnipselNext to that each main folder is created in a folder and the name of that folder is defined by the writer (ACAD1,ACAD2, etc), is there any way of avoiding that?

For your information this works perfectly on desktop.

 

For copying the files into the mainfolder I will remove the filecopy_dest_dataset from the workspace and give it a spin.

Cheers,

Itay

 


Hi @hollyatsafe​ ,

Thanks for getting back to me on this issue.

 

I have seen the article you mention and it explains how to add results into the data download zip file. What I am searching for is how to create a custom folder structure, for example myfolder and a subfolder (mysubfolder) for the translation results.

 

The structure gets created kind of correctly, the files that should be in the subfolder are written into the subfolder (using the write fanout expression), but each subfolder has the same main folder and what I need is 1 main folder (containing the copied files) and 1 subfolder containing the translated result.

Something like:

KnipselNext to that each main folder is created in a folder and the name of that folder is defined by the writer (ACAD1,ACAD2, etc), is there any way of avoiding that?

For your information this works perfectly on desktop.

 

For copying the files into the mainfolder I will remove the filecopy_dest_dataset from the workspace and give it a spin.

Cheers,

Itay

 

Hi @itay​ ,

 

By default the data download service will use the writer name to define the folders for each dataset within the zip file, it does not use any of the destination values you've set on Writers within the workspace on FME Desktop.

 

The linked community post does specifically demonstrate how to modify the folder structure within the zip file path. After following the instructions on that post, that is, gone to Data Download > Edit Properties > '...' button by include writers in download > More > edit the value under Path in Zip File to MyFolder/Mysubfolder, and then proceed with publishing the workspace to FME Server. If the changes you made here are not being picked up, we will need to investigate.

 

Please send a screenshot of the Data Download Properties where you have set the 'Path in Zip File' and let me know what build of FME Desktop/Server you are working with and I can look into this.

 


Hi @hollyatsafe​ ,

Thanks for getting back to me on this issue.

 

I have seen the article you mention and it explains how to add results into the data download zip file. What I am searching for is how to create a custom folder structure, for example myfolder and a subfolder (mysubfolder) for the translation results.

 

The structure gets created kind of correctly, the files that should be in the subfolder are written into the subfolder (using the write fanout expression), but each subfolder has the same main folder and what I need is 1 main folder (containing the copied files) and 1 subfolder containing the translated result.

Something like:

KnipselNext to that each main folder is created in a folder and the name of that folder is defined by the writer (ACAD1,ACAD2, etc), is there any way of avoiding that?

For your information this works perfectly on desktop.

 

For copying the files into the mainfolder I will remove the filecopy_dest_dataset from the workspace and give it a spin.

Cheers,

Itay

 

Hi @hollyatsafe​ ,

 

I have removed the filecopy_dest_dataset and adjusted the Data Download properties 🙈.

All works as desired, thanks for your assistance.


Hi @hollyatsafe​ ,

Thanks for getting back to me on this issue.

 

I have seen the article you mention and it explains how to add results into the data download zip file. What I am searching for is how to create a custom folder structure, for example myfolder and a subfolder (mysubfolder) for the translation results.

 

The structure gets created kind of correctly, the files that should be in the subfolder are written into the subfolder (using the write fanout expression), but each subfolder has the same main folder and what I need is 1 main folder (containing the copied files) and 1 subfolder containing the translated result.

Something like:

KnipselNext to that each main folder is created in a folder and the name of that folder is defined by the writer (ACAD1,ACAD2, etc), is there any way of avoiding that?

For your information this works perfectly on desktop.

 

For copying the files into the mainfolder I will remove the filecopy_dest_dataset from the workspace and give it a spin.

Cheers,

Itay

 

Hi @itay​ 

Phew 😅 I'm glad to hear that's working - thanks for letting me know!


Reply