Using python to Validate Network Topology in a version

4029
20
Jump to solution
09-15-2023 04:44 AM
jclarke
Occasional Contributor

Hi all,

I am trying to write a standalone python script that does something like this

arcpy.ChangeVersion_management('unnetworklayer','BRANCH', version_name, '#', 'INCLUDE')
arcpy.ValidateNetworkTopology_un('unnetworklayer', 'DEFAULT')
 
The documentation says both these tools accept a "Utility Network Layer" as input. But how can I make one? I have tried MakeFeatureLayer etc.
0 Kudos
20 Replies
RobertKrisher
Esri Regular Contributor

It is a layer, like any other in your feature service. Look at your feature service, get its layer id, and use the query method to find dirty areas with a status value that indicates they need to be validated.

RobertKrisher_0-1727107954252.png

 

0 Kudos