I just upgraded to Pro 2.3 and am doing the exact same process I did in 2.2 but with different results (same day).
I have a polygon feature in a file geodatabase that is symbolized based on a domain I have set up.
When I use the Split tool to divide up my polygon, the new resulted split polygons change all my domains to null.
This is more of a potential bug report than anything else. But, has anyone else seen this?
Solved! Go to Solution.
http://pro.arcgis.com/en/pro-app/tool-reference/analysis/split.htm
which has this warning
Geoprocessing tools do not honor geodatabase feature class or table field split policies.
which lead to
http://pro.arcgis.com/en/pro-app/tool-reference/analysis/split.htm
which has this warning
Geoprocessing tools do not honor geodatabase feature class or table field split policies.
which lead to
Good question. For my splitting, it is the Split tool that is in my Edit ribbon
I do not have split policies set up (and didn't know they existed until you shared that article!). So, my feature class should behave as the "default value". The default value says:
Default value—The attributes of the two resulting features take on the default value for the attribute of the given feature class or subtype.
If there is not default value, I suppose that it must be "null".... That's rather a pain. I want my splitting to go back to how things were in 2.2 and prior, which is apparently "duplicate value"
Duplicate—The attribute of the two resulting features takes on a copy of the original object's attribute value.
Now, I guess I need to figure out where to set my splitting policies. I did not see how to do so in a quick glance in the Settings, so I'll keep looking around. But, I guess this is likely the answer
duh, it's in my Domain settings.......
Weird. One weird change I'll have to always remember in 2.3.
Thanks Dan!
So, do you suppose this change in domain settings from default to duplicate has to be made for use in all future versions of Pro? This is expected behavior and not a 2.3 bug?
Julia,
Good question. I am going to tag Kory Kramer on that since he might have a good answer.
hi,
here a script for update all your domain:
import arcpy
domains = arcpy.da.ListDomains(r"your connection.sde")
for domain in domains:
arcpy.management.AlterDomain(r"your connection.sde", format(domain.name), "", "", "Duplicate", "DEFAULT")
Thanks Rémi! For projects with lots of domains, this is terrific!
I would also like to know if this is a bug and not to be the expected behavior in future versions.
Hi Matthew,
The behavior is expected since the Split tool will respect the split policy that is defined on the source geodatabase. This is mentioned in the documentation for the Split tool: Split a feature—ArcGIS Pro | ArcGIS Desktop
You can check the split policy by right-clicking on the layer in the Contents pane > Design > Domains. The Split Policy will be listed here. It sounds like your data could be set "Default", but perhaps you want to set it to "Duplicate".
Thanks,
Scott