Automated way to determine which domains aren't used in geodatabase?

640
4
Jump to solution
04-13-2017 10:52 AM
Highlighted
New Contributor III

My enterprise geodatabase has dozens of various domains currently, though not all are likely in use.  Is there any way to determine if a domain is in use by any fields in the geodatabase without manually checking every feature class?  Preferably some way through Python/arcpy would be best.  Thanks!

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Occasional Contributor II

One more item.  You can utilize my suggestion above to find all 'Active' domains, and then utilize 

ListDomains—Help | ArcGIS for Desktop 

to get the full list.  Cross reference the two and you have all your inactive domains.

~Alex

View solution in original post

4 Replies
Highlighted
Occasional Contributor II

Justin,

Here is a good start:

arcpy - Listing feature classes with active domains? - Geographic Information Systems Stack Exchange 

You can utilize that example and calls through ArcPy to achieve what you need.

~Alex

Highlighted
Occasional Contributor II

One more item.  You can utilize my suggestion above to find all 'Active' domains, and then utilize 

ListDomains—Help | ArcGIS for Desktop 

to get the full list.  Cross reference the two and you have all your inactive domains.

~Alex

View solution in original post

Highlighted
New Contributor III

Great, thanks for the help Alex!

Highlighted
MVP Esteemed Contributor

Part-manual solution for a one-off....  if you copy the feature classes to a new empty fgdb for example, I think only those domains in use copy over (that has been my experience anyway).  Then you could use the ListDomains option. Not as automated but might be faster, depending on your needs.