Skip to main content

Hi,

I am using FME Workbench 2024. I am wanting to know if I can use a loop or iterative process of some sort to individually run multiple feature classes and shapefiles through a single AttributeKeeper Transformer for each data source, possibly using the names as an iterator. I am working on bringing in utility data from multiple sources and ultimately writing them to a single geodatabase feature dataset. First, I want to clean up the fields and only keep certain ones. Each source of data has a different schema. Currently, I can only use an AttributeKeeper on each feature class/shapefile in order to later output each to its own feature class in the output geodatabase. This would make for a messy workspace with many of the same transformers. Any advice would be greatly appreciated!

Hello, 

I think this can be achieved by a dynamic workflow. 

You can use one AttributKeeper for all your input shape-files, but have to set a SchemaScanner afterwards (set Group Processing → Group By: fme_feature_type). 

Connect the data output and the schema features to a dynamic writer. And set the Schema Definition to “Schema From Schema Feature”. 

I attached a little screenshot below. Hope it help. 

Best,

Johanna

 


You might want to use manual definitions on your output feature types (rather than automatic). anything not defined in the output feature type will just be ignored. In the end this acts in similar to an attribute keeper. 

Usually for utility network migration I’d err on the side of defining manual output schemas if possible. This will remove the chance of surprises and gives you good control over the attribute types. 

This of course doesn’t really work when you want to preserve some custom fields, if that’s the case then a dynamic schema will be your best bet, however, if you are using an AttributeKeeper this suggests that you are working with some key attributes which you already know. 


Reply