Validate Network Topology (Trace Network)


Validates the network topology of a trace network. Validation of the network topology is necessary after edits have been made to network attributes or the geometry of features in the network.


  • Inconsistencies between feature spatial edits and the network topology are marked with dirty areas.

  • The network topology must be enabled.

  • Invalid geometries encountered during the validate process will be included as error features in the Point Error and Line Error feature classes grouped under the trace network layer in the Contents pane.

    Learn more about validating the network topology


ValidateNetworkTopology(in_trace_network, {extent})
ParameterExplanationData Type

The trace network for which the network topology will be validated.

Trace Network; Trace Network Layer

The geographical area for which to build the trace network. This parameter is similar to the Extent geoprocessing environment.

  • Extent object—An Extent object can be used to define the extent.
  • MINOF—The extent where all input features or rasters overlap (intersect one another). It is possible that none of the features overlap and that a null extent (zero width and height) may result. In such cases, no features or cells will be processed.
  • MAXOF—The combined extent of all input data. All features will be processed.
  • "Xmin, Ymin, XMax, YMax"—Space-delimited coordinates that define the extent in the coordinate system where the input data is stored, for example, "-107.0 38.0 -104.0 40.0."
  • path name—Path to a dataset. The extent of the dataset will be used.

Derived Output

NameExplanationData Type

The validated trace network.

Trace Network

Code sample

ValidateNetworkTopology Python example (Python window)

Build the network topology for the HydroNetwork trace network.

import arcpy


This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics