Getting 500 error when creating routing directions

729
2
04-20-2010 09:11 PM
KodyReynolds
New Contributor
Hello all,

We are working on a student project that requires using ArcGIS JavaScript and Google Maps.  We have merged bike trail into our road data, specifically for the state of Iowa.  We are able to get directions working correctly in ArcMap. On the client side (our web interface) we were originally point at ArcGIS's servers by doing this (and could get the directions correctly with just the road data):

routeTask = new esri.arcgis.gmaps.RouteTask("http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Route");

We changed it to our own GIS server looking like this:
routeTask = new esri.arcgis.gmaps.RouteTask("http://*****:8399/arcgis/rest/services/Routing/NAServer/Route");

But now we get an error: "Error 500: Error solving route"

We can put this example into an html file and point the routeTask at our server:
http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/gmaps/samples/routetask/routetask_fi... and it makes the overlayer on the Google map correctly when we click on the map

Additionally we tried to plug in our own server into this example (again using a downloaded copy):
http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/gmaps/samples/routetask/routetask_di...

And got the same 500 error.

This seems to indicate the problem is with getting the actual directions but we have had no luck figuring out what is causing the problem.

Thanks in advance for the help.


Edit: I did some more digging and discovered this in the details of the object: "Time attribute specified for directions engine does not exist in network dataset."  I assume this means we have problem with our dataset as far as time and if so is there a way to take that out of the directions and side step problem and deal with the network dataset issues later?
0 Kudos
2 Replies
juliadudareva
New Contributor
I am having the same issue. Did you fix that problem?
0 Kudos
AxelSchaefer
New Contributor II
It seems that your dataset supports less parameters that the one at the sampleserver. This is independent from the JavaScript API that you use and probably would happen in any application. I would check the Network Dataset, rebuild it and ask in the corresponding Network Analyst forum and/or later in the REST API forum. I guess you will get better answers there.
0 Kudos