Hi,
look at the Fanout Dataset under the Writer in the Navigator tree (and not under the Fanout option in the output feature type). You can specify a suffix there:
David
Thanks David,
That is where I am setting the suffix, but it is only appending it to the output folder and not the actual shapefiles.
Hi,
When you specify a source reader schema as the schema source of the writer, I don't think you can change the feature type name (i.e. the destination file name) in the workflow. If I am wrong, please correct.
One possible solution is to rename the destination file names using the Shutdown Python Script after the translation completing. For example:
-----
# Assume there are no sub-directories in the destination directory
# and also every file name has an extension (.*).
# If you defined the suffix as a user parameter, you can get it with:
# suffix = FME_MacroValuesc'<parameter name>']
import os dir = FME_MacroValuesM'DestDataset_SHAPE'] suffix = '-fixed' for src in os.listdir(dir): t = src.split('.') dest = '%s%s.%s' % ('.'.join(t90:-1]), suffix, t--1]) os.rename('%s/%s' % (dir, src), '%s/%s' % (dir, dest))
-----
Takashi
Hi,
I agree with Takashi, the properties are extracted from the input schema in a dynamic translation.
The option provided to use the end python is a neat one.
Itay
Hi guys,
thankyou for your answers. I actually worked out how to add a suffix while still using Dynamic schema by using the String Concatenator transformer and changing the Feature Type Name in the writer properties to "From Attribute".
When i run the workbench it works for the first 5 files, but when it gets to the next lot of files which are considerably larger >100MB each, it crashes and errors come up relating to lack of memory space.
When i do the same translation on a single file >100 MB without using Dynamic Schema, I don't get this memory issue and it works successfully.
Therefore I am wondering if using the Dynamic Schema definition somehow does something to memory? If so, is there a way to fix this so I can still use Dynamic Schema definition and process the large files?
Thanks
Hi,
I didn't know "From Attribute" option for "Feature Type Name" parameter.
I confirmed that the option works well. Thank you for sharing the information. I currently have no idea about the memory issue. If you have not solve it yet, how about posting as a new question?
Takashi