Select to view content in your preferred language

Route Task Error

2439
2
02-24-2011 10:30 AM
CaseyBentz
Frequent Contributor
I have been using the Route Task,
http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Route, for some time now without issue, today I start getting this error message.  I send two graphics with different fields one of which has the field OrderNum.  This error sometimes comes back with CAD instead of OrderNum. 

Any ideas? 

I am still using the 1.3 version of the API.

Error message:
Failed to convert the input propertyset into a recordset to load into the NAClass "Stops".  Input property [OrderNum] could not be mapped to a valid field type or was not specified in the first PropertySet which is used to define the input fields.
Tags (2)
0 Kudos
2 Replies
BjornSvensson
Esri Regular Contributor
The ArcGIS Online routing services were upgraded last week.  See announcement on http://blogs.esri.com/Support/blogs/arcgisonline/archive/2011/02/23/arcgis-online-task-server-and-se... and this might be affecting your application.
0 Kudos
VivekGupta
Emerging Contributor
I have been using the Route Task,
http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Route, for some time now without issue, today I start getting this error message.  I send two graphics with different fields one of which has the field OrderNum.  This error sometimes comes back with CAD instead of OrderNum. 

Any ideas? 

I am still using the 1.3 version of the API.

Error message:
Failed to convert the input propertyset into a recordset to load into the NAClass "Stops".  Input property [OrderNum] could not be mapped to a valid field type or was not specified in the first PropertySet which is used to define the input fields.


Essentially at ArcGIS 10 NA Server the very first stop feature must contain the superset of field names. This is due to the internal mechanism of JS FeatureSet to FeatureClass conversion optimized for performance when table gets created. So if you provide OrderNum on the first stop as well a route will be created without any warnings.
0 Kudos