<?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: Spatial Index Grid Size Is Invalid in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/spatial-index-grid-size-is-invalid/m-p/418909#M5032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I'm afraid I don't. Also, our customers are not guaranteed to have access to one either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2016 12:59:34 GMT</pubDate>
    <dc:creator>MikeWinsor</dc:creator>
    <dc:date>2016-03-17T12:59:34Z</dc:date>
    <item>
      <title>Spatial Index Grid Size Is Invalid</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/spatial-index-grid-size-is-invalid/m-p/418906#M5029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I'm using the 10.2.6 runtime for .NET, and due to a bug in the API, I had to use the REST API to add features to a layer (this bug causing custom M values to throw an exception, see &lt;A _jive_internal="true" href="https://community.esri.com/thread/166193"&gt;here&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code to access this functionality via the REST API was working great right up until a few weeks ago when we added a rather large polyline to the layer. When this line was added I get an exception from the local server. Viewing the logs from the server I see this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2016-03-15 11:30:19,867 ERROR rid=24&amp;nbsp; 'worker-1976' Core - GraphicFeatureServer.HandleREST_AddFeaturesOperation (code=17000): Database error: The spatial index grid size is invalid. [CustomLineLayer01].&amp;nbsp; The spatial index grid size is invalid.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Now here's the weird thing. If I add this feature via a REST call individually from a list of lines, it fails. But, if I add it as part of a group of features in the same REST call, it works just fine (all other lines are very small in comparison to this one).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Furthermore, if I just add this long line by itself, it works fine, but, if I add the smaller lines prior to this, it fails with that exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only help I've seen online is about setting the "LoadOnly" property to true on the table. However, this is no good to me as that advice was for ArcObjects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is this: Can I disable the spatial index grid via REST prior to adding lines? Or is there another, easier way to get around this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is very difficult to duplicate this problem with a sample, but if required, I'll do what I can to make one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 18:05:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/spatial-index-grid-size-is-invalid/m-p/418906#M5029</guid>
      <dc:creator>MikeWinsor</dc:creator>
      <dc:date>2016-03-15T18:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Index Grid Size Is Invalid</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/spatial-index-grid-size-is-invalid/m-p/418907#M5030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've gone ahead and created a sample to illustrate the error.&amp;nbsp; It is attached to this comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To replicate the error:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Draw a small line at the default extent.&lt;/LI&gt;&lt;LI&gt;Scale out to a much larger distance&lt;/LI&gt;&lt;LI&gt;Draw another line.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;An error message about Error code 500 addFeature failing should appear.&amp;nbsp; If it does not, try zooming out further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 17:31:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/spatial-index-grid-size-is-invalid/m-p/418907#M5030</guid>
      <dc:creator>MikeWinsor</dc:creator>
      <dc:date>2016-03-16T17:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Index Grid Size Is Invalid</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/spatial-index-grid-size-is-invalid/m-p/418908#M5031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have access to an ArcGIS Server instance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 22:46:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/spatial-index-grid-size-is-invalid/m-p/418908#M5031</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2016-03-16T22:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Index Grid Size Is Invalid</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/spatial-index-grid-size-is-invalid/m-p/418909#M5032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I'm afraid I don't. Also, our customers are not guaranteed to have access to one either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 12:59:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/spatial-index-grid-size-is-invalid/m-p/418909#M5032</guid>
      <dc:creator>MikeWinsor</dc:creator>
      <dc:date>2016-03-17T12:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Index Grid Size Is Invalid</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/spatial-index-grid-size-is-invalid/m-p/418910#M5033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are having the same issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 19:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/spatial-index-grid-size-is-invalid/m-p/418910#M5033</guid>
      <dc:creator>ShaneBrennan</dc:creator>
      <dc:date>2016-10-28T19:04:01Z</dc:date>
    </item>
  </channel>
</rss>

