Network Server error: "Could not allocate enough contiguous memory."

620
1
05-02-2013 05:02 AM
OttarViken_Valvåg
New Contributor III
I'm getting this error in my ArcGIS Server log when calling the REST endpoint of a Network Analysis service, requesting a route description. Example request:

/arcgis/rest/services/vn_route/NAServer/Route/solve?stops=265000%2C6650000%3B260000%2C6653000&outSR=25833&impedanceAttributeName=Minutes&restrictionAttributeNames=Oneway&returnDirections=true&f=json

Response:
{"error":{"code":500,"message":"Error executing solve route","details":[]}}


Error message in the ArcGIS Server log:
SEVERE 2. mai 2013 14:45:54 NALayer [Route]: Could not allocate enough contiguous memory. vn_route.MapServer


Doing a solve without requesting directions works:
/arcgis/rest/services/vn_route/NAServer/Route/solve?stops=265000%2C6650000%3B260000%2C6653000&outSR=25833&impedanceAttributeName=Minutes&restrictionAttributeNames=Oneway&returnDirections=false&f=pjson

Response:
{
 "messages": [
  
 ],
 "routes": {
  "hasM": true,
  "fieldAliases": {
   "ObjectID": "ObjectID",
   "Name": "Name",
   "FirstStopID": "FirstStopID",
   "LastStopID": "LastStopID",
   "StopCount": "StopCount",
   "Total_Minutes": "Total_Minutes",
   "Shape_Length": "Shape_Length"
  },
  "geometryType": "esriGeometryPolyline",
  "spatialReference": {
   "wkid": 25833,
   "latestWkid": 25833
  },
  "features": [
   {
    "attributes": {
     "ObjectID": 1,
     "Name": "Location 1 - Location 2",
     "FirstStopID": 1,
     "LastStopID": 2,
     "StopCount": 2,
     "Total_Minutes": 13.279979646627661,
     "Shape_Length": 10122.851526668173
    },
    "geometry": {
     "hasM": true,
     "paths": [
      [
       [
        265001.46760000009,
        6649998.1897999998,
        0
       ],
...


I'm using ArcGIS for Server 10.1 SP1 on Windows Server 2012.
Does anybody know what might cause this issue?

See also http://forums.arcgis.com/threads/82633-quot-Error-executing-solve-route-quot-When-returnDirections-t...
Tags (2)
0 Kudos
1 Reply
OttarViken_Valvåg
New Contributor III
Well it seems this was caused by missing language files for network analyst directions. Apprarently, if you're running a non-english locale you need to add a language file for your own locale even if you just want english directions?

I didn't bother researching the full issue here since I did have language files that I wanted to install anyway, but this really should have been working out of the box even on a non-english locale.

(I added language files to C:\Program Files\ArcGIS\Server\NetworkAnalyst\Directions to fix my issue.)
0 Kudos