<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: maxjsonlength in ArcGIS REST SOE in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209659#M1041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have SP3 installed and this does fix the issue with JSON Serializer on lengthy input geometries.&amp;nbsp; The problem I am facing now is that the ESRI.ArcGIS.REST.SOE.SOERESTJsonFormatter.WriteJsonResponse bombs when trying to format a response that is larger than ~ 100,000 characters.&amp;nbsp; The context here is a utility network trace that brings back roughly 500 - 600 features.&amp;nbsp; The problem seems to occur when these features have a large number of attributes or vertices causing the response to exceed the JSON formatter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that responses coming from non-SOE operations (identify, query) surpass this limit and are formatted fine.&amp;nbsp;&amp;nbsp; It only occurs on the SOE REST JSON Formatter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2012 18:48:37 GMT</pubDate>
    <dc:creator>BenjaminDwinal</dc:creator>
    <dc:date>2012-03-01T18:48:37Z</dc:date>
    <item>
      <title>maxjsonlength in ArcGIS REST SOE</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209652#M1034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to set "maxjsonlength" in ArcGIS REST SOE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting an exception like exceeds the max length while returing the JSON String.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ramesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 13:05:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209652#M1034</guid>
      <dc:creator>RameshNarayan</dc:creator>
      <dc:date>2011-04-15T13:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: maxjsonlength in ArcGIS REST SOE</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209653#M1035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ramesh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is related to the issue described in this bug and will be addressed in 10.0 SP3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NIM066822 - MaxJsonLength exceeded error message is returned when an input geometry to an SOE contains a large number of vertices &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ravi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2011 13:10:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209653#M1035</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2011-05-14T13:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: maxjsonlength in ArcGIS REST SOE</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209654#M1036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having the same problem with my rest soe on ArcGIS10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone please provide the following info in helping me to understand the problem &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and find a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) how do we configure maxjsonlength in ArcGIS REST service in ArcGIS10 sp2 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) can we set it as unlimited?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) more detailed information on bug NIM066822 would be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Youmei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 04:33:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209654#M1036</guid>
      <dc:creator>YoumeiGe</dc:creator>
      <dc:date>2011-06-23T04:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: maxjsonlength in ArcGIS REST SOE</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209655#M1037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Youmei,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is not a configurable value, and the default is 4 MB. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.maxjsonlength.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.maxjsonlength.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A fix for this will be available in 10.0 SP3 (NIM066822). You can contact ESRI Support if you need more information about NIM066822.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ravi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209655#M1037</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2011-06-28T14:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: maxjsonlength in ArcGIS REST SOE</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209656#M1038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Ravi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I know it is not a configurable value at the rest soe end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What value would be used by the fix (NIM066822)? Is it the max value of integer (Int32.MaxValue)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Youmei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 01:04:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209656#M1038</guid>
      <dc:creator>YoumeiGe</dc:creator>
      <dc:date>2011-06-29T01:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: maxjsonlength in ArcGIS REST SOE</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209657#M1039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use ArcGIS Server 10 SP3. My question is, if this bug is fixed in SP3 for the REST SOE input parameters, did it fix also in the GeometryService? If not, is there something to do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think, the GeometryService has still this bug.&amp;nbsp; This is why:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I call Simplify (with a large geometry) operation of the geometryService, I got this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ex.:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GeometryService service = new GeometryService(this.GeometryServiceUrl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;service.SimplifyAsync(graphics);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{"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"]}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's sure, I could make my own SOE to do the same job but I would like to use the services deliveries by ESRI.&amp;nbsp; If the Geometry service has the bug, do you know if QueryTask has also this bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I help would be very appreciate because I'm stuck with it and I must delivery my solution very soon.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steeve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 12:11:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209657#M1039</guid>
      <dc:creator>SteeveCouture</dc:creator>
      <dc:date>2012-01-27T12:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: maxjsonlength in ArcGIS REST SOE</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209658#M1040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This MaxJsonLength limit applies to Geometry service. The fix in 10.0 SP3 is specific to SOE's and GeoProcessing services. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The default limit for JSON is about&amp;nbsp; 4MB. We are trying to understand use-cases where JSON larger than this limit is posted as input to service? Have you considered options such as generalizing the geometry using the MaxAllowableOffset parameter in query response. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let us know. You can contact ESRI Support and provide details about the application/use-case that requires this support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 15:41:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209658#M1040</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2012-01-30T15:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: maxjsonlength in ArcGIS REST SOE</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209659#M1041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have SP3 installed and this does fix the issue with JSON Serializer on lengthy input geometries.&amp;nbsp; The problem I am facing now is that the ESRI.ArcGIS.REST.SOE.SOERESTJsonFormatter.WriteJsonResponse bombs when trying to format a response that is larger than ~ 100,000 characters.&amp;nbsp; The context here is a utility network trace that brings back roughly 500 - 600 features.&amp;nbsp; The problem seems to occur when these features have a large number of attributes or vertices causing the response to exceed the JSON formatter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that responses coming from non-SOE operations (identify, query) surpass this limit and are formatted fine.&amp;nbsp;&amp;nbsp; It only occurs on the SOE REST JSON Formatter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 18:48:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/maxjsonlength-in-arcgis-rest-soe/m-p/209659#M1041</guid>
      <dc:creator>BenjaminDwinal</dc:creator>
      <dc:date>2012-03-01T18:48:37Z</dc:date>
    </item>
  </channel>
</rss>

