Skip to main content
Question

FeatureReader data path

  • December 7, 2018
  • 8 replies
  • 158 views

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor

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).

8 replies

nielsgerrits
VIP
Forum|alt.badge.img+53

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+28
  • Author
  • Contributor
  • December 7, 2018
nielsgerrits wrote:

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+53
jdh wrote:

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+31
  • Influencer
  • 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+28
  • Author
  • Contributor
  • December 7, 2018
ebygomm wrote:

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+31
  • Influencer
  • December 7, 2018
jdh wrote:

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+28
  • Author
  • Contributor
  • December 7, 2018
ebygomm wrote:

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+31
  • Influencer
  • December 7, 2018
jdh wrote:

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.


Reply


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