<?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: Network Dataset: strange behavior with costs in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1479452#M8742</link>
    <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/101257"&gt;@MelindaMorang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The case was escalated to ESRI Inc. and the result is the following bug:&lt;BR /&gt;&lt;EM&gt;BUG-000167842 : Network dataset built with a model has incorrect results for direction and distances&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I paste it here in case other users experience similar issues.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2024 12:40:12 GMT</pubDate>
    <dc:creator>Francisco_R</dc:creator>
    <dc:date>2024-05-28T12:40:12Z</dc:date>
    <item>
      <title>Network Dataset: strange behavior with costs</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1473837#M8727</link>
      <description>&lt;P&gt;Hi, my&amp;nbsp;time- and distance-based costs is "changing places" after I have closed and opened ArcGIS Pro with my project.&lt;BR /&gt;The upper image is after I have created and built the network, and before I shut down ArcGIS Pro, and the lower image is the situation after I have opened ArcGIS Pro with the same project. As you can see in the lower image: my time-based cost now uses the distance attribute, and vice versa.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A new, complete build removes this error, but I'd rather remove the cause instead of doing&amp;nbsp;symptom treatment.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skjermbilde.PNG" style="width: 624px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104361i73BFC6BB0D1B259B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Skjermbilde.PNG" alt="Skjermbilde.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 14:09:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1473837#M8727</guid>
      <dc:creator>EspenFredrikGudevang</dc:creator>
      <dc:date>2024-05-16T14:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Network Dataset: strange behavior with costs</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1473859#M8729</link>
      <description>&lt;P&gt;When you say "A new, complete build removes this error", do you mean that your network dataset was in an unbuilt state when you were using Explore Network initially?&amp;nbsp; Like maybe you edited the attributes or evaluators?&amp;nbsp; If that's the case, maybe the Explore Network tool was getting confused because of the change, and closing and reopening Pro refreshed some sort of cache.&amp;nbsp; Essentially, until the network is built, the changes to the attributes are not reflected on the internal, logical network that Explore Network reads, and the values might be incorrect.&lt;/P&gt;&lt;P&gt;If the problem is still reproducible after the network has been built, then I would consider it a bug of some sort that we would want to investigate.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 14:41:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1473859#M8729</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2024-05-16T14:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Network Dataset: strange behavior with costs</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1476063#M8730</link>
      <description>&lt;P&gt;No, it was not unbuilt, it was built in the very last step in a model builder "production line". And I have not changed any of the attributes and/or evaluators after that build. The only thing that I did after the build was to close (and reopen) Pro.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 06:52:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1476063#M8730</guid>
      <dc:creator>EspenFredrikGudevang</dc:creator>
      <dc:date>2024-05-21T06:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Network Dataset: strange behavior with costs</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1476910#M8735</link>
      <description>&lt;P&gt;Does this happen after every time you run the model? And would you be able to share your model (or a screenshot of it)?&lt;BR /&gt;Also, if you close and reopen Pro after seeing the issue, does it continue to flip the cost/impedance in Explore Network? Does it happen for every edge? Does it happen with junctions and/or turns as well?&lt;/P&gt;&lt;P&gt;Could you share a screenshot of the settings page from Explore Network? I'd like to see what travel mode settings it is using.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 13:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1476910#M8735</guid>
      <dc:creator>RachelApplebaum</dc:creator>
      <dc:date>2024-05-22T13:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Network Dataset: strange behavior with costs</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1477511#M8738</link>
      <description>&lt;P&gt;I was assisting&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/797243"&gt;@EspenFredrikGudevang&lt;/a&gt;&amp;nbsp;in the debugging.&lt;BR /&gt;&lt;BR /&gt;We think the problem is the Build tool when is run in the Model Builder context.&amp;nbsp;&lt;BR /&gt;To complicate the things even more, it is somehow data related, as we couldn't trigger the problem with our own datasets, just the one Espen is using.&lt;/P&gt;&lt;P&gt;To reproduce the issue one has to create the Network Dataset and build it (Full Build) from within a Model Builder model. The result will compute correct routes, but will go crazy on the Directions section, by swapping time with distance and vice versa.&lt;/P&gt;&lt;P&gt;If the Network Dataset is built &lt;STRONG&gt;after&lt;/STRONG&gt; Model Builder runs (either manually or f.e. with Python) the directions section will show correct values.&lt;/P&gt;&lt;P&gt;Calling the Build from a custom python script within the model does not help.&lt;/P&gt;&lt;P&gt;We observed this behavior in both Pro 3.2 and 3.3.&lt;/P&gt;&lt;P&gt;We suspect this is a bug therefore we will escalate the case to investigate further.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For now our workarounds are manually build after model builder or replace the Model Builder model with a Python tool or notebook.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you find this information useful&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 08:24:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1477511#M8738</guid>
      <dc:creator>Francisco_R</dc:creator>
      <dc:date>2024-05-23T08:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Network Dataset: strange behavior with costs</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1477658#M8740</link>
      <description>&lt;P&gt;Thank you Francisco.&lt;/P&gt;&lt;P&gt;I have been communicating with&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/797243"&gt;@EspenFredrikGudevang&lt;/a&gt;&amp;nbsp;via private messages for more details on this issue, but I agree with your conclusion that the problem is with Build Network.&amp;nbsp; Using the network he sent me from the model output, I see the swapped time and distance when I examine a street using Explore Network or when solving a route.&amp;nbsp; This means that the bug is not in the solvers or in Explore Network, but rather the Build Network process has somehow mixed up these two attributes.&amp;nbsp; Doing a full rebuild of the network using 3.2.2 or 3.3 fixes the network.&lt;/P&gt;&lt;P&gt;The next step in investigating the problem is to find a workflow (via Model Builder or whatever) that reproduces the problem.&amp;nbsp; Hopefully you can share the model with us.&lt;/P&gt;&lt;P&gt;Go ahead and escalate your case to Esri, Inc. Support. It will come to me anyway, but through official channels.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 14:09:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1477658#M8740</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2024-05-23T14:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Network Dataset: strange behavior with costs</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1479452#M8742</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/101257"&gt;@MelindaMorang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The case was escalated to ESRI Inc. and the result is the following bug:&lt;BR /&gt;&lt;EM&gt;BUG-000167842 : Network dataset built with a model has incorrect results for direction and distances&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I paste it here in case other users experience similar issues.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 12:40:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1479452#M8742</guid>
      <dc:creator>Francisco_R</dc:creator>
      <dc:date>2024-05-28T12:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Network Dataset: strange behavior with costs</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1487113#M8765</link>
      <description>&lt;P&gt;Regarding the BUG-000167842, which i now understand is adressed in ArcGIS Pro 3.4:&lt;/P&gt;&lt;P&gt;Do you (&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/101257" target="_blank"&gt;@MelindaMorang&lt;/A&gt;?) have information about the trigger for this bug?&lt;BR /&gt;Is it anything I can do with my input data or model (in ArcGIS Pro 3.2.1) to avoid the wrong behaviour?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 11:45:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1487113#M8765</guid>
      <dc:creator>EspenFredrikGudevang</dc:creator>
      <dc:date>2024-06-07T11:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Network Dataset: strange behavior with costs</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1487194#M8766</link>
      <description>&lt;P&gt;Sure.&amp;nbsp; The ultimate cause of the issue was creating the network dataset from a template in which the ID values of the network attributes are out of order.&amp;nbsp; If you open the network dataset template, you'll see something like this in the XML:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MelindaMorang_0-1717768585026.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106466i6E82AEF2A99F4E1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MelindaMorang_0-1717768585026.png" alt="MelindaMorang_0-1717768585026.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If those ID numbers are out of order, you'll encounter the problem.&amp;nbsp; And, for some complicated and weird reason, the problem only occurs if you create and build the network in a model.&lt;/P&gt;&lt;P&gt;Our bug fix just makes the software ignore those ID numbers since they aren't important anyway.&lt;/P&gt;&lt;P&gt;To avoid or work around this problem in pre-3.4 software, you have two choices:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Don't use a model to create and build your network.&amp;nbsp; If you run the Create Network Dataset From Template and Build Network tools manually, it seems to work fine.&lt;/LI&gt;&lt;LI&gt;Manually edit the ID numbers for the EvaluatedNetworkAttribute items in the network dataset template.&amp;nbsp; Usually we don't recommend users to manually edit these templates since they aren't documented or intended for direct interaction, but in this case it seems like a reasonable workaround.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I think in our message exchange you had mentioned that you also resolved the problem by creating a new template from the messed-up network you created, and that subsequent networks created from the updated template worked fine.&amp;nbsp; If that's the case, then this would be a valid third option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 14:00:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1487194#M8766</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2024-06-07T14:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Network Dataset: strange behavior with costs</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1487196#M8767</link>
      <description>&lt;P&gt;By the way, this was an extremely strange issue!&amp;nbsp; I'm sorry you encountered it, but it's certainly not something we had ever thought to test.&amp;nbsp; You found a very interesting challenge for our team.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 14:01:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1487196#M8767</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2024-06-07T14:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Network Dataset: strange behavior with costs</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1488219#M8768</link>
      <description>&lt;P&gt;I exported my model to python, but I got the same bad result. To me it seems that it doesn’t matter if I use Create and Build Network Dataset in Model Builder or Python.&lt;/P&gt;&lt;P&gt;The manual method is not a preferable solution since I have to make an automatic production line to handle my input data which change rather often.&lt;/P&gt;&lt;P&gt;So…. I have tried to make a new template file with a manually created/built network dataset as source, but the ID values are still out of order. I have then changed the IDs according to the red boxes in the screendump, and the created/built network looks good. Is it as “simple” as this? If so - I can then use this template in my production line.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EspenFredrikGudevang_0-1718024820765.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106615iDFA7021B2E1A2C04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EspenFredrikGudevang_0-1718024820765.png" alt="EspenFredrikGudevang_0-1718024820765.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 13:11:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1488219#M8768</guid>
      <dc:creator>EspenFredrikGudevang</dc:creator>
      <dc:date>2024-06-10T13:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Network Dataset: strange behavior with costs</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1488288#M8769</link>
      <description>&lt;P&gt;Yes, if you were able to successfully create and build a network with your edited template, then this should be sufficient to resolve the problem.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 15:02:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-dataset-strange-behavior-with-costs/m-p/1488288#M8769</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2024-06-10T15:02:55Z</dc:date>
    </item>
  </channel>
</rss>

