Validate Territories (Territory Design)

Available with Business Analyst license.

Summary

Validates a territory solution for invalid territories.

Usage

  • Run this tool after manually editing the territory solution. Any violations will need to be reviewed and resolved manually.

  • Validation issues will be included in the tool messages and added to the Territory Validation Errors field or Feature Validation Errors field.

  • Territory validation issues will be displayed in the Territory Validation Errors field.

  • The Feature Validation Errors field will display features that contain validation issues for a territory.

  • The tool will analyze the territory solution for the following errors:

    • Barriers violation
    • Buffer distance constraint violation
    • Minimum attribute constraint limit violation
    • Maximum attribute constraint limit violation
    • Minimum distance between centers constraint violation
    • Maximum territory radius constraint violation
    • Territory is empty
    • Territory center is undefined
    • Territory is not contiguous
    • Territory has holes
    • Territory name is not unique

Parameters

LabelExplanationData Type
Input Territory Solution

The territory solution that will be validated.

Group Layer; Feature Dataset; String
Level

The level that will be analyzed in the validation.

String

Derived Output

LabelExplanationData Type
Updated Territory Solution

The territory solution output.

Group Layer

arcpy.td.ValidateTerritories(in_territory_solution, level)
NameExplanationData Type
in_territory_solution

The territory solution that will be validated.

Group Layer; Feature Dataset; String
level

The level that will be analyzed in the validation.

String

Derived Output

NameExplanationData Type
out_territory_solution

The territory solution output.

Group Layer

Code sample

ValidateTerritories example (Python window)

The following Python window script demonstrates how to use the ValidateTerritories function.

import arcpy
arcpy.td.ValidateTerritories(in_territory_solution, level)

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Requires Business Analyst
  • Standard: Requires Business Analyst
  • Advanced: Requires Business Analyst

Related topics