Skip to main content
Solved

What is causing the AttributeExposer to remove the values when it exposes fme_basename and fme_dataset format attributes?

  • February 15, 2022
  • 2 replies
  • 22 views

gmbutler2
Contributor
Forum|alt.badge.img+10

I am using FME 2020 (Build 20218) and I find that if I expose the fme_basename and fme_dataset in the Reader Feature Type they are read normally and have no issue, however I am curious why if I use an AttributeExposer to expose those attributes in the workspace, the values for these attributes are exposed with null values. What is causing the AttributeExposer to remove the values when it exposes these format attributes?

 

image

Best answer by jovitaatsafe

Hi @gmbutler2​ , it looks like according to the AttributeExposer Usage Notes, fme_basename and fme_dataset are not read unless they are exposed in the Reader Feature type or in a FeatureReader. In other words, I don't think these fme attributes exist in the workspace unless they were exposed at the reader level. Is that the case for what you’re noticing for the AttributeExposer?

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

2 replies

jovitaatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • Best Answer
  • February 15, 2022

Hi @gmbutler2​ , it looks like according to the AttributeExposer Usage Notes, fme_basename and fme_dataset are not read unless they are exposed in the Reader Feature type or in a FeatureReader. In other words, I don't think these fme attributes exist in the workspace unless they were exposed at the reader level. Is that the case for what you’re noticing for the AttributeExposer?


gmbutler2
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • February 16, 2022

Yes! That appears to be the case. I wanted to try and make a workspace more simplified for a user who has never used FME so that they don't have to do anything when adding new files except choose the new file location. Then expose those later so that I could make an exact copy of the same file at that location with a suffixed file name to let the user know when the file is successfully updated. However I just have to make note of a few extra steps to expose those at the reader level so that the workspace runs the same way.


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