Solved

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

  • 16 January 2018
  • 1 reply
  • 13 views

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?

icon

Best answer by jdh 16 January 2018, 23:11

View original

1 reply

Badge +22

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