URL:
https://<root>/<serviceName>/UtilityNetworkServer/trace
Methods:
POST
Version Introduced:
10.6

Description

The trace operation is used to run traces on your network which can be configured to discover information or solve problems. A trace refers to a preconfigured algorithm that systematically travels a network to return results. Generalized traces allow you to trace across multiple types of domain networks. Multiple parameters and properties are provided with the trace operation that support various analytic workflows.

All traces use the network topology to read cached information about network features. This can improve performance of complex traces on large networks. Trace results are not guaranteed to accurately represent a utility network when dirty areas are present. The network topology must be validated to clean dirty areas and to ensure that it reflects the most recent edits or updates made to the network. The trace operation is supported both synchronously and asynchronously.

Learn more about utility network trace types

Request parameters

ParameterDetails

f

Specifies the output format of the response. The pbf response format was introduced at ArcGIS Enterprise 11.2. The default response format is html.

Values: html | json | pjson | pbf

gdbVersion

(Optional)

The name of the geodatabase version. The default is sde.DEFAULT.

Syntax:

Use dark colors for code blocksCopy
1
2

gdbVersion=<version>

sessionId

(Optional)

The token guid used to lock the version. If the calling client has previously started a service session (editing) and holds an exclusive lock on the specified version, the request will fail if the sessionId is not provided. If the specified version is currently locked by any other session, the request will fail if the sessionId is not provided or does not match the sessionId that holds the exclusive lock.

Syntax:

Use dark colors for code blocksCopy
1
2

sessionId=<guid>

moment

(Optional)

The session moment (the default is the version current moment). This should only be specified by the client when they do not want to use the current moment.

Syntax:

Use dark colors for code blocksCopy
1
2

moment=<Epoch time in milliseconds>

Example:

Use dark colors for code blocksCopy
1
2

moment=1730456642

traceType

(Required)

The trace type. This specifies the core algorithm that will be run to analyze the network. Trace types can be configured using the traceConfiguration parameter.

Values: connected | subnetwork | subnetworkController | upstream | downstream | loops | shortestPath | isolation | path | circuit

Syntax:

Use dark colors for code blocksCopy
1
2

traceType=<traceType>

Example:

Use dark colors for code blocksCopy
1
2

traceType=subnetwork

traceLocations

(Required)

Specifies the locations for starting points, stopping points, and barriers. An empty array must be used when performing a subnetwork trace if a subnetworkName is provided as part of the traceConfiguration —for example, traceLocations=[] .

traceLocations is ignored by the trace if the following required properties are not defined:

  • A percentAlong value is required for edge features and objects.

  • A terminalID value is required for junction features and objects.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
[
 {
   "traceLocationType" : "startingPoint" | "stoppingPoint" | "barrier",
   "globalId" : <guid>,
   "terminalId" : <long>,   // optional
   "percentAlong" : <double>, // optional
   "isFilterBarrier" : true | false, // optional
   "firstUnit" : <short>, // optional, introduced at 12.1 for use with grouped objects in a telecom domain network.
   "lastUnit" : <short>,  // optional, introduced at 12.1 for use with grouped objects in a telecom domain network.
 }
]

traceConfiguration

(Optional)

The collection of trace configuration properties. Depending on the trace type, some of the trace configuration properties are required.

To reference the collection of trace configuration properties, see the traceConfiguration properties section below.

Syntax:

Use dark colors for code blocksCopy
1
2

traceConfiguration=<traceConfiguration>

Learn more about using multiple conditional expressions

traceConfigurationGlobalId

(Optional)

Introduced at ArcGIS Enterprise 10.9. The global ID of a named trace configuration. When specified, this configuration is used instead of the traceConfiguration parameter. Additionally, named trace configurations are persisted with their own trace type so the trace type parameter is ignored.

Syntax:

Use dark colors for code blocksCopy
1
2

traceConfigurationglobalId=<guid>

resultType

This parameter was deprecated at ArcGIS Enterprise 10.8.

resultTypes

(Optional)

The types of results to return for the trace.

  • The connectivity type was introduced at ArcGIS Enterprise 10.9.1.
  • The features and associations types were introduced at ArcGIS Enterprise 11.1.
  • The relatedRecords type was introduced at ArcGIS Enterprise 11.5.
  • The paths and circuits types were introduced at ArcGIS Enterprise 12.1.

The includeFlowDirections and includePropagatedValues options were introduced with ArcGIS Enterprise 12.1.

Learn more about how to work with result types.

Syntax :

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[
  {
    "type" : "elements" | "connectivity" | "features" | "associations" | "paths" | "circuits" | "relatedRecords",
    "includeGeometry" : true | false,  // Optional
    "includePropagatedValues": true | false,  // Optional.  Applicable to the features result types option only when performing subnetwork-based traces.
    "includeDomainDescriptions" : true | false,  // Optional
    "includeFlowDirections": true | false,     // Optional.  Applicable to the elements, features, and connectivity result types options only.
    "networkAttributeNames" :["attribute1Name","attribute2Name",...],
    "diagramTemplateName": <value>,
    "resultTypeFields":[{"networkSourceId":<long>,"fieldname":<value>}],
    "relationshipClasses" : [ ​
        {​
          "originLayerId" : <long>,         // Required with relatedRecords.  The id of the origin layer.
          "destinationLayerId" : <long>,   // Required with relatedRecords.  The id of the destination layer.
          "outFields" : ["fieldName1, fieldName2"],  // Optional.  The fields in the destination table that includes the values to return.
          "relationshipOutFields" : ["fieldName1, fieldName2"]    // Optional.  The fields from the intermediate table in an attribute relationship class that includes the values to return.

        },...],
]

async

(Optional)

If true, the request is processed as an asynchronous job, and a URL is returned that a client can use to check the status of the job. The default is false.

Values: true | false

outSR

(Optional)

Introduced at ArcGIS Enterprise 11.1. Specifies the output spatial reference for the trace result using a well-known ID (wkid) or well-known text (wktor wkt2). If outSR is not specified, the spatial reference of the feature service is used.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
"outSR": {
  "wkid": <spatial reference well-known identifier>,
  "latestWkid": <the current wkid value associated with the wkid>  // Optional
}

Example:

Use dark colors for code blocksCopy
1
2

outSR={"wkid":3498,"latestWkid":3498}

Example:

Use dark colors for code blocksCopy
1
2

outSR={"wkt": "PROJCS[\"WGS_1984_Web_Mercator_Auxiliary_Sphere\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Mercator_Auxiliary_Sphere\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",0.0],PARAMETER[\"Standard_Parallel_1\",0.0],PARAMETER[\"Auxiliary_Sphere_Type\",0.0],UNIT[\"Meter\",1.0]]"}

traceConfiguration properties

The traceConfiguration parameter is a collection of trace configuration properties that include basic properties for a trace and control trace settings for traversability, functions, filters, outputs, and propagators.

PropertyDetails

includeContainers

(Optional)

Specifies whether to include containers in the trace result. The default is false.

Values: true | false

includeContent

(Optional)

Specifies whether to include content in the trace result. The default is false .

Values: true | false

includeStructures

(Optional)

Specifies whether to include structures in the trace result. The default is false.

Values: true | false

includeBarriers

(Optional)

Specifies whether to include barrier features that stop a trace in the trace result. The default is true.

Values: true | false

validateConsistency

(Optional)

Specifies whether to validate the consistency of the trace results. The default is true.

Values: true | false

validateLocatability

(Optional)

Specifies whether to validate whether traversed junction or edge objects have the necessary containment, attachment, or connectivity association in their association hierarchy. The default is false.

Values: true | false

synthesizeGeometries

(Optional)

Introduced with ArcGIS Enterprise 11.3. Specifies whether geometries will be inferred and created (synthesized) for associations and edge objects traversed during a trace operation. This property is only applicable when using the aggregatedGeometry type for resultTypes. The default is false.

Values: true | false

includeIsolated

(Optional)

Specifies whether to include isolated features for an isolation trace. The default is false.

Values: true | false

ignoreBarriersAtStartingPoints

(Optional)

Specifies whether dynamic barriers in the trace configuration are ignored for starting points. This can be useful when performing an upstream protective device trace using the discovered protective devices (barriers) as starting points to find subsequent upstream protective devices. The default is false.

Values: true | false

includeUpToFirstSpatialContainer

(Optional)

Specifies whether to limit the containers returned in the trace result. This property depends on the includeContainers property and no-ops if includeContainers is false. If includeContainers is true and this property is true, containment associations up to and including the first spatial container are returned; otherwise, all containment associations are returned. The default is false.

Values: true | false

allowIndeterminateFlow

(Optional)

Specifies whether network features with indeterminate flow stop traversability or are included in the trace results. This property is only honored when running an upstream, downstream, or isolation trace.

Values: true | false

useDigitizedDirection

(Optional)

Introduced at ArcGIS Enterprise 11.3. Specifies whether the direction of flow will be based on the digitized direction of the line, From global ID and To global ID of the edge object in the association, and the flow direction network attribute value. Applies when the traceType is upstream or downstream, otherwise it is ignored. The default is false.

Learn more about flow direction in a utility network

Values: true | false

domainNetworkName

(Optional)

Specifies the name of the domain network where the trace is starting. This is required for subnetwork-based traces and is ignored when useDigitizedDirection is true.

Syntax:

Use dark colors for code blocksCopy
1
2

domainNetworkName=<string>

Example:

Use dark colors for code blocksCopy
1
2

domainNetworkName=Electric

tierName

(Optional)

Specifies the name of the tier where the trace is starting. This is required for subnetwork-based traces and is ignored when useDigitizedDirection is true.

Syntax:

Use dark colors for code blocksCopy
1
2

tierName=<string>

Example:

Use dark colors for code blocksCopy
1
2

tierName=Distribution

targetTierName

(Optional)

Specifies the name of the tier where an upstream or downstream trace ends. This is ignored when useDigitizedDirection is true.

Syntax:

Use dark colors for code blocksCopy
1
2

targetTierName=<string>

subnetworkName

(Optional)

Specifies the name of the subnetwork that will be traced. The starting points of the trace are the controllers of this subnetwork.

Syntax:

Use dark colors for code blocksCopy
1
2

subnetworkName=<string>

shortestPathNetworkAttributeName

(Optional)

Specifies the network attribute name used for determining cost when calculating the shortest path using a shortestPath or 'path trace.

Syntax:

Use dark colors for code blocksCopy
1
2

shortestPathNetworkAttributeName=<string>

filterBitsetNetworkAttributeName

(Optional)

This is used during upstream and downstream traces to ensure that trace results include any bit that is set in the starting points for the network attribute. Also used during a loops trace to only return loops with the same bit set all around the loop.

Syntax:

Use dark colors for code blocksCopy
1
2

filterBitsetNetworkAttributeName=<string>

traversabilityScope

(Optional)

Specifies the network element types to which the condition, category, or function barriers apply. The default is junctionsAndEdges.

Values: junctions | edges | junctionsAndEdges

filterScope

(Optional)

Specifies the network element types to which the filter barriers or filter function barriers apply. The default is junctionsAndEdges.

Values: junctions | edges | junctionsAndEdges

numPaths

(Optional)

Introduced at ArcGIS Enterprise 12.1. Specifies the maximum number of paths that will be returned between a given set of starting points and stop locations for a valid path. This parameter is only honored when the traceType is path. The default is 1.

Syntax:

Use dark colors for code blocksCopy
1
2

numPaths=<long>

maxHops

(Optional)

Introduced at ArcGIS Enterprise 12.1. Specifies the maximum number of hops between edges allowed in the valid 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. This parameter is only honored when the traceType is path or circuit. The default is 100.

Syntax:

Use dark colors for code blocksCopy
1
2

maxHops=<long>

inferConnectivity

(Optional)

Specifies whether the path trace will use connectivity inference to traverse containment associations and find a path between the specified start and stop location. This parameter is only honored when the traceType is path. The default is false.

Values: true | false

circuitName

(Optional)

Specifies the name of the circuit that will be traced. When a value is provided for the circuitName parameter, the start location for the circuit is used as the starting point for the trace, and traceLocations is not required. This parameter is only honored when the traceType is circuit.

Syntax:

Use dark colors for code blocksCopy
1
2

circuitName=<string>

conditionBarriers

(Optional)

Specifies an array of objects (representing network attribute or network category conditions) that serve as barriers. If isSpecificValue is true, the network attribute is compared to a specific value; otherwise, the network attribute is compared to another network attribute. To use a feature's network category value, ensure the name and type are set as Category and that isSpecificValue is set as true. The default is null.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[
  {
    "name" : <string>,
    "type" : "networkAttribute" | "category"
    "operator" : "equal" | "notEqual"
               | "greaterThan"
               | "greaterThanEqual"
               | "lessThan"
               | "lessThanEqual"
               | "includesTheValues"
               | "doesNotIncludeTheValues"
               | "includesAny"
               | "doesNotIncludeAny",
    "value" : <string>,
    "combineUsingOr" : <true | false>,
    "isSpecificValue" : <true | false>
  }
]

Learn more about using multiple conditional expressions

functionBarriers

(Optional)

Specifies an array of objects representing function barriers.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[
  {
    "functionType" : "add" | "subtract" |
                   "average" | "count" |
                   "min" | "max",
    "networkAttributeName" : <string>,
    "operator" : "equal" | "notEqual"
               | "greaterThan"
               | "greaterThanEqual"
               | "lessThan"
               | "lessThanEqual"
               | "includesTheValues"
               | "doesNotIncludeTheValues"
               | "includesAny"
               | "doesNotIncludeAny",
    "value" : <string>,
    "useLocalValues":true | false
  }
]

filterBarriers

(Optional)

Specifies an array of objects (representing network attribute or category conditions) that serve as filter barriers If isSpecificValue is true, the network attribute is compared to a specific value; otherwise, the network attribute is compared to another network attribute. The default is null.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[
  {
    "name" : <string>,
    "operator" : "equal" | "notEqual"
               | "greaterThan"
               | "greaterThanEqual"
               | "lessThan"
               | "lessThanEqual"
               | "includesTheValues"
               | "doesNotIncludeTheValues"
               | "includesAny"
               | "doesNotIncludeAny",
    "value" : string (numeric),
    "combineUsingOr" : <true | false>,
    "isSpecificValue" : <true | false>
  }
]

Learn more about using multiple conditional expressions

filterFunctionBarriers

(Optional)

Specifies an array of objects representing filter function barriers.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[
  {
    "functionType" : "add" | "subtract" |
                   "average" | "count" |
                   "min" | "max",
    "networkAttributeName" : <string>,
    "operator" : "equal" | "notEqual"
               | "greaterThan"
               | "greaterThanEqual"
               | "lessThan"
               | "lessThanEqual"
               | "includesTheValues"
               | "doesNotIncludeTheValues"
               | "includesAny"
               | "doesNotIncludeAny",
    "value" : string (numeric)
  }
]

functions

(Optional)

Specifies an array of objects representing functions. Each function can have an optional array of network attribute conditions.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[
  {
    "functionType" : "add" | "subtract"
                   | "average" | "count"
                   | "min" | "max",
    "networkAttributeName" : <string>,
    "conditions":
    [
      {
        "name" : <string>,
        "type" : "networkAttribute" | "category",
        "operator" : "equal" | "notEqual"
               | "greaterThan"
               | "greaterThanEqual"
               | "lessThan" |
               | "lessThanEqual"
               | "includesTheValues"
               | "doesNotIncludeTheValues"
               | "includesAny"
               | "doesNotIncludeAny",
        "value" : <string>,
        "combineUsingOr" : <true | false>,
        "isSpecificValue" : <true | false>
     }
   ],
   "summaryAttributeName" : <string>,
   "functionName" : <string>
 }
]

Learn more about using multiple conditional expressions

nearestNeighbor

(Optional)

Specifies the parameters needed for calculating nearest neighbors. The default is null.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "count" : int
  "costNetworkAttributeName" : string,
  "nearestCategories" : array of string,
  "nearestAssets"
  [
    {
      "networkSourceId" : long,
      "assetGroupCode" : long,
      "assetTypeCode" : long
    }
  ]
}

outputFilters

(Optional)

Specifies an array of objects representing the output filter. The default is null.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
[
 {
  "networkSourceId" : long,
  "assetGroupCode" : long,
  "assetTypeCode" : long
 }
]

outputConditions

(Optional)

Specifies the type of features returned based on a network attribute or category.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[
 {
  "name": "<string>",
  "type": "networkAttribute" | "category",
  "operator": "equal" | "notEqual"
               | "greaterThan"
               | "greaterThanEqual"
               | "lessThan"
               | "lessThanEqual"
               | "includesTheValues"
               | "doesNotIncludeTheValues"
               | "includesAny"
               | "doesNotIncludeAny",
  "value": <string>,
  "combineUsingOr": <true | false>,
  "isSpecificValue": <true | false>
 }
]

Example:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
[
 {
  "name": "Line Asset Group",
  "type": "networkAttribute",
  "operator": "equal",
  "value": 1,
  "combineUsingOr": false,
  "isSpecificValue": true
 }
]

Learn more about using multiple conditional expressions

propagators

(Optional)

Specifies an array of objects to define. The default is null.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[
  {
    "networkAttributeName": "<string>",
    "substitutionAttributeName": "<string>",
    "propagatorFunctionType": "bitwiseAnd" | "min" | "max",
    "operator": "equal" | "notEqual"
               | "greaterThan"
               | "greaterThanEqual"
               | "lessThan"
               | "lessThanEqual"
               | "includesTheValues"
               | "doesNotIncludeTheValues"
               | "includesAny"
               | "doesNotIncludeAny",
    "value": "<string (numeric)>",
    "propagatedAttributeName": "<string>"
  }
]

JSON Response syntax

JSON response (when async = false):

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
{
  "traceResults" : {
    "elements" : [
      {
        "networkSourceId" : <long>,
        "globalId" : <guid>,
        "objectId" : <long>,
        "terminalId" : <long>,
        "assetGroupCode" : <long>,
        "assetTypeCode" : <long>,
        "positionFrom" : <double>,
        "positionTo" : <double>,
        "flowDirection": "withDigitized" | "againstDigitized" | "indeterminate",  // edges only
        "firstUnit" : <short>, // When the utility network contains a telecom domain network.
        "lastUnit" : <short>  // When the utility network contains a telecom domain network.

      }
    ],
    "connectivity": [
      {
        "viaNetworkSourceId": <long>,
        "viaGlobalId": <guid>,
        "viaObjectId": <long>,
        "viaPositionFrom": <double>,
        "viaPositionTo": <double>,
        "viaGeometry": <geometry>,
        "flowDirection": "withDigitized" | "againstDigitized" | "indeterminate",  // edges only
        "viaFirstUnit" : <short>, // When the utility network contains a telecom domain network.
        "fromNetworkSourceId": <long>,
        "fromGlobalId": <guid>,
        "fromObjectId": <long>,
        "fromTerminalId": <long>,
        "fromGeometry": <geometry>,
        "fromFirstUnit" : <short>, // When the utility network contains a telecom domain network.
        "toNetworkSourceId": <long>,
        "toGlobalId": <guid>,
        "toObjectId": <long>,
        "toTerminalId": <long>,
        "toGeometry": <geometry>,
        "toFirstUnit" : <short>, // When the utility network contains a telecom domain network.
        "lastUnit" : <short>, // When the utility network contains a telecom domain network.
        "viaNetworkSourceName": <string>,  // When includeDomainDescriptions is true.
        "fromNetworkSourceName": <string>,  // When includeDomainDescriptions is true.
        "fromTerminalName": <string>,  // When includeDomainDescriptions is true.
        "toNetworkSourceName": <string>,  // When includeDomainDescriptions is true.
        "toTerminalName": <string>  // When includeDomainDescriptions is true.
      },
    ],
    "featureElements": [
      {
        "networkSourceId": <long>,
        "globalId": <guid>,
        "objectId": <long>,
        "terminalId": <long>,  // devices and junction objects only
        "assetGroupCode": <long>,
        "assetTypeCode": <long>,
        "firstUnit" : <short>, // When the utility network contains a telecom domain network.
        "lastUnit" : <short>,  // When the utility network contains a telecom domain network.
        "positionFrom": <double>,  // edges only
        "positionTo": <double>,  // edges only
        "flowDirection": "withDigitized" | "againstDigitized" | "indeterminate",  // edges only
        "geometry": <geometry>,
        "networkSourceName": <string>,  // When includeDomainDescriptions is true.
        "assetGroupName": <string>,  // When includeDomainDescriptions is true.
        "assetTypeName": <string>,  // When includeDomainDescriptions is true.
        "terminalName": <string>,  // When includeDomainDescriptions is true.
        "networkAttributeValues" : [
          {
            "<attributeName>" : <value>, ...
          }
        ],
        "networkAttributeDescriptions" : [],
        "fieldValues" : [
          {
          "fieldName" : <value>,
          "value" : <value>,
          "description" : <string>
          }
        ],
        "propagatedValues" : [
          {
          "attributeName" : <value>,
          "propagatedValue" : <value>,
          "description" : <string>
          }
        ]
      }
    ],
    "associations": [
      {
        "associationType": <long>,
        "fromNetworkSourceId": <long>,
        "fromGlobalId": <guid>,
        "fromTerminalId": <long>,
        "toNetworkSourceId": <long>,
        "toGlobalId": <guid>,
        "toTerminalId": <long>,
        "fromNetworkSourceName": <string>,  // When includeDomainDescriptions is true.
        "fromTerminalName": <string>,  // When includeDomainDescriptions is true.
        "toNetworkSourceName": <string>,  // When includeDomainDescriptions is true.
        "toTerminalName": <string>  // When includeDomainDescriptions is true.
          }
        ],
    "relatedRecords": [
      {
        "networkSourceId": <long>,
        "networkSourceName": <string>,
        "globalId": <guid>,
        "relationshipClasses": [
          {
            "originLayerId": <long>,
            "destinationLayerId": <long>,
            "name": <string>,
            "originName": <string>,  // When includeDomainDescriptions is true.
            "destinationName": <string>, // When includeDomainDescriptions is true.
            "relationships": [
              {
                "outFields": [],
                "relationshipOutFields": []
              }
            ]
          }
        ]
      }
    ],
]
    "diagramName": <string>,
    "globalFunctionResults" : [],
    "kFeaturesForKNNFound" : <true | false>,
    "startingPointsIgnored" : <true | false>,
    "warnings" : [ <string> ]
  }
  "sourceMapping":
  {
    "networkSourceId": <string>,
    ...
  },
  "resultTypes": [
    {
      "type": "features" | "connectivity" | "controllers" | "associations" | "paths" | "circuits" | "relatedRecords",
      "includeGeometry": true | false,  // Optional
      "includePropagatedValues": true | false,  // Optional.  Applicable to the features result types option only when performing subnetwork-based traces.
      "includeDomainDescriptions": true | false, // Optional
      "includeFlowDirections": true | false,     // Optional.  Applicable to the elements, features, and connectivity result types options only.
      "networkAttributeNames": ["<networkAttributeName1>", ...],
      "diagramTemplateName": <string>,
      "resultTypeFields": [
        {
          "networkSourceId": <long>,
          "fieldName": <string>
        }
      ],
      "relationshipClasses" : [
        {
          "originLayerId" : <long>,         // Required with relatedRecords.  The id of the origin layer.
          "destinationLayerId" : <long>,   // Required with relatedRecords.  The id of the destination layer.
          "outFields" : [<string>, ...],  // Optional.  The fields in the destination table that includes the values to return.
          "relationshipOutFields" : [<string>, ...]    // Optional.  The fields from the intermediate table in an attribute relationship class that includes the values to return.
        }
      ]
    }
  ],
  "success" : <true | false>,
  "error" : {                   // only if success is false
    "extendedCode" : <HRESULT>,
    "message" : <error message>,
    "details" : [ <detail> ]
  }
}

JSON response (when async = true):

Use dark colors for code blocksCopy
1
2
3
{
  "statusUrl" : <url>
}

JSON response to the status URL (when pending or in progress):

Use dark colors for code blocksCopy
1
2
3
4
5
{
  "status" : "<Pending | InProgress>",
  "submissionTime" : <datetime>,
  "lastUpdatedTime" : <datetime>
 }

Example usage

Perform a subnetwork trace for the ElectricDistribution domain network in the Medium Voltage Radial tier. The trace operation request includes the traceConfiguration parameter. No telecom domain network is present in the utility network.

Request URL and parameters:

https://myserver.esri.com/server/rest/services/LandUse/UtilityNetworkServer/trace

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
f=json
gdbVersion=SDE.DEFAULT
sessionID=
moment=
traceType=subnetwork
traceLocations=[]
traceConfiguration=
{
  "includeContainers": true,
  "includeContent": true,
  "includeStructures": true,
  "includeBarriers": true,
  "validateConsistency": true,
  "validateLocatability": false,
  "synthesizeGeometries": false,
  "includeIsolated": false,
  "ignoreBarriersAtStartingPoints": false,
  "includeUpToFirstSpatialContainer": false,
  "allowIndeterminateFlow": true,
  "useDigitizedDirection": false,
  "domainNetworkName": "ElectricDistribution",
  "tierName": "Medium Voltage Radial",
  "targetTierName": "",
  "subnetworkName": "oakview_01",
  "diagramTemplateName": "",
  "shortestPathNetworkAttributeName": "",
  "filterBitsetNetworkAttributeName": "",
  "traversabilityScope": "junctionsAndEdges",
  "conditionBarriers": [
    {
      "name": "Device Status",
      "type": "networkAttribute",
      "operator": "equal",
      "value": 1,
      "combineUsingOr": false,
      "isSpecificValue": true
    }
  ],
  "functionBarriers": [],
  "arcadeExpressionBarrier": "",
  "filterBarriers": [],
  "filterFunctionBarriers": [],
  "filterScope": "junctionsAndEdges",
  "functions": [],
  "nearestNeighbor": {
    "count": -1,
    "costNetworkAttributeName": "",
    "nearestCategories": [],
    "nearestAssets": []
  },
  "outputFilters": [],
  "outputConditions": [],
  "propagators": [
    {
      "networkAttributeName": "Phases Current",
      "substitutionAttributeName": "phasessub",
      "propagatorFunctionType": "bitwiseAnd",
      "operator": "includesAny",
      "value": 15,
      "propagatedAttributeName": "phasescurrent"
    }
  ]
}
resultTypes= [
  {
   "type":"features",
   "includeGeometry":true,
   "includePropagatedValues":true,
   "includeDomainDescriptions":true,
   "includeFlowDirections": true,
   "networkAttributeNames":["Is subnetwork controller"],
   "diagramTemplateName":"",
   "resultTypeFields":[]
  },
  {
   "type":"connectivity",
   "includeGeometry":true,
   "includePropagatedValues":true,
   "includeDomainDescriptions":true,
   "includeFlowDirections": true,
   "networkAttributeNames":["Is subnetwork controller"],
   "diagramTemplateName":"",
   "resultTypeFields":[]
   }
]
async=false

JSON response:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
{
  "featureElements": [
    {
      "networkSourceId": 2,
      "globalId": "{4A93C1E2-F57B-45BB-A5F7-B91F757FB0D7}",
      "objectId": 152,
      "terminalId": 0,
      "assetGroupCode": 0,
      "assetTypeCode": 0,
      "geometry": {
        "x": 6815672.813086301,
        "y": 1847937.6206742228,
        "z": 0,
        "m": null
      },
      "networkSourceName": "UN_6_SystemJunctions",
      "assetGroupName": "",
      "assetTypeName": "",
      "terminalName": "",
      "propagatedValues": []
    },
    {
      "networkSourceId": 12,
      "globalId": "{C25637FB-2C86-4297-AB77-BCB021427791}",
      "objectId": 608,
      "terminalId": 1,
      "assetGroupCode": 1,
      "assetTypeCode": 1,
      "geometry": {
        "x": 6815672.303572893,
        "y": 1847964.9667481483,
        "z": 0,
        "m": null
      },
      "networkSourceName": "ElectricDistributionJunction",
      "assetGroupName": "Connection Point",
      "assetTypeName": "Connection Point",
      "terminalName": "Single Terminal",
      "propagatedValues": []
    },
    {
      "networkSourceId": 14,
      "globalId": "{65684081-5158-4360-BFBA-AB58552C9C2F}",
      "objectId": 527,
      "terminalId": 3,
      "assetGroupCode": 3,
      "assetTypeCode": 1,
      "networkSourceName": "ElectricDistributionJunctionObject",
      "assetGroupName": "Circuit Breaker",
      "assetTypeName": "Circuit Breaker",
      "terminalName": "Load",
      "networkAttributeValues": [
        {
          "Is subnetwork controller": 1
        }
      ],
      "networkAttributeDescriptions": [
        {
          "Is subnetwork controller": "True"
        }
      ],
      "propagatedValues": []
    },
    {
      "networkSourceId": 12,
      "globalId": "{A2DC4EDB-0398-4C59-88FC-A08EF7BEB359}",
      "objectId": 607,
      "terminalId": 1,
      "assetGroupCode": 1,
      "assetTypeCode": 1,
      "geometry": {
        "x": 6815669.8445883099,
        "y": 1848032.185445726,
        "z": 0,
        "m": null
      },
      "networkSourceName": "ElectricDistributionJunction",
      "assetGroupName": "Connection Point",
      "assetTypeName": "Connection Point",
      "terminalName": "Single Terminal",
      "propagatedValues": []
    },
    {
      "networkSourceId": 9,
      "globalId": "{01D65634-7FA0-4520-A5C9-3F317E916FDD}",
      "objectId": 450,
      "terminalId": 8,
      "assetGroupCode": 7,
      "assetTypeCode": 1,
      "geometry": {
        "x": 6815669.0247080479,
        "y": 1848099.4038152248,
        "z": 0,
        "m": null
      },
      "networkSourceName": "ElectricDistributionDevice",
      "assetGroupName": "Transformer",
      "assetTypeName": "Overhead",
      "terminalName": "High",
      "networkAttributeValues": [
        {
          "Is subnetwork controller": 0
        }
      ],
      "networkAttributeDescriptions": [
        {
          "Is subnetwork controller": "False"
        }
      ],
      "propagatedValues": []
    },
    {
      "networkSourceId": 9,
      "globalId": "{04D97F16-5270-4D01-9BE0-CD99CB7BF711}",
      "objectId": 388,
      "terminalId": 3,
      "assetGroupCode": 1,
      "assetTypeCode": 1,
      "geometry": {
        "x": 6815663.286530554,
        "y": 1848226.4632723928,
        "z": 0,
        "m": null
      },
      "networkSourceName": "ElectricDistributionDevice",
      "assetGroupName": "Circuit Breaker",
      "assetTypeName": "Air powered",
      "terminalName": "Load",
      "networkAttributeValues": [
        {
          "Is subnetwork controller": 1
        }
      ],
      "networkAttributeDescriptions": [
        {
          "Is subnetwork controller": "True"
        }
      ],
      "propagatedValues": []
    },
    {
      "networkSourceId": 9,
      "globalId": "{01D65634-7FA0-4520-A5C9-3F317E916FDD}",
      "objectId": 450,
      "terminalId": 9,
      "assetGroupCode": 7,
      "assetTypeCode": 1,
      "geometry": {
        "x": 6815669.0247080479,
        "y": 1848099.4038152248,
        "z": 0,
        "m": null
      },
      "networkSourceName": "ElectricDistributionDevice",
      "assetGroupName": "Transformer",
      "assetTypeName": "Overhead",
      "terminalName": "Low",
      "networkAttributeValues": [
        {
          "Is subnetwork controller": 0
        }
      ],
      "networkAttributeDescriptions": [
        {
          "Is subnetwork controller": "False"
        }
      ],
      "propagatedValues": []
    },
    {
      "networkSourceId": 12,
      "globalId": "{0C42A5DF-A9E8-4390-9FEA-F34B9174A372}",
      "objectId": 606,
      "terminalId": 1,
      "assetGroupCode": 1,
      "assetTypeCode": 1,
      "geometry": {
        "x": 6815665.745843217,
        "y": 1848160.8843353093,
        "z": 0,
        "m": null
      },
      "networkSourceName": "ElectricDistributionJunction",
      "assetGroupName": "Connection Point",
      "assetTypeName": "Connection Point",
      "terminalName": "Single Terminal",
      "propagatedValues": []
    },
    {
      "networkSourceId": 12,
      "globalId": "{7ABBB2F9-7994-4408-95AD-857440778CE9}",
      "objectId": 609,
      "terminalId": 1,
      "assetGroupCode": 1,
      "assetTypeCode": 1,
      "geometry": {
        "x": 6815669.0247080479,
        "y": 1848128.9145829827,
        "z": 0,
        "m": null
      },
      "networkSourceName": "ElectricDistributionJunction",
      "assetGroupName": "Connection Point",
      "assetTypeName": "Connection Point",
      "terminalName": "Single Terminal",
      "propagatedValues": [
        {
          "attributeName": "Phases Current",
          "propagatedValue": 7,
          "description": "ABC"
        }
      ]
    },
    {
      "networkSourceId": 14,
      "globalId": "{719F3CC9-647D-4CAF-AC47-EE0AEE7A1494}",
      "objectId": 530,
      "terminalId": 1,
      "assetGroupCode": 2,
      "assetTypeCode": 1,
      "networkSourceName": "ElectricDistributionJunctionObject",
      "assetGroupName": "Connection Point",
      "assetTypeName": "Connection Point",
      "terminalName": "Single Terminal",
      "networkAttributeValues": [
        {
          "Is subnetwork controller": 0
        }
      ],
      "networkAttributeDescriptions": [
        {
          "Is subnetwork controller": "False"
        }
      ],
      "propagatedValues": [
        {
          "attributeName": "Phases Current",
          "propagatedValue": 0,
          "description": "DeEnergized"
        }
      ]
    },
    {
      "networkSourceId": 14,
      "globalId": "{62DF954E-6448-41E9-ADD3-BA39AEA8D0E1}",
      "objectId": 529,
      "terminalId": 8,
      "assetGroupCode": 5,
      "assetTypeCode": 1,
      "networkSourceName": "ElectricDistributionJunctionObject",
      "assetGroupName": "Transformer",
      "assetTypeName": "Transformer",
      "terminalName": "High",
      "networkAttributeValues": [
        {
          "Is subnetwork controller": 0
        }
      ],
      "networkAttributeDescriptions": [
        {
          "Is subnetwork controller": "False"
        }
      ],
      "propagatedValues": [
        {
          "attributeName": "Phases Current",
          "propagatedValue": 0,
          "description": "DeEnergized"
        }
      ]
    },
    {
      "networkSourceId": 14,
      "globalId": "{62DF954E-6448-41E9-ADD3-BA39AEA8D0E1}",
      "objectId": 529,
      "terminalId": 9,
      "assetGroupCode": 5,
      "assetTypeCode": 1,
      "networkSourceName": "ElectricDistributionJunctionObject",
      "assetGroupName": "Transformer",
      "assetTypeName": "Transformer",
      "terminalName": "Low",
      "networkAttributeValues": [
        {
          "Is subnetwork controller": 0
        }
      ],
      "networkAttributeDescriptions": [
        {
          "Is subnetwork controller": "False"
        }
      ],
      "propagatedValues": []
    },
    {
      "networkSourceId": 14,
      "globalId": "{5F0BCD5E-2432-43F8-872B-E8F42FBF46AB}",
      "objectId": 528,
      "terminalId": 1,
      "assetGroupCode": 2,
      "assetTypeCode": 1,
      "networkSourceName": "ElectricDistributionJunctionObject",
      "assetGroupName": "Connection Point",
      "assetTypeName": "Connection Point",
      "terminalName": "Single Terminal",
      "networkAttributeValues": [
        {
          "Is subnetwork controller": 0
        }
      ],
      "networkAttributeDescriptions": [
        {
          "Is subnetwork controller": "False"
        }
      ],
      "propagatedValues": []
    },
    {
      "networkSourceId": 14,
      "globalId": "{65684081-5158-4360-BFBA-AB58552C9C2F}",
      "objectId": 527,
      "terminalId": 2,
      "assetGroupCode": 3,
      "assetTypeCode": 1,
      "networkSourceName": "ElectricDistributionJunctionObject",
      "assetGroupName": "Circuit Breaker",
      "assetTypeName": "Circuit Breaker",
      "terminalName": "Source",
      "networkAttributeValues": [
        {
          "Is subnetwork controller": 0
        }
      ],
      "networkAttributeDescriptions": [
        {
          "Is subnetwork controller": "False"
        }
      ],
      "propagatedValues": []
    },
    {
      "networkSourceId": 4,
      "globalId": "{FB05F8D5-7CD4-461F-8F3F-D8AC55229BE5}",
      "objectId": 28,
      "terminalId": 1,
      "assetGroupCode": 4,
      "assetTypeCode": 3,
      "geometry": {
        "x": 6815631.316778213,
        "y": 1848101.043575734,
        "z": 0,
        "m": null
      },
      "networkSourceName": "StructureJunction",
      "assetGroupName": "Pole",
      "assetTypeName": "Wood",
      "terminalName": "Single Terminal",
      "propagatedValues": []
    },
    {
      "networkSourceId": 10,
      "globalId": "{DF883D83-50CC-4FFC-AFD8-A19D42D09101}",
      "objectId": 841,
      "assetGroupCode": 4,
      "assetTypeCode": 3,
      "positionFrom": 0.5213038364450218,
      "positionTo": 1,
      "flowDirection": "withDigitized",
      "geometry": {
        "hasZ": true,
        "hasM": true,
        "paths": [
          [
            [
              6815669.0247080479,
              1848128.9145829827,
              0,
              null
            ],
            [
              6815669.0247080479,
              1848099.4038152248,
              0,
              null
            ]
          ]
        ]
      },
      "networkSourceName": "ElectricDistributionLine",
      "assetGroupName": "Medium Voltage Radial",
      "assetTypeName": "Three Phase Overhead",
      "propagatedValues": [
        {
          "attributeName": "Phases Current",
          "propagatedValue": 7,
          "description": "ABC"
        }
      ]
    },
    {
      "networkSourceId": 10,
      "globalId": "{C002BDCD-534A-44C1-B9F5-4F9B48BB2344}",
      "objectId": 965,
      "assetGroupCode": 4,
      "assetTypeCode": 3,
      "positionFrom": 0,
      "positionTo": 1,
      "flowDirection": "withDigitized",
      "geometry": {
        "hasZ": true,
        "hasM": true,
        "paths": [
          [
            [
              6815672.303572893,
              1847964.9667481483,
              0,
              null
            ],
            [
              6815672.813086301,
              1847937.6206742228,
              0,
              null
            ]
          ]
        ]
      },
      "networkSourceName": "ElectricDistributionLine",
      "assetGroupName": "Medium Voltage Radial",
      "assetTypeName": "Three Phase Overhead",
      "propagatedValues": [
        {
          "attributeName": "Phases Current",
          "propagatedValue": 4,
          "description": "A"
        }
      ]
    },
    {
      "networkSourceId": 15,
      "globalId": "{77F02310-975A-4FE1-A51D-171F631216D0}",
      "objectId": 13,
      "assetGroupCode": 1,
      "assetTypeCode": 1,
      "positionFrom": 0,
      "positionTo": 1,
      "flowDirection": "withDigitized",
      "networkSourceName": "ElectricDistributionEdgeObject",
      "assetGroupName": "Wire",
      "assetTypeName": "Wire",
      "propagatedValues": [
        {
          "attributeName": "Phases Current",
          "propagatedValue": 4,
          "description": "A"
        }
      ]
    },
    {
      "networkSourceId": 1,
      "globalId": "{455E7988-BF5A-4587-B294-4FAB47609396}",
      "objectId": 821,
      "assetGroupCode": 0,
      "assetTypeCode": 0,
      "positionFrom": 0,
      "positionTo": 1,
      "flowDirection": "withDigitized",
      "networkSourceName": "UN_6_Associations",
      "assetGroupName": "",
      "assetTypeName": "",
      "propagatedValues": [
        {
          "attributeName": "Phases Current",
          "propagatedValue": 4,
          "description": "A"
        }
      ]
    },
    {
      "networkSourceId": 9,
      "globalId": "{01D65634-7FA0-4520-A5C9-3F317E916FDD}",
      "objectId": 450,
      "assetGroupCode": 7,
      "assetTypeCode": 1,
      "positionFrom": 0,
      "positionTo": 1,
      "flowDirection": "withDigitized",
      "geometry": {
        "hasZ": true,
        "hasM": true,
        "paths": [
          [
            [
              6815669.0247080479,
              1848099.4038152248,
              0,
              null
            ],
            [
              6815669.0247080479,
              1848099.4038152248,
              0,
              null
            ]
          ]
        ]
      },
      "networkSourceName": "ElectricDistributionDevice",
      "assetGroupName": "Transformer",
      "assetTypeName": "Overhead",
      "networkAttributeValues": [
        {
          "Is subnetwork controller": 0
        }
      ],
      "networkAttributeDescriptions": [
        {
          "Is subnetwork controller": "False"
        }
      ],
      "propagatedValues": [
        {
          "attributeName": "Phases Current",
          "propagatedValue": 7,
          "description": "ABC"
        }
      ]
    },
    {
      "networkSourceId": 10,
      "globalId": "{DF883D83-50CC-4FFC-AFD8-A19D42D09101}",
      "objectId": 841,
      "assetGroupCode": 4,
      "assetTypeCode": 3,
      "positionFrom": 0,
      "positionTo": 0.5213038364450218,
      "flowDirection": "withDigitized",
      "geometry": {
        "hasZ": true,
        "hasM": true,
        "paths": [
          [
            [
              6815665.745843217,
              1848160.8843353093,
              0,
              null
            ],
            [
              6815669.0247080479,
              1848128.9145829827,
              0,
              null
            ]
          ]
        ]
      },
      "networkSourceName": "ElectricDistributionLine",
      "assetGroupName": "Medium Voltage Radial",
      "assetTypeName": "Three Phase Overhead",
      "propagatedValues": [
        {
          "attributeName": "Phases Current",
          "propagatedValue": 7,
          "description": "ABC"
        }
      ]
    },
    {
      "networkSourceId": 10,
      "globalId": "{04087CD5-4456-4117-A9BC-4226A849430C}",
      "objectId": 840,
      "assetGroupCode": 4,
      "assetTypeCode": 3,
      "positionFrom": 0,
      "positionTo": 1,
      "flowDirection": "withDigitized",
      "geometry": {
        "hasZ": true,
        "hasM": true,
        "curvePaths": [
          [
            [
              6815663.286530554,
              1848226.4632723928,
              0,
              null
            ],
            {
              "c": [
                [
                  6815665.745843217,
                  1848160.8843353093,
                  0,
                  null
                ],
                [
                  6815630.651845002,
                  1848192.403838089
                ]
              ]
            }
          ]
        ]
      },
      "networkSourceName": "ElectricDistributionLine",
      "assetGroupName": "Medium Voltage Radial",
      "assetTypeName": "Three Phase Overhead",
      "propagatedValues": [
        {
          "attributeName": "Phases Current",
          "propagatedValue": 7,
          "description": "ABC"
        }
      ]
    },
    {
      "networkSourceId": 15,
      "globalId": "{0DB08159-503A-4DAA-88AE-EAB330C14B02}",
      "objectId": 14,
      "assetGroupCode": 1,
      "assetTypeCode": 1,
      "positionFrom": 0,
      "positionTo": 1,
      "networkSourceName": "ElectricDistributionEdgeObject",
      "assetGroupName": "Wire",
      "assetTypeName": "Wire",
      "propagatedValues": [
        {
          "attributeName": "Phases Current",
          "propagatedValue": 0,
          "description": "DeEnergized"
        }
      ]
    }
  ],
  "connectivity": [
    {
      "viaNetworkSourceId": 10,
      "viaGlobalId": "{DF883D83-50CC-4FFC-AFD8-A19D42D09101}",
      "viaObjectId": 841,
      "viaPositionFrom": 0.5213038364450218,
      "viaPositionTo": 1,
      "viaGeometry": {
        "hasZ": true,
        "hasM": true,
        "paths": [
          [
            [
              6815669.0247080479,
              1848128.9145829827,
              0,
              null
            ],
            [
              6815669.0247080479,
              1848099.4038152248,
              0,
              null
            ]
          ]
        ]
      },
      "flowDirection": "withDigitized",
      "fromNetworkSourceId": 12,
      "fromGlobalId": "{7ABBB2F9-7994-4408-95AD-857440778CE9}",
      "fromObjectId": 609,
      "fromTerminalId": 1,
      "fromGeometry": {
        "x": 6815669.0247080479,
        "y": 1848128.9145829827,
        "z": 0,
        "m": null
      },
      "toNetworkSourceId": 9,
      "toGlobalId": "{01D65634-7FA0-4520-A5C9-3F317E916FDD}",
      "toObjectId": 450,
      "toTerminalId": 8,
      "toGeometry": {
        "x": 6815669.0247080479,
        "y": 1848099.4038152248,
        "z": 0,
        "m": null
      },
      "viaNetworkSourceName": "ElectricDistribution Line",
      "fromNetworkSourceName": "ElectricDistribution Junction",
      "fromTerminalName": "Single Terminal",
      "toNetworkSourceName": "ElectricDistribution Device",
      "toTerminalName": "High"
    },
    {
      "viaNetworkSourceId": 10,
      "viaGlobalId": "{C002BDCD-534A-44C1-B9F5-4F9B48BB2344}",
      "viaObjectId": 965,
      "viaPositionFrom": 0,
      "viaPositionTo": 1,
      "viaGeometry": {
        "hasZ": true,
        "hasM": true,
        "paths": [
          [
            [
              6815672.303572893,
              1847964.9667481483,
              0,
              null
            ],
            [
              6815672.813086301,
              1847937.6206742228,
              0,
              null
            ]
          ]
        ]
      },
      "flowDirection": "withDigitized",
      "fromNetworkSourceId": 12,
      "fromGlobalId": "{C25637FB-2C86-4297-AB77-BCB021427791}",
      "fromObjectId": 608,
      "fromTerminalId": 1,
      "fromGeometry": {
        "x": 6815672.303572893,
        "y": 1847964.9667481483,
        "z": 0,
        "m": null
      },
      "toNetworkSourceId": 2,
      "toGlobalId": "{4A93C1E2-F57B-45BB-A5F7-B91F757FB0D7}",
      "toObjectId": 152,
      "toTerminalId": 0,
      "toGeometry": {
        "x": 6815672.813086301,
        "y": 1847937.6206742228,
        "z": 0,
        "m": null
      },
      "viaNetworkSourceName": "ElectricDistribution Line",
      "fromNetworkSourceName": "ElectricDistribution Junction",
      "fromTerminalName": "Single Terminal",
      "toNetworkSourceName": "System Junctions",
      "toTerminalName": ""
    },
    {
      "viaNetworkSourceId": 15,
      "viaGlobalId": "{77F02310-975A-4FE1-A51D-171F631216D0}",
      "viaObjectId": 13,
      "viaPositionFrom": 0,
      "viaPositionTo": 1,
      "viaGeometry": {},
      "flowDirection": "withDigitized",
      "fromNetworkSourceId": 9,
      "fromGlobalId": "{01D65634-7FA0-4520-A5C9-3F317E916FDD}",
      "fromObjectId": 450,
      "fromTerminalId": 9,
      "fromGeometry": {
        "x": 6815669.0247080479,
        "y": 1848099.4038152248,
        "z": 0,
        "m": null
      },
      "toNetworkSourceId": 12,
      "toGlobalId": "{A2DC4EDB-0398-4C59-88FC-A08EF7BEB359}",
      "toObjectId": 607,
      "toTerminalId": 1,
      "toGeometry": {
        "x": 6815669.8445883099,
        "y": 1848032.185445726,
        "z": 0,
        "m": null
      },
      "viaNetworkSourceName": "Electric Distribution Edge Object",
      "fromNetworkSourceName": "ElectricDistribution Device",
      "fromTerminalName": "Low",
      "toNetworkSourceName": "ElectricDistribution Junction",
      "toTerminalName": "Single Terminal"
    },
    {
      "viaNetworkSourceId": 1,
      "viaGlobalId": "{455E7988-BF5A-4587-B294-4FAB47609396}",
      "viaObjectId": 821,
      "viaPositionFrom": 0,
      "viaPositionTo": 1,
      "viaGeometry": {},
      "flowDirection": "withDigitized",
      "fromNetworkSourceId": 12,
      "fromGlobalId": "{A2DC4EDB-0398-4C59-88FC-A08EF7BEB359}",
      "fromObjectId": 607,
      "fromTerminalId": 1,
      "fromGeometry": {
        "x": 6815669.8445883099,
        "y": 1848032.185445726,
        "z": 0,
        "m": null
      },
      "toNetworkSourceId": 12,
      "toGlobalId": "{C25637FB-2C86-4297-AB77-BCB021427791}",
      "toObjectId": 608,
      "toTerminalId": 1,
      "toGeometry": {
        "x": 6815672.303572893,
        "y": 1847964.9667481483,
        "z": 0,
        "m": null
      },
      "viaNetworkSourceName": "Associations",
      "fromNetworkSourceName": "ElectricDistribution Junction",
      "fromTerminalName": "Single Terminal",
      "toNetworkSourceName": "ElectricDistribution Junction",
      "toTerminalName": "Single Terminal"
    },
    {
      "viaNetworkSourceId": 9,
      "viaGlobalId": "{01D65634-7FA0-4520-A5C9-3F317E916FDD}",
      "viaObjectId": 450,
      "viaPositionFrom": 0,
      "viaPositionTo": 1,
      "viaGeometry": {
        "hasZ": true,
        "hasM": true,
        "paths": [
          [
            [
              6815669.0247080479,
              1848099.4038152248,
              0,
              null
            ],
            [
              6815669.0247080479,
              1848099.4038152248,
              0,
              null
            ]
          ]
        ]
      },
      "flowDirection": "withDigitized",
      "fromNetworkSourceId": 9,
      "fromGlobalId": "{01D65634-7FA0-4520-A5C9-3F317E916FDD}",
      "fromObjectId": 450,
      "fromTerminalId": 8,
      "fromGeometry": {
        "x": 6815669.0247080479,
        "y": 1848099.4038152248,
        "z": 0,
        "m": null
      },
      "toNetworkSourceId": 9,
      "toGlobalId": "{01D65634-7FA0-4520-A5C9-3F317E916FDD}",
      "toObjectId": 450,
      "toTerminalId": 9,
      "toGeometry": {
        "x": 6815669.0247080479,
        "y": 1848099.4038152248,
        "z": 0,
        "m": null
      },
      "viaNetworkSourceName": "ElectricDistribution Device",
      "fromNetworkSourceName": "ElectricDistribution Device",
      "fromTerminalName": "High",
      "toNetworkSourceName": "ElectricDistribution Device",
      "toTerminalName": "Low"
    },
    {
      "viaNetworkSourceId": 10,
      "viaGlobalId": "{DF883D83-50CC-4FFC-AFD8-A19D42D09101}",
      "viaObjectId": 841,
      "viaPositionFrom": 0,
      "viaPositionTo": 0.5213038364450218,
      "viaGeometry": {
        "hasZ": true,
        "hasM": true,
        "paths": [
          [
            [
              6815665.745843217,
              1848160.8843353093,
              0,
              null
            ],
            [
              6815669.0247080479,
              1848128.9145829827,
              0,
              null
            ]
          ]
        ]
      },
      "flowDirection": "withDigitized",
      "fromNetworkSourceId": 12,
      "fromGlobalId": "{0C42A5DF-A9E8-4390-9FEA-F34B9174A372}",
      "fromObjectId": 606,
      "fromTerminalId": 1,
      "fromGeometry": {
        "x": 6815665.745843217,
        "y": 1848160.8843353093,
        "z": 0,
        "m": null
      },
      "toNetworkSourceId": 12,
      "toGlobalId": "{7ABBB2F9-7994-4408-95AD-857440778CE9}",
      "toObjectId": 609,
      "toTerminalId": 1,
      "toGeometry": {
        "x": 6815669.0247080479,
        "y": 1848128.9145829827,
        "z": 0,
        "m": null
      },
      "viaNetworkSourceName": "ElectricDistribution Line",
      "fromNetworkSourceName": "ElectricDistribution Junction",
      "fromTerminalName": "Single Terminal",
      "toNetworkSourceName": "ElectricDistribution Junction",
      "toTerminalName": "Single Terminal"
    },
    {
      "viaNetworkSourceId": 10,
      "viaGlobalId": "{04087CD5-4456-4117-A9BC-4226A849430C}",
      "viaObjectId": 840,
      "viaPositionFrom": 0,
      "viaPositionTo": 1,
      "viaGeometry": {
        "hasZ": true,
        "hasM": true,
        "curvePaths": [
          [
            [
              6815663.286530554,
              1848226.4632723928,
              0,
              null
            ],
            {
              "c": [
                [
                  6815665.745843217,
                  1848160.8843353093,
                  0,
                  null
                ],
                [
                  6815630.651845002,
                  1848192.403838089
                ]
              ]
            }
          ]
        ]
      },
      "flowDirection": "withDigitized",
      "fromNetworkSourceId": 9,
      "fromGlobalId": "{04D97F16-5270-4D01-9BE0-CD99CB7BF711}",
      "fromObjectId": 388,
      "fromTerminalId": 3,
      "fromGeometry": {
        "x": 6815663.286530554,
        "y": 1848226.4632723928,
        "z": 0,
        "m": null
      },
      "toNetworkSourceId": 12,
      "toGlobalId": "{0C42A5DF-A9E8-4390-9FEA-F34B9174A372}",
      "toObjectId": 606,
      "toTerminalId": 1,
      "toGeometry": {
        "x": 6815665.745843217,
        "y": 1848160.8843353093,
        "z": 0,
        "m": null
      },
      "viaNetworkSourceName": "ElectricDistribution Line",
      "fromNetworkSourceName": "ElectricDistribution Device",
      "fromTerminalName": "Load",
      "toNetworkSourceName": "ElectricDistribution Junction",
      "toTerminalName": "Single Terminal"
    },
    {
      "viaNetworkSourceId": 15,
      "viaGlobalId": "{0DB08159-503A-4DAA-88AE-EAB330C14B02}",
      "viaObjectId": 14,
      "viaPositionFrom": 0,
      "viaPositionTo": 1,
      "viaGeometry": {},
      "fromNetworkSourceId": 14,
      "fromGlobalId": "{62DF954E-6448-41E9-ADD3-BA39AEA8D0E1}",
      "fromObjectId": 529,
      "fromTerminalId": 9,
      "fromGeometry": {},
      "toNetworkSourceId": 14,
      "toGlobalId": "{719F3CC9-647D-4CAF-AC47-EE0AEE7A1494}",
      "toObjectId": 530,
      "toTerminalId": 1,
      "toGeometry": {},
      "viaNetworkSourceName": "Electric Distribution Edge Object",
      "fromNetworkSourceName": "Electric Distribution Junction Object",
      "fromTerminalName": "Low",
      "toNetworkSourceName": "Electric Distribution Junction Object",
      "toTerminalName": "Single Terminal"
    }
  ],
  "sourceMapping": {
    "1": "UN_6_Associations",
    "2": "UN_6_SystemJunctions",
    "4": "StructureJunction",
    "6": "StructureBoundary",
    "7": "StructureJunctionObject",
    "5": "StructureLine",
    "8": "StructureEdgeObject",
    "9": "ElectricDistributionDevice",
    "11": "ElectricDistributionAssembly",
    "12": "ElectricDistributionJunction",
    "14": "ElectricDistributionJunctionObject",
    "10": "ElectricDistributionLine",
    "13": "ElectricDistributionSubnetLine",
    "15": "ElectricDistributionEdgeObject"
  },
  "resultTypes": [
    {
      "type": "features",
      "includeGeometry": true,
      "includePropagatedValues": true,
      "includeDomainDescriptions": true,
      "includeFlowDirections": true,
      "networkAttributeNames": [
        "Is subnetwork controller"
      ],
      "diagramTemplateName": "",
      "resultTypeFields": []
    },
    {
      "type": "connectivity",
      "includeGeometry": true,
      "includePropagatedValues": false,
      "includeDomainDescriptions": true,
      "includeFlowDirections": true,
      "networkAttributeNames": [],
      "diagramTemplateName": "",
      "resultTypeFields": []
    }
  ]
},
  "success": true

Perform a path trace on the Telco domain network using the paths resultType and return the length of fiber in the path.

Request URL and parameters:

https://myserver.esri.com/server/rest/services/TelecomService/UtilityNetworkServer/trace

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113

f=json
gdbVersion=SDE.DEFAULT
sessionID=
moment=
traceType=path
traceLocations=
[
  {
    "traceLocationType": "startingPoint",
    "globalId": "{F448D4AC-1BBA-4F0C-A8AD-3E0714381461}",
    "percentAlong": -1,
    "isFilterBarrier": false,
    "firstUnit": 1,
    "lastUnit": 1
  },
  {
    "traceLocationType": "startingPoint",
    "globalId": "{BBBF8ACF-58D9-42E6-8A90-557673839151}",
    "percentAlong": -1,
    "isFilterBarrier": false,
    "firstUnit": 1,
    "lastUnit": 1
  },
  {
    "traceLocationType": "stoppingPoint",
    "globalId": "{D8BF0EA4-BD68-46B1-B037-766C2F7AF08E}",
    "percentAlong": -1,
    "isFilterBarrier": false,
    "firstUnit": 1,
    "lastUnit": 1
  },
  {
    "traceLocationType": "stoppingPoint",
    "globalId": "{4DB934A7-E421-4E6A-9D00-0B3074B54832}",
    "percentAlong": -1,
    "isFilterBarrier": false,
    "firstUnit": 1,
    "lastUnit": 1
  }
]
traceConfiguration=
{
 "includeContainers": false,
 "includeContent": false,
 "includeStructures": false,
 "includeBarriers": true,
 "validateConsistency": true,
 "validateLocatability": false,
 "synthesizeGeometries": false,
 "includeIsolated": false,
 "ignoreBarriersAtStartingPoints": false,
 "includeUpToFirstSpatialContainer":false,
 "allowIndeterminateFlow":true,
 "useDigitizedDirection":false,
 "domainNetworkName": "Telco",
 "tierName": "",
 "targetTierName": "",
 "subnetworkName": "",
 "diagramTemplateName": "",
 "shortestPathNetworkAttributeName": "",
 "filterBitsetNetworkAttributeName": "",
 "traversabilityScope": "junctionsAndEdges",
 "numPaths": 1,
 "maxHops": 100,
 "inferConnectivity": false,
 "circuitName": "",
 "conditionBarriers": [],
 "functionBarriers": [],
 "arcadeExpressionBarrier": "",
 "filterBarriers": [],
 "filterFunctionBarriers": [],
 "filterScope": "junctionsAndEdges",
  "functions": [
    {
      "functionType": "add",
      "networkAttributeName": "Shape length",
      "conditions": [
        {
          "name": "Asset type",
          "type": "networkAttribute",
          "operator": "equal",
          "value": 1,
          "combineUsingOr": false,
          "isSpecificValue": true
        }
      ],
      "summaryAttributeName": "",
      "functionName": "Fiber length (meters)"
    }
  ],
 "nearestNeighbor": {
   "count": -1,
   "costNetworkAttributeName": "",
   "nearestCategories": [],
   "nearestAssets": []
 },
 "outputFilters": [],
 "outputConditions": [],
 "propagators": []
}
resultTypes= [
  {
   "type":"paths",
   "includeGeometry":true,
   "includePropagatedValues":false,
   "includeDomainDescriptions":false,
   "networkAttributeNames":[],
   "diagramTemplateName":"",
   "resultTypeFields":[{}]
   }
]
async=false

JSON Response:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320

{
  "traceResults": {
    "paths": [
      {
        "pathId": 1,
        "order": 1,
        "startingPoint": {
          "globalId": "{F448D4AC-1BBA-4F0C-A8AD-3E0714381461}",
          "percentAlong": -1,
          "isFilterBarrier": false,
          "firstUnit": 1,
          "lastUnit": 1,
          "networkSourceId": 20
        },
        "stoppingPoint": {
          "globalId": "{D8BF0EA4-BD68-46B1-B037-766C2F7AF08E}",
          "percentAlong": -1,
          "isFilterBarrier": false,
          "firstUnit": 1,
          "lastUnit": 1,
          "networkSourceId": 20
        },
        "pathConnectivity": [
          {
            "edgeSourceId": 17,
            "edgeGlobalId": "{6C2B921C-1641-4671-8BAB-2AAB5183B38A}",
            "edgeObjectId": 1,
            "edgePositionFrom": 0,
            "edgePositionTo": 1,
            "edgeFirstUnit": 1,
            "edgeLastUnit": 1,
            "junctionSourceId": 16,
            "junctionGlobalId": "{62696C18-7BDE-47B4-87ED-0ACFC754A4CA}",
            "junctionObjectId": 2,
            "junctionFirstUnit": 1,
            "junctionLastUnit": 1
          },
          {
            "edgeSourceId": 17,
            "edgeGlobalId": "{305DD264-988A-4327-A22E-D6A778F7F092}",
            "edgeObjectId": 2,
            "edgePositionFrom": 0,
            "edgePositionTo": 1,
            "edgeFirstUnit": 1,
            "edgeLastUnit": 1,
            "junctionSourceId": 16,
            "junctionGlobalId": "{C3A71DC0-ACD2-4BC7-AAF4-1EE80CF86EF4}",
            "junctionObjectId": 3,
            "junctionFirstUnit": 1,
            "junctionLastUnit": 1
          },
          {
            "edgeSourceId": 17,
            "edgeGlobalId": "{6A91B9B9-7AF9-4C64-AA46-9B5DBF0BA543}",
            "edgeObjectId": 6,
            "edgePositionFrom": 0,
            "edgePositionTo": 1,
            "edgeFirstUnit": 1,
            "edgeLastUnit": 1,
            "junctionSourceId": 16,
            "junctionGlobalId": "{D8BF0EA4-BD68-46B1-B037-766C2F7AF08E}",
            "junctionObjectId": 7,
            "junctionFirstUnit": 1,
            "junctionLastUnit": 1
          }
        ],
        "geometry": {
          "hasZ": true,
          "hasM": true,
          "paths": [
            [
              [
                6812027.024774224,
                1844087.451537311,
                0,
                null
              ],
              [
                6812159.711844802,
                1844093.057825312,
                0,
                null
              ]
            ],
            [
              [
                6812159.711844802,
                1844093.057825312,
                0,
                null
              ],
              [
                6812159.711844802,
                1844010.8293152303,
                0,
                null
              ]
            ],
            [
              [
                6812159.711844802,
                1844010.8293152303,
                0,
                null
              ],
              [
                6812288.661061972,
                1844008.9605525584,
                0,
                null
              ]
            ]
          ]
        }
      },
      {
        "pathId": 2,
        "order": 2,
        "startingPoint": {
          "globalId": "{F448D4AC-1BBA-4F0C-A8AD-3E0714381461}",
          "percentAlong": -1,
          "isFilterBarrier": false,
          "firstUnit": 1,
          "lastUnit": 1,
          "networkSourceId": 20
        },
        "stoppingPoint": {
          "globalId": "{D8BF0EA4-BD68-46B1-B037-766C2F7AF08E}",
          "percentAlong": -1,
          "isFilterBarrier": false,
          "firstUnit": 1,
          "lastUnit": 1,
          "networkSourceId": 20
        },
        "pathConnectivity": [
          {
            "edgeSourceId": 17,
            "edgeGlobalId": "{EF9A24A3-D0BC-4384-8FE2-06A6378B3CAB}",
            "edgeObjectId": 4,
            "edgePositionFrom": 0,
            "edgePositionTo": 1,
            "edgeFirstUnit": 1,
            "edgeLastUnit": 1,
            "junctionSourceId": 16,
            "junctionGlobalId": "{A2544F31-8ED1-4456-97AF-AD3499A31955}",
            "junctionObjectId": 5,
            "junctionFirstUnit": 1,
            "junctionLastUnit": 1
          },
          {
            "edgeSourceId": 17,
            "edgeGlobalId": "{E1CD069D-9FE2-43D3-9C1E-C7917DE1BE26}",
            "edgeObjectId": 8,
            "edgePositionFrom": 0,
            "edgePositionTo": 1,
            "edgeFirstUnit": 1,
            "edgeLastUnit": 1,
            "junctionSourceId": 16,
            "junctionGlobalId": "{4DB934A7-E421-4E6A-9D00-0B3074B54832}",
            "junctionObjectId": 11,
            "junctionFirstUnit": 1,
            "junctionLastUnit": 1
          },
          {
            "edgeSourceId": 17,
            "edgeGlobalId": "{218C0123-8C2C-4E57-8819-C181ABEE554B}",
            "edgeObjectId": 13,
            "edgePositionFrom": 0,
            "edgePositionTo": 1,
            "edgeFirstUnit": 1,
            "edgeLastUnit": 1,
            "junctionSourceId": 16,
            "junctionGlobalId": "{62FB1894-A9F1-493B-9DE1-D89A84AC6FB7}",
            "junctionObjectId": 10,
            "junctionFirstUnit": 1,
            "junctionLastUnit": 1
          },
          {
            "edgeSourceId": 17,
            "edgeGlobalId": "{236EC60B-199A-434A-BE04-53919576E5ED}",
            "edgeObjectId": 10,
            "edgePositionFrom": 0,
            "edgePositionTo": 1,
            "edgeFirstUnit": 1,
            "edgeLastUnit": 1,
            "junctionSourceId": 16,
            "junctionGlobalId": "{D8BF0EA4-BD68-46B1-B037-766C2F7AF08E}",
            "junctionObjectId": 7,
            "junctionFirstUnit": 1,
            "junctionLastUnit": 1
          }
        ],
        "geometry": {
          "hasZ": true,
          "hasM": true,
          "paths": [
            [
              [
                6812027.024774224,
                1844087.451537311,
                0,
                null
              ],
              [
                6812157.842754051,
                1843861.3230525554,
                0,
                null
              ]
            ],
            [
              [
                6812157.842754051,
                1843861.3230525554,
                0,
                null
              ],
              [
                6812537.215026811,
                1843921.1257544757,
                0,
                null
              ]
            ],
            [
              [
                6812423.216567144,
                1844008.9605525584,
                0,
                null
              ],
              [
                6812537.215026811,
                1843921.1257544757,
                0,
                null
              ]
            ],
            [
              [
                6812288.661061972,
                1844008.9605525584,
                0,
                null
              ],
              [
                6812423.216567144,
                1844008.9605525584,
                0,
                null
              ]
            ]
          ]
        }
      }
    ],
    "elements": [],
    "diagramName": "<placeholder>",
    "globalFunctionResults": [
      {
        "functionType": "add",
        "networkAttributeName": "Shape length",
        "result": 34.3184412438915,
        "conditions": [
          {
            "name": "Asset type",
            "type": "networkAttribute",
            "operator": "equal",
            "value": 1,
            "combineUsingOr": false,
            "isSpecificValue": true
      }
    ],
    "summaryAttributeName": "",
    "functionName": "Total Length of Fiber (meters)"
  }
],
    "kFeaturesForKNNFound": false,
    "startingPointsIgnored": false,
    "warnings": [],
    "sourceMapping": {
      "1": "UN_6_Associations",
      "2": "UN_6_SystemJunctions",
      "4": "StructureJunction",
      "6": "StructureBoundary",
      "7": "StructureJunctionObject",
      "5": "StructureLine",
      "8": "StructureEdgeObject",
      "9": "ElectricDistributionDevice",
      "11": "ElectricDistributionAssembly",
      "12": "ElectricDistributionJunction",
      "14": "ElectricDistributionJunctionObject",
      "10": "ElectricDistributionLine",
      "13": "ElectricDistributionSubnetLine",
      "15": "ElectricDistributionEdgeObject",
      "16": "TelcoDevice",
      "18": "TelcoAssembly",
      "19": "TelcoJunction",
      "20": "TelcoJunctionObject",
      "17": "TelcoLine",
      "21": "TelcoEdgeObject",
      "22": "TelcoCircuit",
      "23": "TelcoCircuitSection",
      "24": "TelcoSubcircuit"
    },
    "resultTypes": [
      {
        "type": "paths",
        "includeGeometry": true,
        "includePropagatedValues": false,
        "includeDomainDescriptions": false,
        "networkAttributeNames": [],
        "diagramTemplateName": "",
        "resultTypeFields": []
      }
    ]
  },
  "success": true
}

Perform a subnetwork trace for the ElectricDistribution domain network in the Medium Voltage tier to return attribute values describing the Phase and Device Status of a switch from a related table (SwitchUnit). No telecom domain network is present in the utility network.

Request URL and parameters:

Use dark colors for code blocksCopy
1
2

https://myserver.esri.com/server/rest/services/LandUse/UtilityNetworkServer/trace
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
f=json
gdbVersion=SDE.DEFAULT
sessionID=
moment=
traceType=subnetwork
traceLocations=[]
traceConfiguration=
{
 "includeContainers": true,
 "includeContent": true,
 "includeStructures": true,
 "includeBarriers": true,
 "validateConsistency": true,
 "validateLocatability": false,
 "synthesizeGeometries": false,
 "includeIsolated": false,
 "ignoreBarriersAtStartingPoints": false,
 "includeUpToFirstSpatialContainer":false,
 "allowIndeterminateFlow":true,
 "useDigitizedDirection":false,
 "domainNetworkName": "ElectricDistribution",
 "tierName": "Medium Voltage",
 "targetTierName": "",
 "subnetworkName": "RMT001",
 "diagramTemplateName": "",
 "shortestPathNetworkAttributeName": "",
 "filterBitsetNetworkAttributeName": "",
 "traversabilityScope": "junctionsAndEdges",
 "conditionBarriers": [
   {
     "name": "Device Status",
     "type": "networkAttribute",
     "operator": "equal",
     "value": 1,
     "combineUsingOr": false,
     "isSpecificValue": true
   }
 ],
 "functionBarriers": [],
 "arcadeExpressionBarrier": "",
 "filterBarriers": [],
 "filterFunctionBarriers": [],
 "filterScope": "junctionsAndEdges",
 "functions": [],
 "nearestNeighbor": {
     "count": -1,
     "costNetworkAttributeName": "",
     "nearestCategories": [],
     "nearestAssets": []
 },
 "outputFilters": [],
 "outputConditions": [],
 "propagators": [
   {
     "networkAttributeName": "Phases Current",
     "substitutionAttributeName": "phasessub",
     "propagatorFunctionType": "bitwiseAnd",
     "operator": "includesAny",
     "value": 15,
     "propagatedAttributeName": ""
   }
 ]
}
resultTypes= [
  {
    "type": "relatedRecords",
    "includeGeometry": true,
    "includePropagatedValues": false,
    "includeDomainDescriptions": true,
    "networkAttributeNames": [],
    "diagramTemplateName": "",
    "resultTypeFields": [],
    "relationshipClasses": [
      {
        "originLayerOrTableId": 10,
        "destinationLayerOrTableId": 33,
        "outFields": [
          "Phase, ​DeviceStatus"
        ],
        "relationshipOutFields": []
      }
    ]
  }
]
async=false

JSON Response:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108

{
  "relatedRecords": [
  {
  "networkSourceId": 5,
  "networkSourceName": "ElectricDevice",
  "globalId": "{BE50E691-9297-4B9E-B6D2-24DA3D16FF8E}",
  "relationshipClasses": [
    {
      "originLayerId": 5,
      "destinationLayerId": 1,
      "name": "ElecDevice_SwitchUnit",
      "originName": "ElecDevice",
      "destinationName": "SwitchUnit",
      "relationships": [
        {
          "outFields": [
            {
              "name": "Phase",
              "value": 4,
              "description": "A"
            },
            {
              "name": "DeviceStatus",
              "value": 1,
              "description": "Closed"
            }
          ]
        },
        {
          "outFields": [
            {
              "name": "Phase",
              "value": 2,
              "description": "B"
            },
            {
              "name": "DeviceStatus",
              "value": 1,
              "description": "Closed"
            }
          ]
        },
        {
          "outFields": [
            {
              "name": "Phase",
              "value": 1,
              "description": "C"
            },
            {
              "name": "DeviceStatus",
              "value": 0,
              "description": "Open"
            }
          ]
        }
      ]
    }
  ]
 }
],
"sourceMapping": {
  "1": "UN_6_Associations",
  "2": "UN_6_SystemJunctions",
  "4": "StructureJunction",
  "6": "StructureBoundary",
  "7": "StructureJunctionObject",
  "5": "StructureLine",
  "8": "StructureEdgeObject",
  "9": "ElectricDistributionDevice",
  "11": "ElectricDistributionAssembly",
  "12": "ElectricDistributionJunction",
  "14": "ElectricDistributionJunctionObject",
  "10": "ElectricDistributionLine",
  "13": "ElectricDistributionSubnetLine",
  "15": "ElectricDistributionEdgeObject",
  "16": "ElectricTransmissionDevice",
  "18": "ElectricTransmissionAssembly",
  "19": "ElectricTransmissionJunction",
  "21": "ElectricTransmissionJunctionObject",
  "17": "ElectricTransmissionLine",
  "20": "ElectricTransmissionSubnetLine",
  "22": "ElectricTransmissionEdgeObject"
},
  "resultTypes": [
  {
    "type": "relatedRecords",
    "includeGeometry": true,
    "includePropagatedValues": false,
    "includeDomainDescriptions": true,
    "networkAttributeNames": [],
    "diagramTemplateName": "",
    "resultTypeFields": [],
    "relationshipClasses": [
      {
        "originLayerId": 5,
        "destinationLayerId": 1,
        "outFields": [
          "Phase",
          "DeviceStatus"
        ],
        "relationshipOutFields": []
      }
    ]
  }
]
}

Perform a circuit trace on the Telco domain network for a three section circuit named "CIRCUITA" using the circuits resultType.

Request URL and parameters:

Use dark colors for code blocksCopy
1
2

https://myserver.esri.com/server/rest/services/TelecomService/UtilityNetworkServer/trace
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

f=json
gdbVersion=SDE.DEFAULT
traceType=circuit
traceLocations=[]
traceConfiguration=
{
  "includeContainers": false,
  "includeContent": false,
  "includeStructures": false,
  "includeBarriers": true,
  "validateConsistency": true,
  "validateLocatability": true,
  "synthesizeGeometries": true,
  "ignoreBarriersAtStartingPoints": false,
  "includeUpToFirstSpatialContainer": false,
  "allowIndeterminateFlow": true,
  "useDigitizedDirection": false,
  "domainNetworkName": "Telco",
  "diagramTemplateName": "",
  "shortestPathNetworkAttributeName": "",
  "filterBitsetNetworkAttributeName": "",
  "traversabilityScope": "junctionsAndEdges",
  "numPaths": 1,
  "maxHops": 100,
  "inferConnectivity": false,
  "circuitName": "CIRCUITA",
  "conditionBarriers": [],
  "functionBarriers": [
    {
      "functionType": "add",
      "networkAttributeName": "act_len",
      "operator": "greaterThanEqual",
      "value": 52800,
      "useLocalValues": true
    }
  ],
  "arcadeExpressionBarrier": "",
  "filterBarriers": [],
  "filterFunctionBarriers": [],
  "filterScope": "junctionsAndEdges",
  "functions": [],
  "nearestNeighbor": {
    "count": -1,
    "costNetworkAttributeName": "",
    "nearestCategories": [],
    "nearestAssets": []
  },
  "outputFilters": [],
  "outputConditions": []
}

JSON Response:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
{
  "traceResults": {
    "circuits": [
      {
        "name": "CIRCUITA",
        "globalId": "{4E9D7334-B6B4-47EA-974E-985109985CFD}",
        "status": "Dirty",
        "isSectioned": true,
        "isDeleted": false,
        "lastExportedTime": "",
        "lastVerifiedTime": "",
        "sectionOrder": {
          "1": [2],
          "2": [3],
          "3": []
        },
        "circuitType": "Physical",
        "sections": [
          {
            "sectionId": 1,
            "role": "Start",
            "sectionType": "Physical",
            "startLocation": {
              "sourceId": 20,
              "globalId": "{332A2863-0CE0-41BC-847B-C0F1980C9E4C}",
              "firstUnit": 1,
              "lastUnit": 1
            },
            "stopLocation": {
              "sourceId": 20,
              "globalId": "{6C59BEF8-A74C-49E7-9A9C-144FA5CB3C3A}",
              "firstUnit": 1,
              "lastUnit": 1
            },
            "path": {
              "startingPoint": {
                "globalId": "{332A2863-0CE0-41BC-847B-C0F1980C9E4C}",
                "percentAlong": -1,
                "isFilterBarrier": false,
                "firstUnit": 1,
                "lastUnit": 1,
                "networkSourceId": 20
              },
              "stoppingPoint": {
                "globalId": "{6C59BEF8-A74C-49E7-9A9C-144FA5CB3C3A}",
                "percentAlong": -1,
                "isFilterBarrier": false,
                "firstUnit": 1,
                "lastUnit": 1,
                "networkSourceId": 20
              },
              "pathConnectivity": [
                {
                  "edgeSourceId": 21,
                  "edgeGlobalId": "{99037876-E6C7-472D-AA4A-7C0437C480EE}",
                  "edgeObjectId": 14,
                  "edgePositionFrom": 0,
                  "edgePositionTo": 1,
                  "edgeFirstUnit": 1,
                  "edgeLastUnit": 1,
                  "junctionSourceId": 20,
                  "junctionGlobalId": "{6C59BEF8-A74C-49E7-9A9C-144FA5CB3C3A}",
                  "junctionObjectId": 13,
                  "junctionFirstUnit": 1,
                  "junctionLastUnit": 1
                }
              ]
            }
          },
          {
            "sectionId": 2,
            "role": "Midspan",
            "sectionType": "Physical",
            "startLocation": {
              "sourceId": 20,
              "globalId": "{934DEC73-3379-423B-8513-CD3CECA7BEA0}",
              "firstUnit": 1,
              "lastUnit": 1
            },
            "stopLocation": {
              "sourceId": 20,
              "globalId": "{DB1D82DC-E7D8-4954-86DA-D97231FB0F5C}",
              "firstUnit": 1,
              "lastUnit": 1
            },
            "path": {
              "startingPoint": {
                "globalId": "{934DEC73-3379-423B-8513-CD3CECA7BEA0}",
                "percentAlong": -1,
                "isFilterBarrier": false,
                "firstUnit": 1,
                "lastUnit": 1,
                "networkSourceId": 20
              },
              "stoppingPoint": {
                "globalId": "{DB1D82DC-E7D8-4954-86DA-D97231FB0F5C}",
                "percentAlong": -1,
                "isFilterBarrier": false,
                "firstUnit": 1,
                "lastUnit": 1,
                "networkSourceId": 20
              },
              "pathConnectivity": [
                {
                  "edgeSourceId": 21,
                  "edgeGlobalId": "{CFE4D12B-DBE1-46D1-ACF2-5AEC12A1F49F}",
                  "edgeObjectId": 15,
                  "edgePositionFrom": 0,
                  "edgePositionTo": 1,
                  "edgeFirstUnit": 1,
                  "edgeLastUnit": 1,
                  "junctionSourceId": 20,
                  "junctionGlobalId": "{DB1D82DC-E7D8-4954-86DA-D97231FB0F5C}",
                  "junctionObjectId": 15,
                  "junctionFirstUnit": 1,
                  "junctionLastUnit": 1
                }
              ]
            }
          },
          {
            "sectionId": 3,
            "role": "End",
            "sectionType": "Physical",
            "startLocation": {
              "sourceId": 20,
              "globalId": "{1DF80678-5165-4C30-80E7-9D5EC349D58C}",
              "firstUnit": 1,
              "lastUnit": 1
            },
            "stopLocation": {
              "sourceId": 20,
              "globalId": "{A946E664-D07A-4DAB-8107-0F1CDF108AC9}",
              "firstUnit": 1,
              "lastUnit": 1
            },
            "path": {
              "startingPoint": {
                "globalId": "{1DF80678-5165-4C30-80E7-9D5EC349D58C}",
                "percentAlong": -1,
                "isFilterBarrier": false,
                "firstUnit": 1,
                "lastUnit": 1,
                "networkSourceId": 20
              },
              "stoppingPoint": {
                "globalId": "{A946E664-D07A-4DAB-8107-0F1CDF108AC9}",
                "percentAlong": -1,
                "isFilterBarrier": false,
                "firstUnit": 1,
                "lastUnit": 1,
                "networkSourceId": 20
              },
              "pathConnectivity": [
                {
                  "edgeSourceId": 21,
                  "edgeGlobalId": "{5D797145-FC60-4C53-A5D9-85F8A7080B19}",
                  "edgeObjectId": 22,
                  "edgePositionFrom": 0,
                  "edgePositionTo": 1,
                  "edgeFirstUnit": 1,
                  "edgeLastUnit": 1,
                  "junctionSourceId": 20,
                  "junctionGlobalId": "{A946E664-D07A-4DAB-8107-0F1CDF108AC9}",
                  "junctionObjectId": 30,
                  "junctionFirstUnit": 1,
                  "junctionLastUnit": 1
                }
              ]
            }
          }
        ],
        "subcircuits": [],
        "attributes": {
          "Band": 100,
		  "Priv": "No"
        }
      }
    ],
    "elements": [],
    "diagramName": "<placeholder>",
    "globalFunctionResults": [],
    "kFeaturesForKNNFound": false,
    "startingPointsIgnored": false,
    "warnings": [],
    "sourceMapping": {
      "1": "UN_111_Associations",
      "2": "UN_111_SystemJunctions",
      "4": "StructureJunction",
      "6": "StructureBoundary",
      "7": "StructureJunctionObject",
      "5": "StructureLine",
      "8": "StructureEdgeObject",
      "9": "ElectricDistributionDevice",
      "11": "ElectricDistributionAssembly",
      "12": "ElectricDistributionJunction",
      "14": "ElectricDistributionJunctionObject",
      "10": "ElectricDistributionLine",
      "13": "ElectricDistributionSubnetLine",
      "15": "ElectricDistributionEdgeObject",
      "16": "TelcoDevice",
      "18": "TelcoAssembly",
      "19": "TelcoJunction",
      "20": "TelcoJunctionObject",
      "17": "TelcoLine",
      "21": "TelcoEdgeObject",
      "22": "TelcoCircuit",
      "23": "TelcoCircuitSection",
      "24": "TelcoSubcircuit"
    },
    "resultTypes": [
      {
        "type": "circuits",
        "includeGeometry": true,
        "includePropagatedValues": false,
        "includeDomainDescriptions": false,
        "networkAttributeNames": [],
        "diagramTemplateName": "",
        "resultTypeFields": []
      }
    ]
  },
  "success": true
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.