Hello!
I am starting to create the water utility network using the essentials model and adding in items from the expanded model. I am trying to use the Create Utility Network Copy Workbook tool to add in some additional subtypes to my asset package. (I used the tool successfully when I created the sewer utility network recently). When I try to run the tool it fails and gives me this error:
AttributeError: Object: GetParameterInfo tool <UtilityNetwork_un> not found
I tried uninstalling and reinstalling the UN Tools package but got the same result.
Am I forgetting a step or does anyone know how I can resolve this so that I can run the tool?
Thank you for your help!
Solved! Go to Solution.
I found an issue that should be fixed in the 3.3.3 version of the toolset, can you try this version out?
What version of ArcGIS Pro and what version of the UDMS(Utility Data Management) toolbox are you using.
ArcPro 3.4.0
udms 3.3.1
Can you post a screen shot too, do you see any error codes?
Here is the original error message:
Traceback (most recent call last):
File "X:\temp\Utility Network\Water_Utility_Network_Essentials\Toolboxes\UtilityDataManagementSupport.atbx\CreateNetworkCopyingWorkbook.tool\tool.script.execute.py", line 12, in <module>
File "X:\temp\Utility Network\Water_Utility_Network_Essentials\Toolboxes\UtilityDataManagementSupport.atbx\udms\esri.py", line 404, in wrapper
File "X:\temp\Utility Network\Water_Utility_Network_Essentials\Toolboxes\UtilityDataManagementSupport.atbx\udms\logic\__init__.py", line 1031, in create_clone_workbook
File "X:\temp\Utility Network\Water_Utility_Network_Essentials\Toolboxes\UtilityDataManagementSupport.atbx\udms\logic\clone.py", line 366, in __init__
File "X:\temp\Utility Network\Water_Utility_Network_Essentials\Toolboxes\UtilityDataManagementSupport.atbx\udms_pt\utility_network\__init__.py", line 27, in describe_un
File "X:\temp\Utility Network\Water_Utility_Network_Essentials\Toolboxes\UtilityDataManagementSupport.atbx\udms_pt\utility_network\ap.py", line 74, in __init__
File "X:\temp\Utility Network\Water_Utility_Network_Essentials\Toolboxes\UtilityDataManagementSupport.atbx\udms_pt\utility_network\ap.py", line 169, in get_package_domains
File "X:\temp\Utility Network\Water_Utility_Network_Essentials\Toolboxes\UtilityDataManagementSupport.atbx\udms_pt\abstract\package.py", line 2294, in __init__
File "X:\temp\Utility Network\Water_Utility_Network_Essentials\Toolboxes\UtilityDataManagementSupport.atbx\udms_pt\abstract\package_helper.py", line 546, in cached_domains
File "X:\temp\Utility Network\Water_Utility_Network_Essentials\Toolboxes\UtilityDataManagementSupport.atbx\udms_pt\abstract\package_helper.py", line 173, in __init__
File "X:\temp\Utility Network\Water_Utility_Network_Essentials\Toolboxes\UtilityDataManagementSupport.atbx\udms_pt\abstract\package_helper.py", line 132, in __init__
File "X:\temp\Utility Network\Water_Utility_Network_Essentials\Toolboxes\UtilityDataManagementSupport.atbx\udms_pt\abstract\package_helper.py", line 132, in <genexpr>
File "X:\temp\Utility Network\Water_Utility_Network_Essentials\Toolboxes\UtilityDataManagementSupport.atbx\udms_pt\abstract\package_helper.py", line 165, in get_parameters
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 1615, in GetParameterInfo
return ParameterArray(gp.getParameterInfo(tool_name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 472, in getParameterInfo
self._gp.GetParameterInfo(*gp_fixargs(args, True)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: Object: GetParameterInfo tool <UtilityNetwork_un> not found
I found an issue that should be fixed in the 3.3.3 version of the toolset, can you try this version out?
Hi Mike,
I added in the toolbox you provided the link to, but it gives me this error. Do I have to remove the existing toolbox first?
When you replaced the toolbox, did you restart pro? Did you delete the old one?
Hi Mike,
After restarting everything and deleting out the old toolbox I was able to successfully run the tool using the new toolbox. Thank you!
As a side note, we do not certify the tools and solution on 3.4 since it is not a long term utility network release. If working with the Utility Network, we would suggest using 3.3 with the latest patches.