Skip to main content
Solved

fme_basename on Schema Feature


tomw202
Participant
Forum|alt.badge.img+4

Is it possible to expose fme_basename on schema features, when reading in just a schema using a FeatureReader? I've tried exposing it on the reader parameters for an excel file, but it does not come through. Adding an AttributeExposer reports it as missing.

Thanks

Best answer by david_r

The schema features do not have an attribute fme_basename. The only available attributes are the following:

 

View original
Did this help you find an answer to your question?

4 replies

david_r
Evangelist
  • Best Answer
  • August 7, 2019

The schema features do not have an attribute fme_basename. The only available attributes are the following:

 


tomw202
Participant
Forum|alt.badge.img+4
  • Author
  • Participant
  • August 7, 2019
david_r wrote:

The schema features do not have an attribute fme_basename. The only available attributes are the following:

 

That makes sense as to why I couldn't expose it then!

david_r
Evangelist
  • August 7, 2019
tomw202 wrote:
That makes sense as to why I couldn't expose it then!

Here's a tip I use often: I you're not sure if a certain attribute is exposable, send the output to the Logger and see what is printed in the log. If you see an attribute in the log that isn't visible in the workspace, then you can expose it to access it.

An alternative is to set a breakpoint in your workspace, and look at the Feature Inspector for a list of all the attributes that are available at that point, exposed or not.


  • February 8, 2021
tomw202 wrote:
That makes sense as to why I couldn't expose it then!

Why is this the case? I want to read schemafeatures from a zipped file containing multiple files (to check for empty layers per dwg zipped in a delivery). Normally I would for instance read a file structure with a Pathreader and then merge the initiator and the schemafeatures (result) together in the FeatureReader that is going to read the actual dwg-file, but since I'm reading from a zipfile (on fme-server btw), the attribute path_windows just shows the name of the zipfile. Having fme_basename or fme_dataset being 'exposable' from the Schema port would be very helpful. Thanks!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings