Hello Esri Community,
I hope this post finds you well. I am facing a problem with Utility Network while working on the water utilities data for Mosul City. I have successfully migrated the data using data loading tools to the water utilities foundation schema. After this, I staged the water utilities, but when I attempted to apply the assets package from the toolbox, an unexpected error occurred, hindering further progress.
I would greatly appreciate any insights or suggestions on why this error might be occurring and how I can overcome it. If anyone has encountered a similar problem or knows potential solutions, your guidance would be immensely valuable.
The error message I encountered is as follows:
Apply Asset Package
=====================
Parameters
Asset Package C:\MSc\MSc_Thesis_GIS\Project\ArcGISProject\MSC_Mosul_Utility_project\WaterDistribution_AssetPackage_Change.gdb
Domain Networks to apply Structure;Water
Input Utility Network C:\MSc\MSc_Thesis_GIS\Project\ArcGISProject\MSC_Mosul_Utility_project\WaterDistribution_AssetPackage_Change.gdb\Mosul_Utility_Network_1\Mosul_Utility_Network
Load data INCLUDE_DATA
Calculate Spatial Index and Analyze ANALYZE
Output Utility Network
Configurations to apply Attachments;'Isolation Tier';'DMA Tier';'Pressure Tier';'Cathodic Protection Tier'
Rename using
Post Process NO_POST_PROCESS
=====================
Messages
Start Time: Tuesday, July 25, 2023 2:20:16 PM
ArcGIS Pro 3.1.2.41833
untools 3.1.0
Executing from ArcGIS Pro, 6 map(s), activeMap = True
Parallel processing enabled: 6
Asset Package schema version: 2.7
A python error occurred.
EXCEPTION
Traceback (most recent call last):
File "C:\Users\A971891\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\untools\common\wrappers.py", line 159, in wrapper
f = func(*args, **kwargs)
File "C:\Users\A971891\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\untools\gptools\tools.py", line 609, in run
ap = ap_constructor(
File "C:\Users\A971891\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\untools\gptools\tools.py", line 53, in ap_constructor
ap = AssetPackage(
File "C:\Users\A971891\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\untools\utility_network\ap.py", line 87, in __init__
self._properties: dict = self._initialize(kwargs.pop("cache", None), **kwargs)
File "C:\Users\A971891\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\untools\common\wrappers.py", line 425, in wrapper
result = func(*args, **kwargs)
File "C:\Users\A971891\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\untools\utility_network\ap.py", line 123, in _initialize
data = self._validation.validate_all(asset_package=self)
File "C:\Users\A971891\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\untools\validation\validate.py", line 1117, in validate_all
data = self._virtualize_un(asset_package)
File "C:\Users\A971891\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\untools\validation\validate.py", line 1029, in _virtualize_un
xml_un = s.main()
File "C:\Users\A971891\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\untools\utils\ap_to_xml.py", line 1709, in main
self.add_domain_networks()
File "C:\Users\A971891\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\untools\utils\ap_to_xml.py", line 715, in add_domain_networks
self.set_values(
File "C:\Users\A971891\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\untools\utils\ap_to_xml.py", line 338, in set_values
element.find(k).text = str(v)
AttributeError: 'NoneType' object has no attribute 'text'
Failed to execute (AssetPackageToUtilityNetwork).
Failed at Tuesday, July 25, 2023 2:20:42 PM (Elapsed Time: 25.48 seconds)
