Select to view content in your preferred language

Error using GeometryService.union

2900
10
12-20-2011 01:26 AM
TiagoRibeiro
Deactivated User
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
0 Kudos
10 Replies
HemingZhu
Frequent Contributor
Hi, and happy new year everyone!
Thanks for your reply Heming, but now I have an error using the Generalize task:

  • "Nullable object must have a value." when using 4 geometries.

  • "'geometries' parameter is invalid." when using 5 geometries.

The second one I think it's related with the previous problem, but the first one I have no idea. I think its something simple, but I don't get what...


The link on your post works on my machine...
0 Kudos