<?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: Load a shapefile as orders in VRP using arcpy in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/load-a-shapefile-as-orders-in-vrp-using-arcpy/m-p/94916#M953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your orders file look like? It appears to require specific inputs&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/network-analyst/solve-vehicle-routing-problem.htm"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/network-analyst/solve-vehicle-routing-problem.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2018 10:30:31 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-05-25T10:30:31Z</dc:date>
    <item>
      <title>Load a shapefile as orders in VRP using arcpy</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/load-a-shapefile-as-orders-in-vrp-using-arcpy/m-p/94915#M952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I' m facing the following issue when trying to load a shapefile as orders in&amp;nbsp;VRP solver using arcpy.&lt;/P&gt;&lt;P&gt;The code that i m using:&lt;/P&gt;&lt;P&gt;inOrders = "sortedStops"&lt;BR /&gt;orders = arcpy.GetParameterValue("SolveVehicleRoutingProblem_na",0)&lt;BR /&gt; orders.load(inOrders)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the errror message that i get;&lt;/P&gt;&lt;P&gt;File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\arcobjects\arcobjects.py", line 1042, in load&lt;BR /&gt; return convertArcObjectToPythonObject(self._arc_object.Load(*gp_fixargs(args)))&lt;BR /&gt;RuntimeError: RecordSetObject: Cannot open table for Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input shapefile has the following attribute table, which is of course doesn't resemble orders attribute table.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/409036_quest1.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 10:03:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/load-a-shapefile-as-orders-in-vrp-using-arcpy/m-p/94915#M952</guid>
      <dc:creator>sotokan80_</dc:creator>
      <dc:date>2018-05-25T10:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Load a shapefile as orders in VRP using arcpy</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/load-a-shapefile-as-orders-in-vrp-using-arcpy/m-p/94916#M953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your orders file look like? It appears to require specific inputs&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/network-analyst/solve-vehicle-routing-problem.htm"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/network-analyst/solve-vehicle-routing-problem.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 10:30:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/load-a-shapefile-as-orders-in-vrp-using-arcpy/m-p/94916#M953</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-05-25T10:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Load a shapefile as orders in VRP using arcpy</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/load-a-shapefile-as-orders-in-vrp-using-arcpy/m-p/94917#M954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, but how am i supposed to make my orders file&amp;nbsp;with the same format? Another issue is that orders attribute table's fields have many characters whilst mine cannot exceed 10.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 11:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/load-a-shapefile-as-orders-in-vrp-using-arcpy/m-p/94917#M954</guid>
      <dc:creator>sotokan80_</dc:creator>
      <dc:date>2018-05-25T11:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Load a shapefile as orders in VRP using arcpy</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/load-a-shapefile-as-orders-in-vrp-using-arcpy/m-p/94918#M955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i found solution to my problem using&amp;nbsp;MakeVehicleRoutingProblemLayer&amp;nbsp; and arcpy.na.AddLocations instead of&amp;nbsp;SolveVehicleRoutingProblem_na. Thank you very much, for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 14:16:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/load-a-shapefile-as-orders-in-vrp-using-arcpy/m-p/94918#M955</guid>
      <dc:creator>sotokan80_</dc:creator>
      <dc:date>2018-05-25T14:16:11Z</dc:date>
    </item>
  </channel>
</rss>

