ArcGIS Pro 2.9 Create Domain, Assign Split and Merge policies not working in Python

913
1
Jump to solution
06-09-2022 03:59 PM
JonZetterberg1
New Contributor II

Since upgrading to ArcGIS Pro 2.9.3, and possibly 2.9, I am unable to assign the split and merge policies in Python when using the Create Domain (Data Management) tool. I have a large script which calls this tool multiple times to set up various domains.

Code sample 1 runs: arcpy.CreateDomain_management(fileGDB, "PointTypes", "Various symbology types for points.", "TEXT", "CODED")

Code sample 2 does not run: arcpy.CreateDomain_management(fileGDB, "PointTypes", "Various symbology types for points.", "TEXT", "CODED", "DUPLICATE", "AREA_WEIGHTED")

Error message: arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000800: The value is not a member of Use the attribute's default value.

Duplicate and Area Weighted are both valid parameters according to the tool reference page. Any help trouble shooting this will be helpful.

0 Kudos
1 Solution

Accepted Solutions
e_mcc
by
New Contributor II

Hi,

in code sample 2, you can't have "Area_WEIGHTED" on the Coded domain. it's only applied to the range domain.

check the reference page ... "The area weighted policy only applies to range domains."

 

Cheers,

E.

View solution in original post

1 Reply
e_mcc
by
New Contributor II

Hi,

in code sample 2, you can't have "Area_WEIGHTED" on the Coded domain. it's only applied to the range domain.

check the reference page ... "The area weighted policy only applies to range domains."

 

Cheers,

E.