I'm trying to import feature layers from a Geodatabase that contains subtypes and domains into a third party application. However, the third party application does not recognize subtypes. This results in any field that has the domain designated via the subtype properties and not the field properties results in just the coded value of the domain and not the description in that field.
At this point after much playing the only way I have figured out on how to get this to import correctly is to run the below workflow on each individual subtype:
- Run Export Features tool with a filter for an individual subtype. I check the Transfer Field domain descriptions to catch the domains that are set in the Field Properties are transferred through.
- Run Remove SubType tool and remove ALL subtypes
- Run Assign Domain to Field for each field that had the domain only designated via the Subtype properties.
- Repeat for all additional subtypes.
As you could imagine this is going to be quite the process to get this all accomplished and before I go through the process and try to set up some automation with python as I will need to repeat this task periodically to push updates; I was wondering if anyone knew of any additional tools or setting that I'm missing that could combine a few of these steps or automate this better?