<?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: REST API query crashing Server/RDS/STBDS in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/rest-api-query-crashing-server-rds-stbds/m-p/1035594#M29645</link>
    <description>&lt;P&gt;Looks like the limit might be 16k; shortening to just under that did work correctly.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Mar 2021 18:35:45 GMT</pubDate>
    <dc:creator>AMusingFool</dc:creator>
    <dc:date>2021-03-11T18:35:45Z</dc:date>
    <item>
      <title>REST API query crashing Server/RDS/STBDS</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/rest-api-query-crashing-server-rds-stbds/m-p/1035030#M29626</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to test out a couple different query options, and I ran into a weird problem. &amp;nbsp;I'm running this query via the ArcGIS API for Python, though (unsurprisingly) I can duplicate it via the REST API.&lt;/P&gt;&lt;P&gt;I'm doing a spatial query on a line feature service, defined as an intersection filter:&lt;/P&gt;&lt;P&gt;{'geometry': {'x': -77.1316680684686, 'y': 38.9058418292552, 'spatialReference': {'wkid': 4326}}, 'geometryType': 'esriGeometryPoint', 'spatialRel': 'esriSpatialRelIntersects', 'inSR': {'wkid': 4326}}&lt;/P&gt;&lt;P&gt;The query, in python, looks like:&lt;/P&gt;&lt;P&gt;lineNearCount = pieceLayer.query(where=whereClause, return_count_only=True,&lt;BR /&gt;geometry_filter=arcgis.geometry.filters.intersects(geom, sRef),&lt;BR /&gt;distance=500, units='esriSRUnit_Meter')&lt;/P&gt;&lt;P&gt;It works fine, for the most part, but if whereClause is too long (at least, I assume that's what's causing the problem; the one in question is around 44k. &amp;nbsp;I will attach), then it generates a no-detail 'Database Error'. &amp;nbsp;Looking further, it consistently disconnects the Server from the Relational and/or SpatioTemporal DataStore (that is, Server will be unable to validate at least one of the DataStores, but the DataStores will still report being connected). I haven't found a way to remedy except by restarting the Server (and, sometimes, one of the DataStores). &amp;nbsp;FWIW, the feature service being queried is on the STBDS.&lt;/P&gt;&lt;P&gt;I'll try again with a shorter where clause (maybe just under 32k), but that's a pain since it takes at least five minutes to reset everything.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 18:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/rest-api-query-crashing-server-rds-stbds/m-p/1035030#M29626</guid>
      <dc:creator>AMusingFool</dc:creator>
      <dc:date>2021-03-10T18:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: REST API query crashing Server/RDS/STBDS</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/rest-api-query-crashing-server-rds-stbds/m-p/1035119#M29628</link>
      <description>&lt;P&gt;Small update. &amp;nbsp;It isn't a 32k thing. &amp;nbsp;Same results with same where clause truncated to 32015 bytes.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 19:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/rest-api-query-crashing-server-rds-stbds/m-p/1035119#M29628</guid>
      <dc:creator>AMusingFool</dc:creator>
      <dc:date>2021-03-10T19:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: REST API query crashing Server/RDS/STBDS</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/rest-api-query-crashing-server-rds-stbds/m-p/1035594#M29645</link>
      <description>&lt;P&gt;Looks like the limit might be 16k; shortening to just under that did work correctly.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 18:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/rest-api-query-crashing-server-rds-stbds/m-p/1035594#M29645</guid>
      <dc:creator>AMusingFool</dc:creator>
      <dc:date>2021-03-11T18:35:45Z</dc:date>
    </item>
  </channel>
</rss>

