Select to view content in your preferred language

Asset Package To Geodatabase Fail

748
6
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

6 Replies
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.

EdwardBlair
Regular Contributor

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

EdwardBlair_0-1734466434235.png

 

0 Kudos
PaulLeBlanc1
Esri Regular Contributor
0 Kudos
EdwardBlair
Regular Contributor

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).

0 Kudos
EdwardBlair
Regular Contributor

The GlobalID_1 field was defined as a "GlobalID".  Once I removed this my "Apply Asset Package" task completed successfully.

Ed

0 Kudos
PaulLeBlanc1
Esri Regular Contributor

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.

0 Kudos