Enable Topology

Description

Enabling the network topology for a utility network is done on the DEFAULT version. Enabling is not supported in named versions. When the topology is enabled, all feature and association edits generate dirty areas, which are then consumed when the network topology is updated. When the topology is enabled, the following happens:

Enabling the topology is supported both synchronously and asynchronously and requires that there are no active transactions making modifications to any feature or object classes. While the network is being enabled, all editing will be blocked, as well as modifications to the utility network definition.

LicenseLicense:
The active portal account must be licensed with the ArcGIS Utility Network user type extension to use this operation.

Request parameters

Parameter

Details

f

Description: Optional parameter specifying the output format of the response. The default response format is html.

Values: html | json

maxErrorCount

Description: Optional parameter specifying when the process of enabling the network topology will stop if the maximum number of errors is met. Errors will be recorded in the error tables. The default value is 10,000.

Syntax: maxErrorCount=<integer>

Example: maxErrorCount=10000

async

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

Values: true | false

This parameter was introduced at ArcGIS Enterprise 10.9.1

JSON Response syntax

JSON response (when async = false):

{
  "moment" : ,
  "success" : ,
  "error" : {                   // only if success is false
    "extendedCode” : ,
    "message" : ,
    "details" : [  ]
  }
}

JSON response (when async = true):

{
  "statusUrl" : 
}

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

{
  "status" : "",
  "submissionTime" : ,
  "lastUpdatedTime" : 
 }

Example usage

Enable the network topology for a utility network using the enableTopology operation.

Request URL and parameters:

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

f=json
maxErrorCount=1000
async=false

JSON response:

{
 "moment": 1554336000000,
 "success": true
}