Error using the synchronous route endpoint

711
3
10-11-2017 11:06 AM
JeremyYunis
New Contributor

I'm testing out the Route 'solve' REST endpoint:

https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve

With a series of stops to get the optimal order. However, I'm getting back the following error:

{u'error': {u'code': 400,
u'details': [u'Layer [Route_(null)] could not be found in the map or is of the wrong type.'],
u'message': u'Invalid or missing input parameters.'}}

Can anyone help me understand what that error means?

0 Kudos
3 Replies
JeremyYunis
New Contributor

Solved this myself. The issue was a malformed request: the shape of the 'stops' JSON was incorrect.

0 Kudos
JamesCrandall
MVP Frequent Contributor

Could you post your solution?  I'm struggling with this same issue.

0 Kudos
JamesCrandall
MVP Frequent Contributor

Oh, I think my problem was an incorrect WKID value on the spatial reference set for one of the stops I had listed.

0 Kudos