Barriers are used in traces to mark locations where a trace should stop.

Feature barriers

Barriers can be created through the Barriers tab in the Trace Locations pane or by specifying an existing feature class in the Barriers parameter of the Trace tool.

Feature (or physical) barriers are optional during tracing events. To include them, you use a tool to set areas in your network as barriers for a trace.

Only network features can be used to place barriers with the Trace Locations pane. When a network feature is selected or added from a selection set, the following are true:

  • For point features, a coincident point is created to denote the barrier for the trace.
  • For lines, a barrier can be placed anywhere along the line feature.

When a barrier is established using the Trace Locations pane, a feature class named TN_Temp_Barriers is created in the project's default geodatabase. Successive feature barriers are appended to this class. To remove all barriers from a map, click the Clear All button Clear.

When an existing feature class is used to supply barriers for the Trace tool, if the source feature class shares the necessary schema from the TN_Temp_Barriers feature class, SOURCEID and FEATUREGLOBALID are read and applied to the corresponding network feature as a barrier.

In scenarios where these fields are not populated, the specific feature will not be used to place a barrier. This option is helpful when you want to maintain granularity over which features serve as barriers when coincident geometries exist.

If the fields are not present, the geometry of the input feature class will be used to intersect the network feature geometry and place a barrier feature.

Keep the following information in mind when using existing feature classes as barriers:

  • The TN_Temp_Barriers feature class is not used with this method.
  • Selection sets on the input feature class are not honored.
  • For polygons, barriers are placed along the boundary where network features intersect the polygon geometry.

Dynamic barriers

In addition to feature barriers, dynamic (or configurable) barriers can be set on network attributes or function conditions. During a trace operation, dynamic barriers can be modified.

Two types of dynamic barriers are used during a trace: Condition Barriers and Function Barriers. Both types are considered during a trace.


When using the Include Barrier Features configuration option for barriers placed along an edge, the trace results will include the entire feature. The Result Types option Aggregate Geometry can be use to return partial feature results. When a barrier is placed midspan on an edge, trace results will stop at the barrier and return partial feature geometry of the edge feature.

Condition barriers

A condition barrier is an expression based on network attributes, for example, to stop at all water bodies that have indeterminate flow in a hydrologic network. When a feature meets the condition set in the expression, the trace operation does not continue to the next feature.

More than one condition barrier can be implemented using the Combine Using parameter (AND or OR).

Function barriers

Function barriers define the extent of a trace based on whether a function condition has been satisfied. Function barriers can be used to do such things as restrict how far a 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. The Add function could be used to set a maximum value, and when the total length traveled reaches the value specified, the trace stops.

Networks often have paths that fork into multiple paths. At times, you may want to consider all forked paths together (global) and at other times consider them as separate paths from one another (local). Using the example of distance along paths in a trail network, if the starting point is placed at a fork with three paths, and the trace is set to trace 3 kilometers down the trails using global values, the trace will travel 1 kilometer down each of the three forked paths. By enabling the Use Local Values option, the trace will travel 3 miles down each of the three forked paths.

More than one barrier type can be used at once. Combining barriers allows you to control a group of diverse, precise types of barriers. Suppose you want to run a trace and have it stop at any disabled line segment, but you don't want the trace to travel more than 500 meters beyond the starting point. To accomplish this, you'd use a condition barrier to control the network attribute value that denotes a disabled line that stops a trace, and you'd use a function barrier to calculate the length of the line you travel and set a limit of 500 meters.


When executing a trace using a function barrier with the Use Local Values option selected, only one starting point is allowed.

To learn more about setting barriers, see Configure a trace.