Vehicle Routing Problem (VRP) Error: 030138: Insufficient input. Need at least one order

601
5
12-16-2023 11:43 AM
YaleKodwo
New Contributor II

Hello:

I have been trying to run a Vehicle Routing Problem (VRP) but keep getting Error: "Insufficient input. Need at least one order." When I click on the error message it takes me to an Esri Resource solution that says "Provide at least one order and rerun tool." I have tried reading around to find a solution without success. I have read the posts here but do not see any solution that can help me. I follow the demos from this Esri video to put my tables together. I am using the Esri's network data source for this project. Below are screenshots, including the attribute tables of the my orders, depots, and routes. I have reviewed the table but can't figure out what I am doing wrong. Thanks in advance for your assistance. 

Orders:

YaleKodwo_1-1702754494299.png

Depots:

YaleKodwo_3-1702754559519.png

Routes:

YaleKodwo_4-1702754601882.png

YaleKodwo_0-1702754315905.png

 

 

 

0 Kudos
5 Replies
RonaldHaug
Occasional Contributor II

Hi YaleKodwo,

Do you have at least one order for each route?

I don't see your network analyst window open with the orders lined up like in the video.

RonaldHaug_0-1702796106261.png

 

Here's the ArcGIS Pro Help link: https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/vehicle-routing-problem-analysis-lay...

After skimming the help document I see you have to load the program with all your inputs.

RonaldHaug_1-1702796525548.png

Here's another good discussion of the salesman dilemma and the vehicle routing problem.

https://desktop.arcgis.com/en/arcmap/latest/extensions/network-analyst/algorithms-used-by-network-an...

I have done this analysis before, but I had step-by-step instructions to get me to the promised land.

It's complicated for sure, but be curious, keep reading the directions, watch other people's videos, and try again.

0 Kudos
YaleKodwo
New Contributor II

Thanks RonaldHaug for your response. I was able to find the source of the errors. The errors were related to the geocode match scores. I reviewed the error messages and found that locations that had less than 100 percent match score were throwing errors. One of the geocoded depot locations had 99.54 match score but it still generated an error. I wonder if  the VRP is set up to take only 100 percent match scores?

RonaldHaug
Occasional Contributor II

Good job YaleKodwo, for persevering with the problem and solving it!

I didn't even know about match scores.... I wonder if there is a tolerance acceptance range which can be set.

Also there's that thing about making sure all the feature classes which undergo analysis need to be in the same coordinate system...

Now that you have a working model, will you be using this every day for your work?

0 Kudos
YaleKodwo
New Contributor II

Will be using it occasionally because my work routine does not require its use daily.  

0 Kudos
JaySandhu
Esri Regular Contributor

The geocoding process returns a match score but once an address is turned into a point feature, then you can load it into your VRP layer by clicking on the Orders button on the VRP ribbon or using the Add Locations GP tool. Have you done this step? If yes and you still get the error then the next step is to check if you have road features in your network dataset that are near the Order locations for them to be located on the network.  Can you draw your network and check?

Jay Sandhu

0 Kudos