Select to view content in your preferred language

Asset Package To Geodatabase Fail

248
1
Jump to solution
09-06-2024 05:48 AM
BryanMay531
Regular Contributor
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)
0 Kudos
1 Solution

Accepted Solutions
PaulLeBlanc1
Esri Regular Contributor

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.

View solution in original post

1 Reply
PaulLeBlanc1
Esri Regular Contributor

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.