utilityNetworkSyncMode

Specifies the generation and synchronization mode of Utility Network data from the service to an offline geodatabase. Feature layers and tables are always included in the generation and synchronization of the geodatabase. Utility Network System data can be optionally included.

When this property is set to something other than UtilityNetworkSyncMode.None, the schema of all data layers and tables in the feature service is required to support querying associations or tracing offline.

You can filter feature data using GenerateGeodatabaseParameters.layerOptions by:

Excluding data layers or including system layers of the feature service in the GenerateGeodatabaseParameters.layerOptions will result in an error in the GenerateGeodatabaseJob.

Use com.arcgismaps.arcgisservices.SyncCapabilities to check which synchronization mode the feature service supports. If com.arcgismaps.arcgisservices.SyncCapabilities.supportsUtilityNetworkSystem is true, UtilityNetworkSyncMode.SyncSystemTables may be used. If com.arcgismaps.arcgisservices.SyncCapabilities.supportsUtilityNetworkTopology is also true, UtilityNetworkSyncMode.SyncSystemAndTopologyTables may be used.

Setting this property to something other than UtilityNetworkSyncMode.None allows offline com.arcgismaps.utilitynetworks.UtilityNetwork query associations. Setting this property to com.arcgismaps.arcgisservices.SyncCapabilities.supportsUtilityNetworkTopology also enables offline tracing.

When a replica is created with tracing support from an ArcGIS Enterprise 11.2 or earlier feature service, the GenerateGeodatabaseParameters.syncModel must be SyncModel.None. As of ArcGIS Enterprise 11.3, feature services configured with edit capabilities will support SyncModel.Geodatabase.

Utility network sync mode ([UtilityNetworkSyncMode]) Required sync capabilities ([com.arcgismaps.arcgisservices.SyncCapabilities]) Enables utility network capabilities ([com.arcgismaps.utilitynetworks.UtilityNetworkCapabilities])
[UtilityNetworkSyncMode.None] No sync capability required No utility network capability enabled
[UtilityNetworkSyncMode.SyncSystemTables] [com.arcgismaps.arcgisservices.SyncCapabilities.supportsUtilityNetworkSystem] [com.arcgismaps.utilitynetworks.UtilityNetworkCapabilities.supportsQueryAssociations]
[UtilityNetworkSyncMode.SyncSystemAndTopologyTables] [com.arcgismaps.arcgisservices.SyncCapabilities.supportsUtilityNetworkSystem], [com.arcgismaps.arcgisservices.SyncCapabilities.supportsUtilityNetworkTopology] [com.arcgismaps.utilitynetworks.UtilityNetworkCapabilities.supportsQueryAssociations], [com.arcgismaps.utilitynetworks.UtilityNetworkCapabilities.supportsTrace]

The default value is UtilityNetworkSyncMode.None. Utility Network System data will not be included.

This property can be used at the same time as specifying other additional data types to be included.

Since

200.1.0