<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using python to Validate Network Topology in a version in ArcGIS Utility Network Questions</title>
    <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541391#M4330</link>
    <description>&lt;P&gt;Unfortunately, no I have a different error and I am unable to start an edit session using the start_editing() method (can start reading though). Maybe its something with my UN configuration or how I am trying to instantiate the VersionManager object.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Exception: The operation is not supported by this implementation.
(Error Code: 0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2024 14:42:31 GMT</pubDate>
    <dc:creator>KevinPiraino2</dc:creator>
    <dc:date>2024-09-23T14:42:31Z</dc:date>
    <item>
      <title>Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1329025#M2840</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to write a standalone python script that does something like this&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ChangeVersion_management&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'unnetworklayer'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'BRANCH'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;version_name&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'#'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'INCLUDE'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ValidateNetworkTopology_un&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'unnetworklayer'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'DEFAULT'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/changeversion.htm" target="_self"&gt;documentation&lt;/A&gt; says both these tools accept a "Utility Network Layer" as input. But how can I make one? I have tried MakeFeatureLayer etc.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Sep 2023 11:44:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1329025#M2840</guid>
      <dc:creator>jclarke</dc:creator>
      <dc:date>2023-09-15T11:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1329626#M2853</link>
      <description>&lt;P&gt;You should be able to pass in the URL to the feature service and layer id of the utility network to get this information. However, for creating standalone Python scripts doing fine-grained operations against ArcGIS Enterprise my recommendation is to use the ArcGIS API for Python (read this article about &lt;A href="https://www.esri.com/arcgis-blog/products/utility-network/electric-gas/utility-network-integrations-overview/" target="_blank" rel="noopener"&gt;pros/cons of different apis&lt;/A&gt; for more details).&lt;/P&gt;&lt;P&gt;One other important item to take into consideration, that the ArcGIS API for Python will give you but ArcPy won't, is that when you connect to a version and start making edits (or validating, reconciling, etc) you are potentially going to be competing with other users for locks. If another user is editing that version, your process will fail. If your process is running on a version than other users won't be able to edit it.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1329626#M2853</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2023-09-18T15:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1330197#M2858</link>
      <description>&lt;P&gt;Thanks for the reply - I particularly like that pros and cons matrix in the link.&lt;/P&gt;&lt;P&gt;At this site many arcpy scripts are in use and not ArcGIS API for Python, so it would be great to get this script working, though its good to have that fall-back option of changing API. The edits are being applied beforehand via FME, and no-one else should be editing the version.&lt;/P&gt;&lt;P&gt;When using the URL to the UN layer with arcpy I cant see a way to to change version - the Validate call works on sde.default.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 15:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1330197#M2858</guid>
      <dc:creator>jclarke</dc:creator>
      <dc:date>2023-09-19T15:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1330670#M2870</link>
      <description>&lt;P&gt;I've been out this week so haven't had a chance to test this on my end, but are you saying if you run a standalone python script that does the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create Layer (using feature service URL and giving it some unique layer name)&lt;/LI&gt;&lt;LI&gt;Change version (on layer)&lt;/LI&gt;&lt;LI&gt;Validate topology (on layer)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You are seeing that it is still only validating default? If you're performing this test in ArcGIS Pro you should make sure that the layer name you are using is unique. I can tell you that the ArcGIS API for Python does support all this.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 15:41:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1330670#M2870</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2023-09-20T15:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1331142#M2888</link>
      <description>&lt;P&gt;Hi Robert - re these three steps - I cant get those to run without error&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Create Layer (using feature service URL and giving it some unique layer name)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Change version (on layer)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Validate topology (on layer)&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I think its the "Create Layer" step I am stuck on - its MakeFeatureLayer I am using for this, but ValidateNetworkTopology needs a Utility Network layer, not a feature layer, and so errors.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 16:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1331142#M2888</guid>
      <dc:creator>jclarke</dc:creator>
      <dc:date>2023-09-21T16:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1332117#M2892</link>
      <description>&lt;P&gt;The correct approach for what you want to do is to use the ArcGIS API for Python. I was able to get around some of this by saving an existing utility network layer to a file, then opening it as a layer file, accessing the first layer in the file. But I ran into problems in getting the rest the tools to behave properly, especially since they don't get me the ability to set/clear locks as I discussed above.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 19:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1332117#M2892</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2023-09-25T19:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1332445#M2893</link>
      <description>&lt;P&gt;Thanks for your help Robert!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 14:55:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1332445#M2893</guid>
      <dc:creator>jclarke</dc:creator>
      <dc:date>2023-09-26T14:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541321#M4321</link>
      <description>&lt;P&gt;I am trying to automate some of the UN admin tasks using the Python API, but I am struggling a bit with this task, namely creating the UN object (and hitting the default version). Have either of&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/451337"&gt;@jclarke&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/138089"&gt;@RobertKrisher&lt;/a&gt;&amp;nbsp;had any success in developing this script? Below is what I have so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis
from arcgis.gis import GIS

gis = GIS('https://myorg.gov/portal/','username', 'password')


#utility network URL
util_url = 'https://myorg.gov/un_fabric/rest/services/Utility_Network/Water_Distribution_Source/UtilityNetworkServer'

network_url = 'https://myorg.gov/un_fabric/rest/services/Utility_Network/Water_Distribution_Source/FeatureServer/9'

UN_url = 'https://myorg.gov/un_fabric/rest/services/Utility_Network/Water_Distribution_Source/FeatureServer'

UN_vers = 'https://myorg.gov/un_fabric/rest/services/Utility_Network/Water_Distribution_Source/VersionManagementServer'

#--------------------------------------------------------
UN_flc = arcgis.features.layer.FeatureLayerCollection(UN_url,gis)
vms_from_flc = UN_flc.versions
default_version = vms_from_flc.all[0]
default_guid = default_version.properties.versionGuid
#---------------------------------------------------------

#returns error "AttributeError: 'PropertyMap' instance has no attribute 'versionName'"
df_version = arcgis.features._version.Version(url=UN_url,flc=UN_flc,gis=gis,session_guid=default_guid)

UN = arcgis.features._utility.UtilityNetworkManager(url=util_url,version=default_version,gis=gis)

envelope = {
    "xmin": 1018472.222250,
    "ymin": 1819952.386750,
    "xmax": 1105416.666750,
    "ymax": 1940603.168750,
    "spatialReference": {
    "wkid": 3435,
    "latestWkid": 102671
    }
}

#returns error "Exception: Unable to resume a service session."
UN.validate_topology(envelope) 

#returns error "Exception: Unable to resume a service session."
UN.update_subnetwork('Water','Water System',all_subnetwork_tier=True,continue_on_failure=True)

UN.update_is_connected()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 13:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541321#M4321</guid>
      <dc:creator>KevinPiraino2</dc:creator>
      <dc:date>2024-09-23T13:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541335#M4323</link>
      <description>&lt;P&gt;It seems a little like cheating, but my preferred way to get a UN pointed as a specific version is to get it from the version itself. there is a "utility" property on each version that contains a reference to the utility network for that version (if one is present in the service).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RobertKrisher_0-1727099663493.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/115647i91614D2ECBFAC81B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RobertKrisher_0-1727099663493.png" alt="RobertKrisher_0-1727099663493.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 13:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541335#M4323</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2024-09-23T13:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541339#M4326</link>
      <description>&lt;P&gt;I think my issue currently is that I am unable to instantiate the Version object using the provided UN information from earlier in the script. Every time I try to create the Version object, the script will create it, but when calling the Version object I get the following error:&lt;/P&gt;&lt;P&gt;"AttributeError: 'PropertyMap' instance has no attribute 'versionName'"&lt;/P&gt;&lt;P&gt;I also receive this same error when trying to access the utility property from the Version object.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 13:58:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541339#M4326</guid>
      <dc:creator>KevinPiraino2</dc:creator>
      <dc:date>2024-09-23T13:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541343#M4327</link>
      <description>&lt;P&gt;Instead of directly accessing the internal variable that holds the version manager (_version) you should go through the front door. Here is how I get the version manager, default version, and un object in most of my scripts:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;# Get the version and Utility Network reference
messages.addMessage(f"Connecting to {version_service_url}")
version_manager = VersionManager(version_service_url, gis=gis, flc=feature_layer_collection)
messages.addMessage(f"Connecting to version: {version_name}")
default_version = version_manager.get(version_name)
utility_network_manager = default_version .utility&lt;/LI-CODE&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:03:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541343#M4327</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2024-09-23T14:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541356#M4328</link>
      <description>&lt;P&gt;Unfortunately, I tried something similar when troubleshooting earlier and still was unsuccessful. In both my earlier attempts and using the code block you provided, I still received the following error:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Exception: Unable to resume a service session.
(Error Code: 0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:22:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541356#M4328</guid>
      <dc:creator>KevinPiraino2</dc:creator>
      <dc:date>2024-09-23T14:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541366#M4329</link>
      <description>&lt;P&gt;Before you start reading/writing data with the version, make sure you call either start_reading or start_editing&amp;nbsp; to establish a shared or exclusive lock with the version. When your script finishes/cleans up make sure you stop reading/editing in order to release locks.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541366#M4329</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2024-09-23T14:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541391#M4330</link>
      <description>&lt;P&gt;Unfortunately, no I have a different error and I am unable to start an edit session using the start_editing() method (can start reading though). Maybe its something with my UN configuration or how I am trying to instantiate the VersionManager object.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Exception: The operation is not supported by this implementation.
(Error Code: 0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 14:42:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541391#M4330</guid>
      <dc:creator>KevinPiraino2</dc:creator>
      <dc:date>2024-09-23T14:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541423#M4331</link>
      <description>&lt;P&gt;Try just using start_reading&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 15:00:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541423#M4331</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2024-09-23T15:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541467#M4332</link>
      <description>&lt;P&gt;That seemed to work at least for the "update is connected" and "update subnetwork" methods. The "validate topology" method still produced an error, but its unclear to me if that is an expected error if no recent edits were performed or any dirty areas are present in the UN.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Exception: A dirty area is not present within the validate network topology input extent. A validate network topology process did not occur.
(Error Code: 0)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 23 Sep 2024 15:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541467#M4332</guid>
      <dc:creator>KevinPiraino2</dc:creator>
      <dc:date>2024-09-23T15:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541470#M4333</link>
      <description>&lt;P&gt;That's the expected error you get when you try and validate without checking to see if there are dirty areas that need validating in the extent. You should check for dirty areas that need validating before calling that method. Just like you should check for dirty subnetworks before calling update subnetwork. Running update isconnected is not necessary if you run UpdateSubnetwork, since subnetworks manage the isconnected field.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 15:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541470#M4333</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2024-09-23T15:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541481#M4334</link>
      <description>&lt;P&gt;I appreciate all of the help you have provided, but I'm not sure how to go about querying for dirty areas. I am unable to find any Objects in the API documentation that that would grant that this capability. As far as I can tell there aren't any methods using the VersionManager, Version, or UtilityNetworkManager Objects that provides access to any properties related to dirty areas. Would you mind pointing me in the correct direction?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 16:03:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541481#M4334</guid>
      <dc:creator>KevinPiraino2</dc:creator>
      <dc:date>2024-09-23T16:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541485#M4335</link>
      <description>&lt;P&gt;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 &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/dirty-areas-in-a-utility-network.htm" target="_blank" rel="noopener"&gt;dirty areas with a status value that indicates they need to be validated&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RobertKrisher_0-1727107954252.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/115668i7A4AE1BF6BBAF20F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RobertKrisher_0-1727107954252.png" alt="RobertKrisher_0-1727107954252.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 16:12:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1541485#M4335</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2024-09-23T16:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using python to Validate Network Topology in a version</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1566267#M4654</link>
      <description>&lt;P&gt;I'm running into the exact same error.&amp;nbsp; Did you ever figure out what was causing it?&amp;nbsp; My code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;service_script_version = version_manager.get(version_name)
utility_network_manager = service_script_version.utility
validation_envelope = {'xmin': 2944897.743461,
                       'ymin': 9969206.089036,
                       'xmax': 3210005.065902,
                       'ymax': 10211905.345106,
                       'spatialReference': {'wkid': 102739,
                                            'latestWkid': 2277}
                      }

utility_network_manager.validate_topology(envelope=validation_envelope)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Exception: Unable to resume a service session.
(Error Code: 0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 16:04:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/using-python-to-validate-network-topology-in-a/m-p/1566267#M4654</guid>
      <dc:creator>BruceBacia</dc:creator>
      <dc:date>2024-12-09T16:04:57Z</dc:date>
    </item>
  </channel>
</rss>

