Hi,
I am having an issue related to the Territory Design Solution Layer with ArcGIS Pro 2.5.
ArcGIS Pro crashes (with no error) after I create a Territory Solution and trying to add it on the map. I happens from both python and model builder.
As an example, my arcpy code is the following (I'am using a Python Toolbox):
def getParameterInfo(self):
out_territory_design_solution = arcpy.Parameter(
displayName=
"Output Territory Design Solution",
name=
"out_territory_design_solution",
datatype=
"GPGroupLayer",
parameterType=
"Derived",
direction=
"Output")
-----------------------
def execute(self):
territory_solution = arcpy.CreateTerritorySolution_td(
in_features=Feature_Layer,
solution_name=in_territory_solution_name,
id_field=
"",
name_field=
"",
territory_level_name=
"{}".format(territory_level_name),
default_territory_name=
"{} %Number%".format(
territory_level_name))
out_territory_design_solution.value = territory_solution[
0]
ArcGIS crashes when trying to assing the territory_solution layer to my output variable.
Same behavour when creating a mode in model builder and flag the output territory level with AddToDisplay.
Any ideas?
Thank you,
Roxana