Skip to main content
Best Answer

FeatureWriter - Attributes

  • June 29, 2017
  • 5 replies
  • 48 views

danilo_fme
Celebrity
Forum|alt.badge.img+52

Hi all,

My workspace is using the transformer FeatureWriter in SQL Server.

I would like to recover the attribute Operador from my source data.

The attribute Operador was simulated to be the transformer fme_basename.

How can i extract it after the transformer?

Attached my template file.

Thanks

Danilo de Lima

Best answer by erik_jan

HI @danilo_inovacao,

At this moment the FeatureWriter does not output the features and therefor does not output any attributes.

It has been added as an idea on the Knowledge Board:

https://knowledge.safe.com/idea/23367/add-output-port-to-featurewriter.html

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.

5 replies

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • Best Answer
  • June 29, 2017

HI @danilo_inovacao,

At this moment the FeatureWriter does not output the features and therefor does not output any attributes.

It has been added as an idea on the Knowledge Board:

https://knowledge.safe.com/idea/23367/add-output-port-to-featurewriter.html


Forum|alt.badge.img+2

Hi @danilo_inovacao,

 

You could try using the VariableSetter (before the FeatureWriter) and the VariableRetriever (after the FeatureWriter) to pass the attribute across.

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • June 29, 2017

You could take a single feature using the Sampler transformer and then aggregate the Summary and single feature after the FeatureWriter transformer using an Aggregator transformer.


takashi
Celebrity
  • June 29, 2017

This workflow could be a workaround in the interim.

  1. FeatureHolder: Wait for writing completion.
  2. Sampler: Sample a single feature.
  3. AttributeKeeper: Remove all attributes optionally.
  4. FeatureMerger: Merge the summary feature to the source features unconditionally (Join On: 1 to 1).

The FeatureHoder and the Sampler are not essential when there was just a single destination dataset in the FeatureWriter.


Forum|alt.badge.img
  • April 17, 2019

Hi @danilo_inovacao,

 

You could try using the VariableSetter (before the FeatureWriter) and the VariableRetriever (after the FeatureWriter) to pass the attribute across.

This didn't work for me - nor did using "Additional Summary Attributes" of the writer. I think I have to use the 1:1 Merge.