Select to view content in your preferred language

Simplify operation of geometry service - MaxJsonLength

2706
1
01-25-2012 11:37 AM
SteeveCouture
Emerging Contributor
Hi,

I use ArcGIS Server 10 SP3.  When I call Simplify (with a large geometry) operation of the geometryService, I got this error:

Ex.:

GeometryService service = new GeometryService(this.GeometryServiceUrl);
service.SimplifyAsync(graphics);

Error:

{"error":{"code":400,"message":"Unable to complete Simplify operation.","details":["Error during the serialization or during the deserialization by means of JSON JavaScriptSerializer. MaxJsonLength exceeded .\r\nParameter name : input"]}}


Do you why I get this error?  I saw that ArcGIS Server SP3 has fixed a similar issue:

Page: http://gisupdates.esri.com/10sp3/ArcGIS/ArcGIS10sp3-issues.htm

NIM066822 - MaxJsonLength exceeded error message is returned when an input geometry to an SOE contains a large number of vertices.

Thanks,
Steeve
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
This seem related thread: http://forums.arcgis.com/threads/28386-maxjsonlength-in-ArcGIS-REST-SOE. The error description you posted is the same as the bug description I see on our system. This thread say it's fixed in 10 SP3. If you are encountering the issues still, please post on that thread.
0 Kudos