I'm using FeatureReader as CSV format and trying to expose attribute 'fme_feature_type'. It's returning NULL or CSV. Instead it has to return FILENAME.
Any thoughts please?
I'm using FeatureReader as CSV format and trying to expose attribute 'fme_feature_type'. It's returning NULL or CSV. Instead it has to return FILENAME.
Any thoughts please?
Hi @fmeuser_gc
Try fme_basename or fme_dataset as the attribute to expose instead.
Whatever the brown feature type on the canvas is saying, that's the attribute value you'd get when using fme_feature_type.
Hi @fmeuser_gc
Try fme_basename or fme_dataset as the attribute to expose instead.
Whatever the brown feature type on the canvas is saying, that's the attribute value you'd get when using fme_feature_type.
I have seen this before, but only in the Data Inspector (version of the transformer is 5, works OK with version 4).
If you write the data to an output format, does it still remain NULL?
In my case it showed the file name in the output, but not in the Data Inspector, even though it was exposed.
I have seen this before, but only in the Data Inspector (version of the transformer is 5, works OK with version 4).
If you write the data to an output format, does it still remain NULL?
In my case it showed the file name in the output, but not in the Data Inspector, even though it was exposed.
@fmeuser_gc - Try using an AttributeManager after the FeatureReader to create a new attribute that references fme_feature_type as the value. I've attached a workspace template created using FME 2017.1.2 Build 17722 that demonstrates this.
The fme_feature_type remains null, but my new attribute _fft is populated and writes out correctly (using native CSV Writer).
Hope this helps!
Edit: The display issue with fme_feature_type values in the FME Workbench Canvas and FME Data Inspector is no longer observed with FME 2018.0 Build 18240 or Newer.
Have you tried exposing fme_basename or fme_dataset instead of fme_featuretype? The feature type is CSV in your case, so you need a different attribute
The answers here may be useful, especially the one from Takashi: https://knowledge.safe.com/questions/52039/what-do-fme-dataset-fme-basename-and-fme-feature-t.html
@fmeuser_gc - Try using an AttributeManager after the FeatureReader to create a new attribute that references fme_feature_type as the value. I've attached a workspace template created using FME 2017.1.2 Build 17722 that demonstrates this.
The fme_feature_type remains null, but my new attribute _fft is populated and writes out correctly (using native CSV Writer).
Hope this helps!
Edit: The display issue with fme_feature_type values in the FME Workbench Canvas and FME Data Inspector is no longer observed with FME 2018.0 Build 18240 or Newer.
Thank You for your reply.
The answers here may be useful, especially the one from Takashi: https://knowledge.safe.com/questions/52039/what-do-fme-dataset-fme-basename-and-fme-feature-t.html
Thank You for your reply.