Select to view content in your preferred language

Use AssignTerminalConnections command to UtilityNetwork from Python Script

877
3
Jump to solution
01-17-2023 05:00 AM
geopamplona
Emerging Contributor

Hello,

I'm trying to assign terminals against a UN but I can't seem to pass configuration correctly to command from a python script.

https://solutions.arcgis.com/utilities/help/utility-network-automation/tool-reference/modify-termina...

I am using

arcpy.pt.AssignTerminalConnections(
r"c:\un.gdb\un\Network",
"Sewer",
True,
True,
None)

 

Command return ERROR 000732: Asset Package: the dataset c:\un.gdb\un\Network does not exist or is not compatible.

or other error that not found AP_Networks domains

 

How should I correctly use this command to run against a UN network?
Does the network have any requirements?

 

Thanks !

0 Kudos
1 Solution

Accepted Solutions
MikeMillerGIS
Esri Frequent Contributor

Thank you for reporting it.  We found a bug with calling the function from python.  We will get this fixed in the next release of untools, which should be this week.  Are you on 2.9?

View solution in original post

0 Kudos
3 Replies
MikeMillerGIS
Esri Frequent Contributor

Thank you for reporting it.  We found a bug with calling the function from python.  We will get this fixed in the next release of untools, which should be this week.  Are you on 2.9?

0 Kudos
geopamplona
Emerging Contributor

Yes, i am using ArcGIS PRO 2.9.5

 

Thanks !

0 Kudos
MikeMillerGIS
Esri Frequent Contributor

We were actually able to push the update to conda just a few minutes ago.  If you update, all should be fixed!  

0 Kudos