Apply Error Resolutions (Utility Network)

Summary

Implements the error resolution actions defined in the ErrorAction field of the Error Resolutions table. This table can be created using the Analyze Network Data tool and modified to define the action that will be taken to address various common error types. The ErrorAction attribute field value defines the type of change that will be made in the utility network.

Usage

  • The network topology can be enabled or disabled.

  • The following requirements must be met when working with an enterprise geodatabase:

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

    • The input utility network must be in a nonversioned state to run the tool.

Parameters

LabelExplanationData Type
Input Utility Network

The utility network that will be updated with the edit actions defined in the Error Resolutions table.

Utility Network Layer
Resolution Table

The error resolutions table defining the edit actions that will be applied to the utility network classes to resolve errors.

Table View
Output Location
(Optional)

The output folder where the folder specified in the Output Name parameter will be created.

Folder
Output Name
(Optional)

The name of the output folder. This folder contains output .csv log files with information about features modified by the operation. When an edit fails, the logs provide information about any errors that could not be resolved.

String

Derived Output

LabelExplanationData Type
Output Utility Network

The updated utility network.

Utility Network
Output Folder

The output folder containing .csv files for each feature class modified by the operation.

Folder

arcpy.un.ApplyErrorResolutions(in_utility_network, in_resolution_table, {in_folder}, {output_name})
NameExplanationData Type
in_utility_network

The utility network that will be updated with the edit actions defined in the Error Resolutions table.

Utility Network Layer
in_resolution_table

The error resolutions table defining the edit actions that will be applied to the utility network classes to resolve errors.

Table View
in_folder
(Optional)

The output folder where the folder specified in the output_name parameter will be created.

Folder
output_name
(Optional)

The name of the output folder. This folder contains output .csv log files with information about features modified by the operation. When an edit fails, the logs provide information about any errors that could not be resolved.

String

Derived Output

NameExplanationData Type
out_utility_network

The updated utility network.

Utility Network
out_folder

The output folder containing .csv files for each feature class modified by the operation.

Folder

Code sample

ApplyErrorResolutions example (Python window)

Apply resolution actions to address errors in a utility network named MyUtilityNetwork.

import arcpy 
arcpy.un.ApplyErrorResolutions("MyUtilityNetwork", "C:\\Temp\\Test.geodatabase\\main.ErrorResolution")

Environments

This tool does not use any geoprocessing environments.

Licensing information

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

Related topics