Trace (Utility Network Tools)
Summary
Returns network features in a utility network based on connectivity or traversability from the specified starting points.
Utility network tracing capabilities allow you to analyze the paths in a network. Traversability refers to paths established by connected or associated features that also meet configuration requirements.
By default, trace results are returned as a selection and include the entire line feature. To return partial feature results that respect trace locations placed along an edge, such as starting points, stopping points, and barriers, set the Result Types parameter to Aggregated Geometry. Trace locations placed midspan along an edge object can be used to return partial geometries when edge objects are content of a line feature using the Synthesize Geometries parameter.
With the Aggregated Geometry option, starting points placed along an edge will return the edge element from the previous junction with midspan connectivity or endpoint. When a barrier is placed along an edge with the Include Barrier Features parameter checked, the trace will stop at the next junction encountered with midspan connectivity or the line end. If the Include Barrier Features parameter is unchecked, the trace will stop at the previous junction encountered with midspan connectivity or the previous line end.
You can then propagate the resulting selection set or output feature class generated by the trace to another map or to a diagram view of the network, or use it as input to another tool or trace.
Usage
The network topology must be enabled. Since the Trace tool relies on the network topology, the results of a trace may not be accurate if dirty areas are traced. The network topology for the area to be traced must be validated to reflect the most recent edits or updates made to the network.
When working with an enterprise geodatabase, the input utility network must be a utility network service.
When a subnetwork-based trace is run on a traditional domain network using the Trace tool through Python, the subnetwork trace configuration for the input tier is not applied automatically and must be manually specified.
When working with network attributes assigned to a date field for filter barriers, filter function barriers, functions, and output conditions, format the date value as
yyyy-mm-dd hh:mm:ss, for example,2020-10-12 18:45:31.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Utility Network |
The utility network on which the trace will be run. When working with an enterprise geodatabase, an input utility network must be from a feature service; a utility network from a database connection is not supported. |
Utility Network; Utility Network Layer |
|
Trace Type |
Specifies the type of trace that will be used.
|
String |
|
Starting Points (Optional) |
A feature layer created using the Start tab in the Trace pane, or a table or feature class containing one or more records that represent the starting points of the trace. This feature class or table must include the |
Feature Layer; Table View |
|
Barriers (Optional) |
A feature layer created using the Barriers tab in the Trace pane, or a table or feature class containing one or more records representing barriers that prevent the trace from traversing beyond that point. This feature class or table must include the |
Feature Layer; Table View |
|
Domain Network (Optional) |
The name of the domain network where the trace will be run. This parameter is required when running the subnetwork, subnetwork controllers, upstream, downstream, and circuit trace types. |
String |
|
Tier (Optional) |
The name of the tier in a traditional domain network where the trace will start. This parameter is required when running the subnetwork, subnetwork controllers, upstream, and downstream trace types. |
String |
|
Target Tier (Optional) |
The name of the target tier in a traditional domain network to which the input tier will flow in a directional trace. If this parameter is not specified for upstream and downstream traces, those traces will stop when they reach the boundary of the starting subnetwork. This parameter can be used to allow these traces to continue either farther up or farther down the hierarchy. |
String |
|
Subnetwork Name (Optional) |
The name of the subnetwork in a traditional domain network where the trace will be run. This parameter can be used when running a subnetwork trace type. This parameter is required when the Starting Points parameter is not used. When the subnetworks table contains 10,000 or more records for a tier, the parameter's choice list is not populated and an empty field is provided for the subnetwork name. |
String |
|
Shortest Path Network Attribute Name (Optional) |
The network attribute that will be used to calculate the shortest path using the path or shortest path trace type. The shortest path is calculated using a numeric network attribute such as shape length. Cost- and distance-based paths can both be achieved. This parameter is optional for a path trace but is required when running a shortest path trace. |
String |
|
Include Containers (Optional) |
Specifies whether the container features will be included in the trace results.
|
Boolean |
|
Include Content (Optional) |
Specifies whether the trace will return content in container features in the results.
|
Boolean |
|
Include Structures (Optional) |
Specifies whether structure features and objects will be included in the trace results.
|
Boolean |
|
Include Barrier Features (Optional) |
Specifies whether the traversability barrier features will be included in the trace results. Traversability barriers are optional even if they have been preset in the subnetwork definition. This parameter does not apply to device features with terminals.
|
Boolean |
|
Validate Consistency (Optional) |
Specifies whether an error will be returned if dirty areas are encountered in any of the traversed features. This is the only way to guarantee a trace is passing through features with consistent status in the network. To remove dirty areas, validate the network topology.
|
Boolean |
|
Condition Barriers (Optional) |
Sets a traversability barrier condition on features based on a comparison to a network attribute or check for a category string. A condition barrier uses a network attribute or network category, an operator and a type, and an attribute value. For example, stop a trace when a feature has the Learn more about using multiple conditional expressions Value table columns:
|
Value Table |
|
Function Barriers (Optional) |
Sets a traversability barrier on features based on a function. Function barriers can be used to do such things as restrict how far the trace travels from the starting point, or set a maximum value to stop a trace. For example, the length of each line traveled is added to the total distance traveled so far. When the total length traveled reaches the value specified, the trace stops. Value table columns:
|
Value Table |
|
Apply Traversability To (Optional) |
Specifies whether traversability will be applied to junctions, edges, or both. For example, if a condition barrier is defined to stop the trace if Device Status is equal to Open and traversability scope is set to edges only, the trace will not stop—even if it encounters an open device—because Device Status is only applicable to junctions. In other words, this parameter indicates to the trace whether to ignore junctions, edges, or both.
|
String |
|
Filter Barriers (Optional) |
Specifies when a trace will stop for a specific category or network attribute. For example, stop a trace at features that have a life cycle status attribute that is equal to a certain value. This parameter is used to set a terminator based on a value of a network attribute that is defined in the system. If you're using more than one attribute, you can use the Combine Using option to define an And or an Or condition. Learn more about using multiple conditional expressions Value table columns:
|
Value Table |
|
Filter Function Barriers (Optional) |
Filters the results of the trace for a specific category. Value table columns:
|
Value Table |
|
Apply Filter To (Optional) |
Specifies whether the filter for a specific category will be applied to junctions, edges, or both. For example, if a filter barrier is defined to stop the trace if Device Status is equal to Open and traversability scope is set to edges only, the trace will not stop—even if the trace encounters an open device—because Device Status is only applicable to junctions. In other words, this parameter indicates to the trace whether to ignore junctions, edges, or both.
|
String |
|
Filter by bitset network attribute (Optional) |
The name of the network attribute that will be used to filter by bitset. This parameter is only applicable to upstream, downstream, and loops trace types. This parameter can be used to add special logic during a trace so the trace more closely reflects real-world scenarios. For example, for a loops trace, the Phases current network attribute can determine if the loop is a true electrical loop (the same phase is energized all around the loop, that is, A) and return only real electrical loops for the trace results. An example for an upstream trace is when tracing an electric distribution network, specify a Phases current network attribute, and the trace results will only include valid paths that are specified in the network attribute, not all paths. |
String |
|
Filter by nearest (Optional) |
Specifies whether the k-nearest neighbors algorithm will be used to return a number of features of a certain type within a given distance. You can provide a count and a cost as well as a collection of categories, an asset type, or both.
|
Boolean |
|
Count (Optional) |
The number of features that will be returned when Filter by nearest is checked. |
Long |
|
Cost Network Attribute (Optional) |
The numeric network attribute that will be used to calculate nearness, cost, or distance when Filter by nearest is checked—for example, shape length. |
String |
|
Nearest Categories (Optional) |
The categories that will be returned when Filter by nearest is checked—for example, protective. |
String |
|
Nearest Asset Groups/Types (Optional) |
The asset groups and asset types that will be returned when Filter by nearest is checked—for example, ElectricDistributionDevice/Transformer/Step Down. |
String |
|
Functions (Optional) |
The calculation function or functions that will be applied to the trace results. Value table columns:
|
Value Table |
|
Propagators (Optional) |
Specifies the network attributes to propagate as well as how that propagation will occur during a trace. Propagated class attributes denote the key values on subnetwork controllers that are disseminated to the rest of the features in the subnetwork. For example, in an electric distribution model, you can propagate the phase value. In a telecom domain network, you can propagate wavelengths values from features defined as circuit locations. Learn more about bitwise operators Note:This parameter is only available for Python. Value table columns:
|
Value Table |
|
Output Asset Types (Optional) |
Filters the output asset types to be included in the results—for example, only return overhead transformers. |
String |
|
Output Conditions (Optional) |
The types of features that will be returned based on a network attribute or category. For example, in a trace configured to filter out everything but Tap features, any traced features that do not have the Tap category assigned to them are not included in the results. Any traced features that do are returned in the result selection set. Learn more about using multiple conditional expressions Value table columns:
|
Value Table |
|
Include Isolated Features (Optional) |
Specifies whether isolated features will be included in the trace results with a traditional domain network. This parameter is only used when running an isolation trace.
|
Boolean |
|
Ignore Barriers At Starting Points (Optional) |
Specifies whether dynamic barriers in the trace configuration will be ignored for starting points. This may be useful when performing an upstream protective device trace and using the discovered protective devices (barriers) as starting points to find subsequent upstream protective devices.
|
Boolean |
|
Include up to First Spatial Container (Optional) |
Specifies whether the containers returned will be limited to those encountered up to, and including, the first spatial container for each network element in the trace results. If no spatial containers are encountered but nonspatial containers are present for a given network element, all nonspatial containers will be included in the results. This parameter is only enabled when
|
Boolean |
|
Result Types (Optional) |
Specifies the type of results that will be returned by the trace.
|
String |
|
Selection Type |
Specifies how the selection will be applied and what will occur if a current selection exists.
|
String |
|
Clear All Previous Trace Results (Optional) |
Specifies whether content will be truncated from, or appended to, the feature classes chosen to store aggregated geometry. This parameter is only applicable to the Aggregated Geometry result type.
|
Boolean |
|
Trace Name (Optional) |
The name of the trace operation. This value is stored in the |
String |
|
Aggregated Points (Optional) |
An output multipoint feature class containing the aggregated result geometry. By default, the parameter is populated with a system-generated feature class named Trace_Results_Aggregated_Points that will be stored in the project's default geodatabase. This feature class will be created automatically if it does not exist. An existing feature class can also be used to store aggregated geometry. If a feature class other than the default is used, it must be a multipoint feature class and contain a string field named |
Feature Class |
|
Aggregated Lines (Optional) |
An output polyline feature class containing the aggregated result geometry. By default, the parameter is populated with a system-generated feature class named Trace_Results_Aggregated_Lines that will be stored in the project's default geodatabase. This feature class will be created automatically if it does not exist. An existing feature class can also be used to store aggregated geometry. If a feature class other than the default is used, it must be a polyline feature class and contain a string field named |
Feature Class |
|
Aggregated Polygons (Optional) |
An output polygon feature class containing the aggregated result geometry. By default, the parameter is populated with a system-generated feature class named Trace_Results_Aggregated_Polygons that will be stored in the project's default geodatabase. This feature class will be created automatically if it does not exist. An existing feature class can also be used to store aggregated geometry. If a feature class other than the default is used, it must be a polygon feature class and contain a string field named |
Feature Class |
|
Allow Indeterminate Flow (Optional) |
Specifies whether features with indeterminate flow will be traced. Indeterminate flow is defined as areas in a subnetwork where flow direction is ambiguous or cannot be determined. This parameter is only applicable when running an upstream, downstream, or isolation trace. Note:This parameter requires a Utility Network Version value of 5 or later.
|
Boolean |
|
Validate Locatability (Optional) |
Specifies whether an error will be returned during a trace if nonspatial junction or edge objects are encountered without the necessary connectivity, containment, or attachment association in their association hierarchy. This parameter ensures that nonspatial objects returned by a trace or update subnetwork operation can be located through an association with features or other locatable objects.
|
Boolean |
|
Use Trace Configuration (Optional) |
Specifies whether an existing named trace configuration will be used to populate the parameters of this tool. Note:This parameter requires a Utility Network Version value of 5 or later.
|
Boolean |
|
Trace Configuration Name (Optional) |
The name of the existing named trace configuration that will be used to define the properties of the trace. This parameter is only active when the Use Trace Configuration parameter is checked. Note:This parameter requires a Utility Network Version value of 5 or later. |
String |
|
Output JSON (Optional) |
The name and location of the |
File |
|
Run in asynchronous mode on the server (Optional) |
Specifies whether trace operations will process asynchronously when working with a utility network in an enterprise geodatabase.
|
Boolean |
|
Include geometry (Optional) |
Specifies whether geometry will be included in the results. Note:For enterprise geodatabases, this parameter requires ArcGIS Enterprise 11.1 or later.
|
Boolean |
|
Include domain descriptions (Optional) |
Specifies whether domain descriptions will be included in the output Note:For enterprise geodatabases, this parameter requires ArcGIS Enterprise 11.1 or later.
|
Boolean |
|
Result Network Attributes (Optional) |
The network attributes that will be included in the results. Note:For enterprise geodatabases, this parameter requires ArcGIS Enterprise 11.1 or later. |
String |
|
Result Fields (Optional) |
Fields from a feature class that will be returned as results. The values of the fields will be returned in the results for the features in the trace. Note:For enterprise geodatabases, this parameter requires ArcGIS Enterprise 11.1 or later. Value table columns:
|
Value Table |
|
Use Digitized Direction (Optional) |
Specifies whether upstream and downstream trace operations will determine flow direction using the digitized direction of the line, the From and To global ID of the edge object in the association, and the Note:For enterprise geodatabases, this parameter requires ArcGIS Enterprise 11.3 or later.
|
Boolean |
|
Synthesize Geometries (Optional) |
Specifies whether geometries will be inferred and created (synthesized) for associations and edge objects traversed as part of a trace operation. This parameter is only applicable to the Aggregated Geometry and Circuits result types. Note:For enterprise geodatabases, this parameter requires ArcGIS Enterprise 11.3 or later for use with the Aggregated Geometry result type and ArcGIS Enterprise 12.1 or later for use with the Circuits result type.
|
Boolean |
|
Stopping Points (Optional) |
A feature layer created using the Stop tab in the Trace pane, or a table or feature class containing one or more records that represent the stopping points for a Path trace. This feature class or table must include the Note:For enterprise geodatabases, this parameter requires ArcGIS Enterprise 12.1 or later. |
Feature Layer; Table View |
|
Num Paths (Optional) |
The maximum number of paths that will be returned between a given set of start and stop locations in a Path trace. The default is 1. This parameter is only active when the Trace Type parameter is set to Path. Note:For enterprise geodatabases, this parameter requires ArcGIS Enterprise 12.1 or later. |
Long |
|
Max Hops (Optional) |
The maximum number of hops between edges allowed in the path, excluding the starting point. All edges and junction-junction connectivity associations are evaluated as having a fixed unit length of 1 on traversal. Terminal devices are evaluated as having a fixed unit length of 2. The default is 100. This parameter is only active when the Trace Type parameter is set to Path. Note:For enterprise geodatabases, this parameter requires ArcGIS Enterprise 12.1 or later. |
Long |
|
Related Record Fields (Optional) |
The fields from related object classes that will be returned as results. The values of the fields will be returned in the results for the traversed features in the output Value table columns:
|
Value Table |
|
Circuit Name (Optional) |
The name of the circuit in a telecom domain network where the circuit trace will be run. This is required for a circuit trace when the Starting Points parameter is not used. Note:For enterprise geodatabases, this parameter requires ArcGIS Enterprise 12.1 or later. |
String |
|
Infer Connectivity (Optional) |
Specifies whether the path trace will use connectivity inference to traverse containment associations and identify a path between the specified start and stop location. This parameter is only supported with the path trace in telecom domain networks and enables paths to be discovered between sections when connectivity information is not explicitly available. For more information, see Infer Connectivity.
|
Boolean |
|
Include flow directions (Optional) |
Specifies whether flow directions will be included in the output This parameter applies only to the Connectivity, Elements, and Features result types options when used with the subnetwork, upstream, and downstream trace types. Note:For enterprise geodatabases, this parameter requires ArcGIS Enterprise 12.1 or later.
|
Boolean |
|
Include propagated values (Optional) |
Specifies whether propagated values will be included in the output Note:For enterprise geodatabases, this parameter requires ArcGIS Enterprise 12.1 or later.
|
Boolean |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Output Utility Network |
The updated utility network. |
Utility Network |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: Limited
Supported in an enterprise deployment when using ArcGIS Enterprise named user licensing. - Standard: Yes
- Advanced: Yes