error 500 JSON does not allow non-finite numbers

2356
4
Jump to solution
08-20-2013 12:15 PM
JeffPace
MVP Alum
This might be for the REST API forums, but I like you guys better 🙂

if I access
http://www.mymanatee.org/arcgis/rest/services/tools/traffic/MapServer/layers

My service works (its an msd, server 10sp5)

If i append the "f=json" tag (for accessing in my javascript application) I get
http://www.mymanatee.org/arcgis/rest/services/tools/traffic/MapServer/layers?f=json

{"error":{"code":500,"message":"JSON does not allow non-finite numbers.","details":[]}}


Obviously I am doing something "illegal" in my mxd, but no idea what it might be.  Any help is appreciated.

Thanks
0 Kudos
1 Solution

Accepted Solutions
JasonZou
Occasional Contributor III
The extent for Layer: DMS Access Points (ID:7) is not set. Check http://www.mymanatee.org/arcgis/rest/services/tools/traffic/MapServer/7. Fix that, and you should be good to go:)

View solution in original post

0 Kudos
4 Replies
JasonZou
Occasional Contributor III
The extent for Layer: DMS Access Points (ID:7) is not set. Check http://www.mymanatee.org/arcgis/rest/services/tools/traffic/MapServer/7. Fix that, and you should be good to go:)
0 Kudos
JeffPace
MVP Alum
The extent for Layer: DMS Access Points (ID:7) is not set. Check http://www.mymanatee.org/arcgis/rest/services/tools/traffic/MapServer/7. Fix that, and you should be good to go:)


You sir are awesome thank you
0 Kudos
JeffPace
MVP Alum
Hmmm.. Figured this out but its complicated.

Extent is NaN because there is no spatial index on the data layer.

THere is no spatial index on the data layer because there are no features in the layer (at the moment).

how to workaround....
0 Kudos
JasonZou
Occasional Contributor III
You can use ArcGIS Desktop to project the layer as it should be, and set its full extent in ArcMap to whatever you like it. Then republish the map service. The issue should be fixed by then.
0 Kudos