Skip to main content
Question

Keek attributes which are listed in a file

  • November 16, 2020
  • 4 replies
  • 13 views

fme_hans
Contributor
Forum|alt.badge.img+5

 

Hi,

 

I want to keep a number of attributes of a table. I have the attributes to be preserved in an Excel file. Can I keep the correct attributes using the Excel file?

 

Greatings

4 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

Not sure if I understand correctly. Do you want to do this once? Or in a dynamic translation?

 

We can't import attribute names in the AttributeKeeper. But you can import them in the AttributeExposer. I always read data Generic, and only expose the fields I need.


fme_hans
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • November 16, 2020

Hi, this workspace will be re-used often. So i build it once but use it regulary.


pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • November 16, 2020

My understanding is that you have certain attributes in excel file which you want to retain during translation.

 

If the attributes are less in number then I suggest to use AttributeKeeper with User Parameter option. With this option, FME asks you the names of the attributes which you need to select before translation (instead of excel file)...

 

 


Forum|alt.badge.img+2
  • November 17, 2020

@fme_hans​  You can use the dynamic schema on the writer to control which attributes are written. You can define the schema using the attribute{} list. Your workspace will look something like this:

dynamicschemaworkflowWhen you add your writer, select Table Definition: Dynamic (Advanced)

 

I've attached an example (FME 2020.2):


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