Hi,
I am trying to import association roles into a newly created utility network. The UN contains no associations at this time, so I am exporting the matrix with the Utility Data Management Support toolbox. Then I add containment and structure rules in the Association Role sheet.
When importing back the workbook, I have this error :
Traceback (most recent call last):
File "path\to\UtilityDataManagementSupport.atbx#ImportUtilityNetworkMatrix_udms.py", line 12, in <module>
File "path\to\UtilityDataManagementSupport.atbx\udms\esri.py", line 280, in wrapper
File "path\to\UtilityDataManagementSupport.atbx\udms_pt\common\wrappers.py", line 462, in wrapper
File "path\to\UtilityDataManagementSupport.atbx\udms\logic\__init__.py", line 447, in import_matrix
File "path\to\UtilityDataManagementSupport.atbx\udms\logic\matrix\load.py", line 589, in main
File "path\to\UtilityDataManagementSupport.atbx\udms\logic\matrix\load.py", line 571, in _utility_network
TypeError: __init__() takes 1 positional argument but 2 were given
I noted that I don't have the Containment and Structural Attachment sheets, since they are based on association roles, which are empty for now. But don't know if this is related to my error.
I am scripting in python with latest ArcGIS Pro, and latest UDMS toolbox.
Regards
Solved! Go to Solution.
There was a bug in the version that shipped with the solutions. We resolved it and posted an update here: https://github.com/Esri/Utility-Data-Management-Support-Tools. Can you verify you are using the 3.1.1?
There was a bug in the version that shipped with the solutions. We resolved it and posted an update here: https://github.com/Esri/Utility-Data-Management-Support-Tools. Can you verify you are using the 3.1.1?
Yes, I was in 3.1.1... but not the latest 3.1.1, I saw that the atbx was republished without version change.
It works with latest version from gitlab.
Thanks