Getting 500 error when creating routing directions

Discussion created by kreynolds22 on Apr 20, 2010
Latest reply on Nov 26, 2010 by a.schaefer-esri-de-esridist
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("");

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: 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):

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?