Select to view content in your preferred language

AttributeError: Object: GetParameterInfo tool <UtilityNetwork_un> not found

551
9
Jump to solution
03-27-2025 09:33 AM
TanyaWright1
Occasional Contributor

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!

0 Kudos
1 Solution

Accepted Solutions
MikeMillerGIS
Esri Frequent Contributor

I found an issue that should be fixed in the 3.3.3 version of the toolset, can you try this version out?

https://github.com/Esri/Utility-Data-Management-Support-Tools/blob/3.3/UtilityDataManagementSupport....

View solution in original post

0 Kudos
9 Replies
MikeMillerGIS
Esri Frequent Contributor

What version of ArcGIS Pro and what version of the UDMS(Utility Data Management) toolbox are you using.  

 

0 Kudos
TanyaWright1
Occasional Contributor

ArcPro 3.4.0

udms 3.3.1 

 

0 Kudos
MikeMillerGIS
Esri Frequent Contributor

Can you post a screen shot too, do you see any error codes?

0 Kudos
TanyaWright1
Occasional Contributor

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

0 Kudos
MikeMillerGIS
Esri Frequent Contributor

I found an issue that should be fixed in the 3.3.3 version of the toolset, can you try this version out?

https://github.com/Esri/Utility-Data-Management-Support-Tools/blob/3.3/UtilityDataManagementSupport....

0 Kudos
TanyaWright1
Occasional Contributor

TanyaWright1_0-1743099269071.png

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?

0 Kudos
MikeMillerGIS
Esri Frequent Contributor

When you replaced the toolbox, did you restart pro?  Did you delete the old one?  

0 Kudos
TanyaWright1
Occasional Contributor

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!

0 Kudos
MikeMillerGIS
Esri Frequent Contributor

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.