<?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: Route Analysis using Modelbuilder - Field Mapping parameters for Add Locations not working in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-analysis-using-modelbuilder-field-mapping/m-p/1201475#M7981</link>
    <description>&lt;P&gt;Hi Rachel.&amp;nbsp; I'm not really surprised that this isn't working.&amp;nbsp; The Add Locations tool doesn't have access to the schema information about the output of Model 1, so it can't construct the field mapping reliably.&amp;nbsp; I'm not really sure how you could get this to work.&amp;nbsp; Maybe you could put all of it in one model, and if it was validated or run once, Add Locations might be able to figure it out.&amp;nbsp; But in general I think this strategy is pretty iffy, and I wouldn't recommend it.&lt;/P&gt;&lt;P&gt;If you can change your combo_ID fields to RouteName in advance, that might make it work because the field mapping will happen automatically.&lt;/P&gt;&lt;P&gt;Regarding the impedance attribute - that's included in the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/travel-modes.htm" target="_self"&gt;Travel Mode&lt;/A&gt; now.&amp;nbsp; If you don't like the defaults of the travel modes already included in your network dataset, you can make a new travel mode and use that.&lt;/P&gt;&lt;P&gt;If you're frustrated with the model workflow and just need an easy way to get costs for known origin-destination pairs, you can download and use a sample tool we have here:&amp;nbsp;&lt;A href="https://github.com/Esri/large-network-analysis-tools" target="_blank"&gt;https://github.com/Esri/large-network-analysis-tools&lt;/A&gt;&amp;nbsp; This toolbox contains tools designed primarily for solving very large network analysis problems, but you could still use the known OD pair tool with a small problem.&amp;nbsp; It will probably serve your needs out of the box.&lt;/P&gt;&lt;P&gt;To use this tool, download the latest version using the Releases link on the far right:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MelindaMorang_0-1660155532779.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48296i908AA7DD66ABFC9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MelindaMorang_0-1660155532779.png" alt="MelindaMorang_0-1660155532779.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You will want to use the "Solve Large Analysis With Known OD Pairs" tool.&amp;nbsp; The tool's documentation is included in the link above.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2022 18:19:31 GMT</pubDate>
    <dc:creator>MelindaMorang</dc:creator>
    <dc:date>2022-08-10T18:19:31Z</dc:date>
    <item>
      <title>Route Analysis using Modelbuilder - Field Mapping parameters for Add Locations not working</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-analysis-using-modelbuilder-field-mapping/m-p/1201431#M7980</link>
      <description>&lt;P&gt;I'm building a model to measure distances (miles) and accumulate drive time (minutes) between predetermined origin and destination points. I already have this workflow down manually, but want to turn it into a geoprocessing model since it's a routine task for work.&lt;/P&gt;&lt;P&gt;I'm using ArcGIS Pro 2.9 with the Network Analyst extension, and streetmap premium's Routing_ND for the network dataset.&lt;/P&gt;&lt;P&gt;At this time, the model is broken into 2 parts since the output of part 1 wasn't connecting to part 2 when they were 1 entire model.&lt;/P&gt;&lt;P&gt;Part 1 works:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="part1_model.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48283i86A401529B5696D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="part1_model.PNG" alt="part1_model.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="part1_geop2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48284i2F269E49218F6D69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="part1_geop2.PNG" alt="part1_geop2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Part 2 and its ability to successfully connect to Part 1 is where I'm looking for help.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Here is part 2 so far:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="part2_model.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48285iA25AA7A586257E8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="part2_model.PNG" alt="part2_model.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="part2_geop2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48286i0FFD4B925641C26F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="part2_geop2.PNG" alt="part2_geop2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I tried running the part 2 model as-is, it generated 1 route with 200 stops. I need 100 routes with 2 stops (correctly connecting the predetermined origins/destinations). When doing this manually, the Add Locations tool's field mappings are key to adding the origins and destinations correctly as Stops into the Route Analysis layer. They have a combo_ID in common that I need assigned to both the origin and destination RouteName in field mapping. Additionally, I use the combo_ID in the sort field to doubly make sure origins and destinations are being loaded in the same order. I also have a from_ID and to_ID I use as the 'Name' field mapping when adding locations for origins and destinations, to ensure both sets of stops have unique IDs as well.&lt;/P&gt;&lt;P&gt;In modelbuilder, I can apply those settings to the Add Locations tool, but when I turn Field Mappings into a parameter so it can be used as a geoprocessing model, the field mappings remain grayed out and cannot be specified. I imagine this is why I'm getting 1 route with 200 stops, &lt;STRONG&gt;I don't know how to parameterize the field mappings each time I add locations in modelbuilder. Any idea how to get that working?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Additionally, for part 2 there's no parameter to set impedance so I can specify Route measure distance in miles. I only see the Accumulate window. Where would impedance be?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm ok keeping this workflow as 2 separate models for the time being, but I'd also ideally want to successfully connect them as one model, but the origin and destination points generated in part 1 wouldn't turn into parameters either. &lt;STRONG&gt;Any suggestions on how to connect part 1 and part 2 into 1 geoprocessing model?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 17:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-analysis-using-modelbuilder-field-mapping/m-p/1201431#M7980</guid>
      <dc:creator>RachelPasser_RFA</dc:creator>
      <dc:date>2022-08-10T17:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Route Analysis using Modelbuilder - Field Mapping parameters for Add Locations not working</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-analysis-using-modelbuilder-field-mapping/m-p/1201475#M7981</link>
      <description>&lt;P&gt;Hi Rachel.&amp;nbsp; I'm not really surprised that this isn't working.&amp;nbsp; The Add Locations tool doesn't have access to the schema information about the output of Model 1, so it can't construct the field mapping reliably.&amp;nbsp; I'm not really sure how you could get this to work.&amp;nbsp; Maybe you could put all of it in one model, and if it was validated or run once, Add Locations might be able to figure it out.&amp;nbsp; But in general I think this strategy is pretty iffy, and I wouldn't recommend it.&lt;/P&gt;&lt;P&gt;If you can change your combo_ID fields to RouteName in advance, that might make it work because the field mapping will happen automatically.&lt;/P&gt;&lt;P&gt;Regarding the impedance attribute - that's included in the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/travel-modes.htm" target="_self"&gt;Travel Mode&lt;/A&gt; now.&amp;nbsp; If you don't like the defaults of the travel modes already included in your network dataset, you can make a new travel mode and use that.&lt;/P&gt;&lt;P&gt;If you're frustrated with the model workflow and just need an easy way to get costs for known origin-destination pairs, you can download and use a sample tool we have here:&amp;nbsp;&lt;A href="https://github.com/Esri/large-network-analysis-tools" target="_blank"&gt;https://github.com/Esri/large-network-analysis-tools&lt;/A&gt;&amp;nbsp; This toolbox contains tools designed primarily for solving very large network analysis problems, but you could still use the known OD pair tool with a small problem.&amp;nbsp; It will probably serve your needs out of the box.&lt;/P&gt;&lt;P&gt;To use this tool, download the latest version using the Releases link on the far right:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MelindaMorang_0-1660155532779.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48296i908AA7DD66ABFC9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MelindaMorang_0-1660155532779.png" alt="MelindaMorang_0-1660155532779.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You will want to use the "Solve Large Analysis With Known OD Pairs" tool.&amp;nbsp; The tool's documentation is included in the link above.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 18:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-analysis-using-modelbuilder-field-mapping/m-p/1201475#M7981</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2022-08-10T18:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Route Analysis using Modelbuilder - Field Mapping parameters for Add Locations not working</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-analysis-using-modelbuilder-field-mapping/m-p/1201523#M7982</link>
      <description>&lt;P&gt;Hi Melinda, first thank you for taking the time to provide an insightful response. Your explanation makes sense. I just tried the known OD Pairs tool and it worked with my data. Thank you for pointing me in the right direction (pun intended) - this is fantastic!&lt;/P&gt;&lt;P&gt;Perhaps I can continue to use the part 1 of my model for prepping the data, then use your known OD Pairs tool for the rest. Kudos!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 19:20:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-analysis-using-modelbuilder-field-mapping/m-p/1201523#M7982</guid>
      <dc:creator>RachelPasser_RFA</dc:creator>
      <dc:date>2022-08-10T19:20:28Z</dc:date>
    </item>
  </channel>
</rss>

