AnsweredAssumed Answered

Load a shapefile as orders in VRP using arcpy

Question asked by sotriant on May 25, 2018
Latest reply on May 25, 2018 by sotriant

I' m facing the following issue when trying to load a shapefile as orders in VRP solver using arcpy.

The code that i m using:

inOrders = "sortedStops"
orders = arcpy.GetParameterValue("SolveVehicleRoutingProblem_na",0)


the errror message that i get;

File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\arcobjects\", line 1042, in load
return convertArcObjectToPythonObject(self._arc_object.Load(*gp_fixargs(args)))
RuntimeError: RecordSetObject: Cannot open table for Load


The input shapefile has the following attribute table, which is of course doesn't resemble orders attribute table.


Any suggestions?