<?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: Arcgis server is truncating the where clause when sending query to SQL server. in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723985#M4948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;The truncation is not in terms of length. WHERE clause length is less than 50 characters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Example: ReadRate30Days &amp;lt;= 100 AND ReadRate30Days &amp;gt;= 0&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Dec 2019 06:42:52 GMT</pubDate>
    <dc:creator>vikashkumar1</dc:creator>
    <dc:date>2019-12-20T06:42:52Z</dc:date>
    <item>
      <title>Arcgis server is truncating the where clause when sending query to SQL server.</title>
      <link>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723982#M4945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i make a query request to a map layer with some where clause to filter the response, the arcgis server truncates the where condition while executing the query on SQL server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am dealing with very large data set of approx 600 millions. The arcgis version is 10.4.1&lt;/P&gt;&lt;P&gt;The map layer is binded with a SQL view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 09:24:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723982#M4945</guid>
      <dc:creator>vikashkumar1</dc:creator>
      <dc:date>2019-12-19T09:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis server is truncating the where clause when sending query to SQL server.</title>
      <link>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723983#M4946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the truncation consistent in terms of length?&amp;nbsp; if so, how many characters are we talking about and what type of structure for the WHERE clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 19:30:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723983#M4946</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-12-19T19:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis server is truncating the where clause when sending query to SQL server.</title>
      <link>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723984#M4947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;The truncation is not in terms of length.Where clause length is less than 50 characters.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Example: ReadRate30Days &amp;lt;= 100 AND ReadRate30Days &amp;gt;= 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2019 05:57:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723984#M4947</guid>
      <dc:creator>Lavanyaalla</dc:creator>
      <dc:date>2019-12-20T05:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis server is truncating the where clause when sending query to SQL server.</title>
      <link>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723985#M4948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;The truncation is not in terms of length. WHERE clause length is less than 50 characters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Example: ReadRate30Days &amp;lt;= 100 AND ReadRate30Days &amp;gt;= 0&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2019 06:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723985#M4948</guid>
      <dc:creator>vikashkumar1</dc:creator>
      <dc:date>2019-12-20T06:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis server is truncating the where clause when sending query to SQL server.</title>
      <link>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723986#M4949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;I am querying map layer with following condition:&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;where: ReadRate30Days &amp;lt;= 100 AND ReadRate30Days &amp;gt;= 0 orderByFields: ReadRate30Days DESC&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;Ideally in SQL Sever the query should be genarted like below by arcgis server&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;select * from OAWarehouse.Map_PM_Electric_Service_Point_View) a where ( ( ( ReadRate3Days &amp;lt;= 100 AND ReadRate3Days &amp;gt;= 0 ) ) AND ( ReportingDate &amp;gt;= '2019-10-09 00:00:00' and ReportingDate &amp;lt;= '2019-10-09 00:00:00' )) AND (Shape.STIntersects(geography::STGeomFromWKB(@P1,@P2)) = 1) ORDER BY ReadRate3Days DESC&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;but it is generated like this in sql server&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;select * from (select * from OAWarehouse.Map_PM_Electric_Service_Point_View) a&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;I am not able to understand why this behaviour ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2019 09:32:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723986#M4949</guid>
      <dc:creator>vikashkumar1</dc:creator>
      <dc:date>2019-12-20T09:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis server is truncating the where clause when sending query to SQL server.</title>
      <link>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723987#M4950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the GIS layer presented as a query layer using the view?&amp;nbsp; This behavior occurs with my data that is a view from a non-SDE spatially enabled Oracle database where the where clause gets dropped when sorting subqueries.&amp;nbsp; I believe in my case it has something to do with the uniqueID field that is used as the identifier when creating the query layer is not set up with the correct format.&amp;nbsp; It has been difficult to pin down and has only allowed this data to be used in limited operations instead of across the enterprise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you determine the where clause was being dropped with software such as WireShark?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2019 11:47:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723987#M4950</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2019-12-20T11:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis server is truncating the where clause when sending query to SQL server.</title>
      <link>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723988#M4951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is one you will likely have to work through with Esri Support.&amp;nbsp; Looking at your screenshot of the REST API call, everything seems fine in terms of how you have structured the call.&amp;nbsp; If the REST call is valid,&amp;nbsp; the next question is how exactly the Electric Service Point layer is created.&amp;nbsp; It seems like it is a view filtering a larger data set, so then what tables are involved and what is the view's SQL?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2019 22:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcgis-server-is-truncating-the-where-clause-when/m-p/723988#M4951</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-12-21T22:24:30Z</dc:date>
    </item>
  </channel>
</rss>

