This tool works if I choose keep it all. Any combo of other settings does not work. I made a new clone and reinstalled the UN Tools package. I've attached the empty AP.
Start Time: Friday, September 6, 2024 8:40:44 AM
ArcGIS Pro 3.3.1.52636
untools 3.3.2
Executing from ArcGIS Pro, 14 map(s), activeMap = False
Parallel processing enabled: 6
Asset Package schema version: 2.9
A python error occurred.
EXCEPTION
Traceback (most recent call last):
File "C:\Users\bmay\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\untools\common\wrappers.py", line 161, in wrapper
f = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bmay\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\untools\gptools\tools.py", line 270, in run
ap = ap_constructor(
^^^^^^^^^^^^^^^
File "C:\Users\bmay\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\untools\gptools\tools.py", line 90, in ap_constructor
ap = AssetPackage(
^^^^^^^^^^^^^
File "C:\Users\bmay\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\untools\utility_network\ap.py", line 93, in __init__
EvaluateConfiguration(self, configurations).main()
File "C:\Users\bmay\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\untools\utility_network\configure.py", line 1216, in main
self.fix_xml()
File "C:\Users\bmay\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\untools\utility_network\configure.py", line 1167, in fix_xml
self.un_items = self._collect_asset_groups_types(lookup)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bmay\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\untools\utility_network\configure.py", line 668, in _collect_asset_groups_types
asset_type_domains.add(asset_group.asset_type_domain.name.casefold())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bmay\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\untools\common\wrappers.py", line 414, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bmay\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\untools\describe\controllers\utility_network.py", line 353, in asset_type_domain
return self.parent.table.subtypes.get_id(self.code).fields.get("AssetType").domain
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'fields'
Failed script Asset Package To Geodatabase...
Failed to execute (AssetPackageToFileGeodatabase).
Failed at Friday, September 6, 2024 8:41:20 AM (Elapsed Time: 35.70 seconds)
Solved! Go to Solution.
This is failing because one of the domain networks is un-selected and a configuration entry is trying to removing a subtype on one of the source classes.
Nice find! Running some more tests on a local fix for this.
This is failing because one of the domain networks is un-selected and a configuration entry is trying to removing a subtype on one of the source classes.
Nice find! Running some more tests on a local fix for this.
I've hit the identical error reported by BryanMay531. I've selected both domain networks. Is there a fix or work around for this?
Thx,
Ed
I posted a fix with untools 3.3.3
Paul -
Thank you. That seems to have gotten me over that particular hump.
With that change my "Apply Asset Package" process ran nearly an hour and hit the error below. Which I'm pretty sure is unrelated and merits its own question. (FWIW - I don't have editor tracking enabled in the source asset package and it doesn't seem to be enabled in the target UN dataset.)
Thx
Ed
Adding GlobalID_1 to GISADMIN.StructureBoundary...
ERROR 000852: Cannot add field GlobalID_1 to GISADMIN.StructureBoundary
ERROR 002764: The field is used by Editor Tracking., The operation is not supported by this implementation.
WARNING 000952: Failed to execute (AddField).
The GlobalID_1 field was defined as a "GlobalID". Once I removed this my "Apply Asset Package" task completed successfully.
Ed
Yes, that is very likely unrelated. I don't immediately see how to reproduce this, so I'll send you a DM and we can go from there.