Routing Problem

539
8
10-18-2010 10:50 PM
sunilm
by
New Contributor
Hi All,

I am using Routing task in my application. I am keeping more than 12 stops. When I click on Solve Route, I am getting this error:
"Microsoft JScript runtime error: 'xhr' is null or not an object".

It is solving route only upto 12 stops if we give more than 12 I am getting this error.

I think the problem is with routeParams.stops.features array. Can anyone help me tp sought out this.

Sunil
0 Kudos
8 Replies
sunilm
by
New Contributor
I ran the sample "Routes with Barriers and Stops" in samples. When I keep more than 10 stops it is giving me an error:

An error occured
Error solving route
The number of input locations loaded into Stops exceeded the maximum allowed by the service.  Attempted to load 19, but only 10 allowed."

I think we need to set the stops in mapservice configuration file. Can anyone tell me where I need to add the parameter for stops in configuration file.

Thanks in Advance

Sunil
0 Kudos
nicogis
MVP Frequent Contributor
this have a limit because it's a demo. have you seen create a your service?

you set parameter in routeparameters  see http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi/routeparameters.htm
0 Kudos
sunilm
by
New Contributor
I had created my own Map service(using Arcgis 9.3.1). For that map Service also I am not able to solve route if I have more than 12 stops
0 Kudos
nicogis
MVP Frequent Contributor
In your Map services have enable in capability network analyst?
In your mxd have you add a route layer using a network dataset?
0 Kudos
sunilm
by
New Contributor
Yes I had already done these
0 Kudos
nicogis
MVP Frequent Contributor
Have you set a proxy page. you could overpass the limit 2000 lenght...
0 Kudos
sunilm
by
New Contributor
I had set the proxy page. Can you please tell me where I need to set the limit in proxy page?
0 Kudos
nicogis
MVP Frequent Contributor
0 Kudos