Hello,
I am using the REST VRP endpoint to dispatch a fleet. I sent the request below with an order pair and set the assignment rule of one of the two stops to "anchor first. "
"token":"zt6JOhfF2mRM1drL8dI23Z3RiD8V4cm8k4yVu7C1oIZbZtUDU8lvIXXf-bCK9DbXuy5Yu7rn5rrwsHN3g0vz3_Y8Wx5S1wj2rVjPDv0TKIHrHPKBsGfrZrwRw6ew23MTYJG5HJ-u8CYQEJpMwH713w..","default_date":1640093520000,"f":"json","travel_mode":"CUSTOM","distance_units":"Kilometers","time_units":"Minutes","time_zone_usage_for_time_fields":"UTC","excess_transit_factor":"Low","populate_directions":true,"directions_style_name":"NA Navigation","restrictions":"[\"Avoid Carpool Roads\",\"Avoid Toll Roads\",\"Avoid Gates\",\"Avoid Private Roads\",\"Avoid Unpaved Roads\",\"Driving an Automobile\",\"Roads Under Construction Prohibited\",\"Through Traffic Prohibited\"]","attribute_parameter_values":"\"features\":[\"attributes\":\"AttributeName\":\"Avoid Toll Roads\",\"ParameterName\":\"Restriction Usage\",\"ParameterValue\":\"PROHIBITED\"]","time_window_factor":"medium","depots":"\"features\":[\"geometry\":\"x\":\"-79.722066000\",\"y\":\"43.693962000\",\"attributes\":\"Name\":\"4307\"]","orders":"\"features\":[\"geometry\":\"x\":\"-79.5007\",\"y\":\"43.813\",\"attributes\":\"Name\":\"D-8394672\",\"DeliveryQuantities\":\"1 200 48 48\",\"ServiceTime\":null,\"TimeWindowEnd1\":1640107200000,\"RouteName\":null,\"AssignmentRule\":null,\"Sequence\":null,\"TimeWindowStart1\":null,\"geometry\":\"x\":\"-79.6874\",\"y\":\"43.6386\",\"attributes\":\"Name\":\"P-8394670\",\"PickupQuantities\":\"6 1000 0 0\",\"TimeWindowStart1\":1640092800000,\"ServiceTime\":\"10\",\"TimeWindowEnd1\":1640124000000,\"RouteName\":\"4307\",\"AssignmentRule\":\"4\",\"Sequence\":null,\"geometry\":\"x\":\"-79.4508\",\"y\":\"43.8704\",\"attributes\":\"Name\":\"D-8394670\",\"DeliveryQuantities\":\"6 1000 0 0\",\"ServiceTime\":null,\"TimeWindowEnd1\":1640107200000,\"RouteName\":\"4307\",\"AssignmentRule\":null,\"Sequence\":null,\"TimeWindowStart1\":null,\"geometry\":\"x\":\"-79.4874\",\"y\":\"43.8187\",\"attributes\":\"Name\":\"P-8394671\",\"PickupQuantities\":\"4 1200 60 48\",\"TimeWindowStart1\":1640095200000,\"ServiceTime\":null,\"TimeWindowEnd1\":1640122200000,\"RouteName\":null,\"AssignmentRule\":null,\"Sequence\":null,\"geometry\":\"x\":\"-79.3787\",\"y\":\"43.8531\",\"attributes\":\"Name\":\"D-8394671\",\"DeliveryQuantities\":\"4 1200 60 48\",\"ServiceTime\":null,\"TimeWindowEnd1\":1640124000000,\"RouteName\":null,\"AssignmentRule\":null,\"Sequence\":null,\"TimeWindowStart1\":null]","routes":"\"features\":[\"attributes\":\"Name\":\"4307\",\"StartDepotName\":\"4307\",\"MaxOrderCount\":\"99\",\"EarliestStartTime\":1640091600000,\"LatestStartTime\":1640091600000,\"Capacities\":\"12 12000\",\"CostPerUnitTime\":\"0.42\",\"CostPerUnitDistance\":\"0.95\",\"MaxTotalTravelTime\":null,\"MaxTotalDistance\":null,\"FixedCost\":null]","order_pairs":"\"features\":[\"attributes\":\"FirstOrderName\":\"P-8394670\",\"SecondOrderName\":\"D-8394670\",\"attributes\":\"FirstOrderName\":\"P-8394671\",\"SecondOrderName\":\"D-8394671\"]"
When I post this request to ArcGIS Online, I get the error below. why is it not possible to set the assignment rule to "anchor first" to one of the orders in a pair ?
Solver Failed with the following Warnings : ["type":"esriJobMessageTypeWarning","description":"Order Pairs
(FirstOrderName = \"P-8394670\", SecondOrderName = \"D-8394670\") has a first order with an anchor first/last
AssignmentRule.","type":"esriJobMessageTypeWarning","description":"WARNING 030092: VRP Solver failed due to invalid
input.","type":"esriJobMessageTypeWarning","description":"Invalid input in the NA classes."]