Skip to main content

When I populate a FeatureReader with dynamically generated values containing the options I want, it works but not completely. It reads the parcel data I want, but returns no schema/attribute data:

 

image 

If I manually fill in the values in the exact same reader. It produces the output I do want (I.E. the parcels and their data).

image 

This is super inconvenient since our process is based on the assumption that we will not have to populate workspace objects manually each time we run them. I feel like I am missing something fundamental here that will great enhance my understanding of FME. Please help me to understand why this behavior is happening. Any help pointing me to how I might get the automated values to generate the output I want would be greatly appreciated. Thank you for your time.

 

Kim

I just had a look myself. It seems that if you make the Feature Type to Read dynamic (have the value come from an attribute), FME outputs the results through the <Generic> output port.

That does make some sense to me, as it's no longer certain that your attribute value is always that specific Feature Type 'Parcels' (with the schema of 'Parcels').

 

I guess you have two options;

  • Keep the Feature Types to Read set to the 'static value' of 'Parcels' (you can keep the dataset dynamic)
  • Expose the attributes of your 'Parcels' feature type at/after the Generic port

 

The latter can be done either directly in the FeatureReader (Output -> Attribute and Geometry Handling -> <Generic> Port -> Attributes to Expose), or using an AttributeExposer.


I just had a look myself. It seems that if you make the Feature Type to Read dynamic (have the value come from an attribute), FME outputs the results through the <Generic> output port.

That does make some sense to me, as it's no longer certain that your attribute value is always that specific Feature Type 'Parcels' (with the schema of 'Parcels').

 

I guess you have two options;

  • Keep the Feature Types to Read set to the 'static value' of 'Parcels' (you can keep the dataset dynamic)
  • Expose the attributes of your 'Parcels' feature type at/after the Generic port

 

The latter can be done either directly in the FeatureReader (Output -> Attribute and Geometry Handling -> <Generic> Port -> Attributes to Expose), or using an AttributeExposer.

This is correct. If the source is dynamic, the features are output via the generic outputport. The features and attributes are there, but they are unexposed. Check the output, select a feature and look in the Feature Information to see the unexposed attributes.

 

You probably want a dynamic output. See Tutorial: Dynamic Workflows on how to do this.


Reply