AnsweredAssumed Answered

Comparing attribute field order between two feature classes

Question asked by mjmiller72 on Jun 29, 2017
Latest reply on Jul 5, 2017 by mjmiller72

Is there a way to compare the attribute field order in one feature class against the order in another feature class using Python? This is essentially a schema check, but the Geodatabase Schema Compare tool in the Data Reviewer Tools Toolbox does not do this. ListFields in arcpy also does not report the fields in the order they appear in the attribute table. The geodatabase obviously maintains information on attribute field order, so is there a way to access that information?

 

The two feature classes have the same attribute fields, they just could be in a different order. The schema standard we use calls for a specific attribute field order (and it's not necessarily alphabetical order).

 

Thanks for any help/ideas.

Mark

Outcomes