Skip to main content
Solved

Get the list of attributes and compare to another list to find missing

  • January 16, 2018
  • 1 reply
  • 64 views

akheirabadi
Contributor
Forum|alt.badge.img+5

Hi all,

I'm working on a project to automate transformation of more than 50 layers.

Just wondering is there any way I can get the list of attributes and types from each layer and compare it with another list to make sure it has fields and fields have types I'm expecting?

Best answer by jdh

You'll want to look at the Schema reader, which will produce a list with the attribute names and types.

attribute{}.fme_data_type

 

attribute{}.name

 

attribute{}.native_data_type

I tend to use python to compare two lists, but you could explode the attribute list and use a ChangeDetector.

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

1 reply

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • Best Answer
  • January 16, 2018

You'll want to look at the Schema reader, which will produce a list with the attribute names and types.

attribute{}.fme_data_type

 

attribute{}.name

 

attribute{}.native_data_type

I tend to use python to compare two lists, but you could explode the attribute list and use a ChangeDetector.


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