Select to view content in your preferred language

Utility Network / Stage Utility Network Tool

1196
1
11-07-2018 02:26 AM
Labels (3)
LaurentiuIchim3
New Contributor

Hi for all,

I try to create an Stage Utility Network from Utility Network Package Tools, but without succes.
For Input data I have:
1. Enterprise Geodtabase: SQL Server 2016 Enterprise Geodatabase
2. Service Teritory Feature Class: Polygon Feature class with a single feature (extend of working area)
3. Feature Dataset Name: ReteaApa
4. Utility Network Name: Retea

Stage Utility Network Tool

I receive an error message referring to "Service Teritory Feature Class". Geoprocessing tool can't find "ServiceTeritory_1" into "ReteaApa" Feature Dataset (3).
Its likely this tool can't create a featureclass "ServiceTeritory_1" into Featuredataset (3).
After check the Geodatabase, i found a feature class "ServiceTeritory_1" outside of "ReteaApa" Feature Dataset (3):

Geodatabase after running the Stage Utility Network tool
Below is the error message:

A python error occurred.
EXCEPTION
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\ESRI\conda\envs\local-enviroment\lib\site-packages\untools\common\wrappers.py", line 84, in wrapper
return func(*args, **kwargs)
File "C:\Users\Administrator\AppData\Local\ESRI\conda\envs\local-enviroment\lib\site-packages\untools\gptools\tools.py", line 173, in run
return stage.main()
File "C:\Users\Administrator\AppData\Local\ESRI\conda\envs\local-enviroment\lib\site-packages\untools\utils\utility_network.py", line 255, in main
describe = arcpy.Describe(service_territory)
File "f:\program files\arcgis\pro\Resources\arcpy\arcpy\__init__.py", line 1243, in Describe
return gp.describe(value, data_type)
File "f:\program files\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 368, in describe
self._gp.Describe(*gp_fixargs(args, True)))
OSError: "C:\Users\Administrator\Documents\ArcGIS\Projects\UtilityDemo\u1@UtilityNetwork.sde\ReteaApa\ServiceTeritory_1" does not exist
Failed to execute (StageUtilityNetwork).

Tags (1)
1 Reply
VishApte
Esri Contributor

Hi,

Your "Service Territory Feature Class" parameter should typically be from a separate File or Enterprise Geodatabase and not from the same SDE where you are staging UN in.

The workflow I follow is;

1. Use Esri supplied Water Distribution Asset Package and export it to another asset package using Change Asset Package Spatial Reference—Tool Reference | ArcGIS Solutions  This creates another asset package with empty feature classes in the coordinate system I want.

2. Using Pro, manually add a service territory polygon in FGDB created in step 1.

3. Stage Utility Network with Service Territory from step 2.

Hope this helps. 

Cheers,

Vish

0 Kudos