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?
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.
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.
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.
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:
Next 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.
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:
Next 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.
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.
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:
Next 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.
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:
Next 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.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.