tribeiro

Error using GeometryService.union

Discussion created by tribeiro on Dec 20, 2011
Latest reply on Jan 3, 2012 by hzhu
Hi,

My application has a function that performs a query based in the current map.graphcis. If there are more than 1 graphic I perform a union, and here the problem starts.
This works well most of the times, but depending in the number/type of geometries to be "unified", sometimes the union throws two types of errors:

  1. One that I handle using the errback function

  2. One that returns a 500 Internal Serve error code

The first one the error returned is "Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
Parameter name: input". This error occurs when I send more than 100 geometries. Does anyone have any idea how to get around this?
The second one doesn't give out a specific error... I noticed that it happens when I send big geometries. I'll try to see the server logs and try to find some clues.
Can anyone give me a help/hint?
Thanks

Outcomes