<?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 TraceGeometricNetwork_management add junction barrier in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/tracegeometricnetwork-management-add-junction/m-p/528744#M41422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the ArcMap Utility Network Analyst tool bar I may manually 'Add a junction barrier to the network'&amp;nbsp; using the 'Add Junction Barrier Tool'. This allows me easily specify places where e.g. the 'Find Connected' Trace should stop.&lt;IMG alt="This is the ArcMap functionality that I want to script using Python/ArcPy" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/219117_AddJunctionBarrierTool.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a Python script utilizing this same capability, and to me it seems that the TraceGeometricNetwork_management tool is the one that I should use to accomplish the tracing tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cannot seem to get around the challenge of adding barriers. I keep getting the error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;STRONG&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;STRONG&gt;ERROR 000800: The value is not a member of ....&lt;/STRONG&gt; &lt;EM&gt;followed by a list of feature classes being part of the geometric network&lt;/EM&gt; ...&lt;STRONG&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Failed to execute (TraceGeometricNetwork).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Documentation for TraceGeometricNetwork (&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/trace-geometric-network.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/trace-geometric-network.htm"&gt;Trace Geometric Network—Help | ArcGIS for Desktop&lt;/A&gt; ) doesn't state any requirements that the feature class holding barriers must be part of the geometric network:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 30px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Point features representing a set of barriers. Barriers define places in the network where traces cannot pass through. If you are only interested in tracing a particular part of your network, you can use barriers to isolate that part of the network. Barriers can be placed anywhere along edges or junctions, but junctions will be considered first when both a junction and edge are found at the location. The feature will be treated as disabled and will not be considered during the trace, unless you've set the &lt;SPAN class=""&gt;in_trace_ends&lt;/SPAN&gt; parameter to &lt;SPAN class=""&gt;TRACE_ENDS&lt;/SPAN&gt; to purposefully find features stopping the trace.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to define my barrier points from a set of business rules and not restricting it to a certain feature class (as entirety or as a subset thereof) being part of the geometric network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it me or is it a bug. If it's a bug, I find this bug serious. Working with utility customers we're restricted / advised to using the ArcMap 10.2.1, so upgrading is not really an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping for a swift solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2016 20:46:35 GMT</pubDate>
    <dc:creator>Jens_Dalsgaard</dc:creator>
    <dc:date>2016-09-02T20:46:35Z</dc:date>
    <item>
      <title>TraceGeometricNetwork_management add junction barrier</title>
      <link>https://community.esri.com/t5/python-questions/tracegeometricnetwork-management-add-junction/m-p/528744#M41422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the ArcMap Utility Network Analyst tool bar I may manually 'Add a junction barrier to the network'&amp;nbsp; using the 'Add Junction Barrier Tool'. This allows me easily specify places where e.g. the 'Find Connected' Trace should stop.&lt;IMG alt="This is the ArcMap functionality that I want to script using Python/ArcPy" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/219117_AddJunctionBarrierTool.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a Python script utilizing this same capability, and to me it seems that the TraceGeometricNetwork_management tool is the one that I should use to accomplish the tracing tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cannot seem to get around the challenge of adding barriers. I keep getting the error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;STRONG&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;STRONG&gt;ERROR 000800: The value is not a member of ....&lt;/STRONG&gt; &lt;EM&gt;followed by a list of feature classes being part of the geometric network&lt;/EM&gt; ...&lt;STRONG&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Failed to execute (TraceGeometricNetwork).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Documentation for TraceGeometricNetwork (&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/trace-geometric-network.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/trace-geometric-network.htm"&gt;Trace Geometric Network—Help | ArcGIS for Desktop&lt;/A&gt; ) doesn't state any requirements that the feature class holding barriers must be part of the geometric network:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 30px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Point features representing a set of barriers. Barriers define places in the network where traces cannot pass through. If you are only interested in tracing a particular part of your network, you can use barriers to isolate that part of the network. Barriers can be placed anywhere along edges or junctions, but junctions will be considered first when both a junction and edge are found at the location. The feature will be treated as disabled and will not be considered during the trace, unless you've set the &lt;SPAN class=""&gt;in_trace_ends&lt;/SPAN&gt; parameter to &lt;SPAN class=""&gt;TRACE_ENDS&lt;/SPAN&gt; to purposefully find features stopping the trace.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to define my barrier points from a set of business rules and not restricting it to a certain feature class (as entirety or as a subset thereof) being part of the geometric network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it me or is it a bug. If it's a bug, I find this bug serious. Working with utility customers we're restricted / advised to using the ArcMap 10.2.1, so upgrading is not really an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping for a swift solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 20:46:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tracegeometricnetwork-management-add-junction/m-p/528744#M41422</guid>
      <dc:creator>Jens_Dalsgaard</dc:creator>
      <dc:date>2016-09-02T20:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: TraceGeometricNetwork_management add junction barrier</title>
      <link>https://community.esri.com/t5/python-questions/tracegeometricnetwork-management-add-junction/m-p/528745#M41423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://downloads.esri.com/support/downloads/other_/103-IssuesAddressedList.pdf"&gt;Bug fixes 10.3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://downloads.esri.com/support/downloads/other_/104-IssuesAddressedList.pdf"&gt;Bug fixes 10.4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can't help directly, but if it was indeed a bug in 10.2, then you can look at the above bug fixes and see if it was noted and fixed... assuming of course that it is a bug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 21:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tracegeometricnetwork-management-add-junction/m-p/528745#M41423</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-09-02T21:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: TraceGeometricNetwork_management add junction barrier</title>
      <link>https://community.esri.com/t5/python-questions/tracegeometricnetwork-management-add-junction/m-p/528746#M41424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&lt;IMG alt="Man, I feel stupid" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/226318_DOH.jpg" style="width: 620px; height: 393px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;The reported ’error’ was actually just me issuing parameters in the wrong order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;You are hereby allowed one hour of laughter and ridicule. The case may be closed.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 11:27:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tracegeometricnetwork-management-add-junction/m-p/528746#M41424</guid>
      <dc:creator>Jens_Dalsgaard</dc:creator>
      <dc:date>2016-09-12T11:27:25Z</dc:date>
    </item>
  </channel>
</rss>

