Are you using dataset fanout? Example:
The above example will create and output "test.shp" in subdirectories based on "_creation_instance".
Hi @walgram,
Since a shapefile is a folder based format, the destination parameter points to a folder, the shapefile name is set in the writer feature type.
See the attached demo workspace, where you can dynamically create the destination folder and shapefile name
shapefilename-with-directory.fmw
Hi @walgram, a combination of Dataset Fanout and Feature Type Fanout might help you.
Assuming that "outDir" attribute stores the destination folder name and "outFilename" attribute stores your desired Shepefile file name; set the "outDir" to the Fanout Expression parameter of the Shapefile writer, and set the "outFilename" to the Shapefile Name field in the writer feature type. e.g.
See the Workbench Help to learn more about the Fanout mechanism.
FME Workbench | Separating Output Data with Fanout