Skip to main content
Question

FeatureReader data path

  • December 7, 2018
  • 8 replies
  • 225 views

jdh
Contributor
Forum|alt.badge.img+36
  • Contributor
  • 2001 replies

I have a workflow where I need to use the featureReader to read in some data. The dataset parameter is an attribute containing a wildcard character in the path.

 

 

Is there any way of determining the actual file a feature belongs to, as the fme_dataset attribute does not seem to be present on the feature (it's not a matter of exposing it, it's not there to be exposed).
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

8 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2937 replies
  • December 7, 2018

I can't reproduce this with a Text File reader but I think I have seen this before... What is the format? What FME version? Did you merge initiator attributes?


jdh
Contributor
Forum|alt.badge.img+36
  • Author
  • Contributor
  • 2001 replies
  • December 7, 2018

I can't reproduce this with a Text File reader but I think I have seen this before... What is the format? What FME version? Did you merge initiator attributes?

2018.1 (18528). The actual data is xml, but I also tried a few other vector formats. Raster formats do have the fme_dataset present.

 

 

Merging initiator attributes gives the initiating feature's fme_dataset, not merging attributes it's not present.

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2937 replies
  • December 7, 2018

2018.1 (18528). The actual data is xml, but I also tried a few other vector formats. Raster formats do have the fme_dataset present.

 

 

Merging initiator attributes gives the initiating feature's fme_dataset, not merging attributes it's not present.

Couldn't reproduce in 2016 (sorry) but can reproduce in 2018.1.1 (18567) with XML reader and path without wildcard. Weird, think it might need a ticket.

Workaround could be to use a FeatureReader Directory and File reader first, then merge initiator attribute, but this is not how it should work I think.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3422 replies
  • December 7, 2018

I can get the fme_dataset value with no issue in 18552. You do need to expose as both a schema parameter and in the additional attributes to expose box if using a generic output port

 


jdh
Contributor
Forum|alt.badge.img+36
  • Author
  • Contributor
  • 2001 replies
  • December 7, 2018

I can get the fme_dataset value with no issue in 18552. You do need to expose as both a schema parameter and in the additional attributes to expose box if using a generic output port

 

With an xml file? I just tried in build 18552, and it still comes up as missing, even when using a hardcoded path and feature type.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3422 replies
  • December 7, 2018

With an xml file? I just tried in build 18552, and it still comes up as missing, even when using a hardcoded path and feature type.

Yes, just updated with a screenshot of the output above


jdh
Contributor
Forum|alt.badge.img+36
  • Author
  • Contributor
  • 2001 replies
  • December 7, 2018

Yes, just updated with a screenshot of the output above

That's special. I wouldn't have thought to expose the schema attribute in the parameters, especially since the feature reader is set to Data Features.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3422 replies
  • December 7, 2018

That's special. I wouldn't have thought to expose the schema attribute in the parameters, especially since the feature reader is set to Data Features.

I ran into the same problem before. I think it might be inconsistent between file types but I didn't think too much about whether it was the 'correct' behaviour as long as i had something working.