<?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: Query Syntax for Condition Barriers in Tier Definition in ArcGIS Utility Network Questions</title>
    <link>https://community.esri.com/t5/arcgis-utility-network-questions/query-syntax-for-condition-barriers-in-tier/m-p/1712319#M7149</link>
    <description>&lt;P&gt;&lt;STRONG&gt;First&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Instead of directly referencing asset groups or types in your subnetwork definition you should strongly consider creating a new network category, assigning it to the asset types, and referencing that in your subnetwork definition/traces. This makes it easier to maintain your subnetwork definitions (and trace configurations) without needing to memorize all the code.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Second&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It should. You can always test it out by running the python in pro then opening the tool in your GP history. In this case I'd just swap out the condition barriers in the trace.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Third&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is that really what you want? You only want to treat certain types of closed devices as barriers? A closed device should be treated as a barrier regardless of what type of equipment it is.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jul 2026 15:15:56 GMT</pubDate>
    <dc:creator>RobertKrisher</dc:creator>
    <dc:date>2026-07-03T15:15:56Z</dc:date>
    <item>
      <title>Query Syntax for Condition Barriers in Tier Definition</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/query-syntax-for-condition-barriers-in-tier/m-p/1712306#M7146</link>
      <description>&lt;P&gt;arcpy.un.SetSubnetworkDefinition(&lt;BR /&gt;in_utility_network=r"",&lt;BR /&gt;domain_network="Water",&lt;BR /&gt;tier_name="Pressure Boundary",&lt;BR /&gt;support_disjoint_subnetwork="SUPPORT_DISJOINT",&lt;BR /&gt;valid_devices="Telemetry/Unknown;Telemetry/ClearWell;Telemetry/Tank;Telemetry/StandPipe;Telemetry/PumpStation;Telemetry/MeterStation;Telemetry/PressureRecorder;Telemetry/MotorizedValve;Hydrant/Unknown;Hydrant/Hydrant;Valve/Unknown;Valve/AirRelease;Valve/Altitude;Valve/BlowOff;Valve/Butterfly;Valve/Check;Valve/Gate;Valve/LevelControl;Valve/PostIndicator;Valve/PressureRegulator;Valve/RPZ;Valve/Pito;Valve/FireService_Val;Valve/PressureBoundary;Valve/Stub_Val;Valve/Abandoned_Open;Valve/Abandoned_Closed;Meters/Unknown;Meters/Meters",&lt;BR /&gt;valid_subnetwork_controller="Telemetry/PumpStation;Valve/Gate;Valve/PressureRegulator",&lt;BR /&gt;valid_lines="HydrantLead/Unknown;HydrantLead/HydrantLead;Laterals/Unknown;Laterals/Laterals;Main/Distribution;Main/FireService_Lead;Main/Stub;'Main/Wash Water';'Main/Settled Water';'Main/Filtered Water'",&lt;BR /&gt;aggregated_line="Main/Distribution;Main/FireService_Lead;Main/Stub;'Main/Wash Water';'Main/Settled Water';'Main/Filtered Water'",&lt;BR /&gt;diagram_template=None,&lt;BR /&gt;summaries=None,&lt;BR /&gt;condition_barriers="ValveStatus IS_EQUAL_TO SPECIFIC_VALUE 2 AND;'Asset group' IS_EQUAL_TO SPECIFIC_VALUE 3 AND;'Asset type' INCLUDES_THE_VALUES SPECIFIC_VALUE (3,6,7,10,11) #",&lt;BR /&gt;function_barriers=None,&lt;BR /&gt;include_barriers="INCLUDE_BARRIERS",&lt;BR /&gt;traversability_scope="BOTH_JUNCTIONS_AND_EDGES",&lt;BR /&gt;propagators=None,&lt;BR /&gt;update_structure_features="UPDATE",&lt;BR /&gt;update_container_features="UPDATE",&lt;BR /&gt;edit_mode_for_default_version="WITHOUT_EVENTING",&lt;BR /&gt;edit_mode_for_named_version="WITHOUT_EVENTING",&lt;BR /&gt;valid_junctions="Fitting/Unknown;Fitting/Bend;Fitting/Cross;Fitting/EndOfMain;Fitting/Tee;Fitting/Plug;Fitting/Reducer;Fitting/Sleeve;'Fitting/Plugged Tee';Fitting/Increaser;Fitting/Coupling;PipeHop/Unknown;PipeHop/PipeHop;Water_Net_Junctions/Water_Net_Junctions;MeterBox/Unknown;MeterBox/MeterBox",&lt;BR /&gt;valid_junction_objects=None,&lt;BR /&gt;valid_junction_object_subnetwork_controller=None,&lt;BR /&gt;valid_edge_objects=None,&lt;BR /&gt;manage_subnetwork_isdirty="NOT_MANAGE",&lt;BR /&gt;include_containers="INCLUDE_CONTAINERS",&lt;BR /&gt;include_content="INCLUDE_CONTENT",&lt;BR /&gt;include_structures="INCLUDE_STRUCTURES",&lt;BR /&gt;validate_locatability="DO_NOT_VALIDATE_LOCATABILITY"&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;condition_barriers="ValveStatus IS_EQUAL_TO SPECIFIC_VALUE 2 AND;'Asset group' IS_EQUAL_TO SPECIFIC_VALUE 3 AND;'Asset type' INCLUDES_THE_VALUES SPECIFIC_VALUE (3,6,7,10,11) #"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does this condition work like ValveStatus == 2 AND AssetGroup == 3 AND AssetType IN (3,6,7,10,11)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice on this is much appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2026 14:28:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/query-syntax-for-condition-barriers-in-tier/m-p/1712306#M7146</guid>
      <dc:creator>Rohanrajan</dc:creator>
      <dc:date>2026-07-03T14:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Query Syntax for Condition Barriers in Tier Definition</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/query-syntax-for-condition-barriers-in-tier/m-p/1712319#M7149</link>
      <description>&lt;P&gt;&lt;STRONG&gt;First&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Instead of directly referencing asset groups or types in your subnetwork definition you should strongly consider creating a new network category, assigning it to the asset types, and referencing that in your subnetwork definition/traces. This makes it easier to maintain your subnetwork definitions (and trace configurations) without needing to memorize all the code.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Second&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It should. You can always test it out by running the python in pro then opening the tool in your GP history. In this case I'd just swap out the condition barriers in the trace.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Third&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is that really what you want? You only want to treat certain types of closed devices as barriers? A closed device should be treated as a barrier regardless of what type of equipment it is.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2026 15:15:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/query-syntax-for-condition-barriers-in-tier/m-p/1712319#M7149</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2026-07-03T15:15:56Z</dc:date>
    </item>
  </channel>
</rss>

