Repair Network Topology (Utility Network)

Summary

Verifies and repairs inconsistencies identified in the network topology system tables.

The Repair Network Topology tool is used to check and perform repairs for consistency in a network topology and create an output log file containing the issues that were discovered and repaired. This tool can be used in conjunction with the Verify Network Topology tool to perform verification and review results before a repair is run.

Usage

  • The network topology must be enabled.

  • When working with an enterprise geodatabase, the database connection must be from a branch versioned workspace.

  • When working with an enterprise geodatabase, the Input Utility Network must be from a database connection established as the database utility network owner.

  • When working with an enterprise geodatabase, the connected ArcGIS Enterprise portal account must be the portal utility network owner.

Syntax

arcpy.un.RepairNetworkTopology(in_utility_network, {out_log_file})
ParameterExplanationData Type
in_utility_network

The utility network that will be repaired.

Utility Network; Utility Network Layer
out_log_file
(Optional)

The folder location and name of the file containing the discovered issues.

File

Derived Output

NameExplanationData Type
out_utility_network

The repaired utility network.

Utility Network

Code sample

RepairNetworkTopology example (Python window)

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

import arcpy
arcpy.RepairNetworkTopology_un("C:\\MyProject\\sdeConn.sde\\progdb.user1.MyUtilityNetwork", "C:\\temp\\VerifyLog.log")

Environments

This tool does not use any geoprocessing environments.

Licensing information

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

Related topics