<?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: query using getdate fails on 10.2.2 in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-using-getdate-fails-on-10-2-2/m-p/96984#M3753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to do something similar within a definition query and it's failing.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 20:45:31 GMT</pubDate>
    <dc:creator>GaryBarden</dc:creator>
    <dc:date>2015-12-09T20:45:31Z</dc:date>
    <item>
      <title>query using getdate fails on 10.2.2</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-using-getdate-fails-on-10-2-2/m-p/96981#M3750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using feature services to create a check-out database for iOS Runtime.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that if I try to query the feature services using the getdate() function it fails in 10.2.2 where it worked fine in 10.1 or earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example - executing a query against the REST endpoint for a feature layer with an AGSDate field using "WHERE dateField &amp;gt; getdate() - 7" will return all records with a date value within the last 7 days.&amp;nbsp; Works like a charm in 10.1, fails with an error in 10.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a known bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/4325"&gt;Matt Cooper&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 17:11:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/query-using-getdate-fails-on-10-2-2/m-p/96981#M3750</guid>
      <dc:creator>MichaelDavis3</dc:creator>
      <dc:date>2014-08-06T17:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: query using getdate fails on 10.2.2</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-using-getdate-fails-on-10-2-2/m-p/96982#M3751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should have mentioned that this is running SDE against SQL Server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 17:13:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/query-using-getdate-fails-on-10-2-2/m-p/96982#M3751</guid>
      <dc:creator>MichaelDavis3</dc:creator>
      <dc:date>2014-08-06T17:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: query using getdate fails on 10.2.2</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-using-getdate-fails-on-10-2-2/m-p/96983#M3752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are most likely running into this change in the REST API at 10.2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="margin: 0 0 0.2em; font-size: 16px; font-family: arial, helvetica, sans-serif; color: #000000;"&gt;New in 10.2&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="usertext" style="font-family: 'Courier New', Courier, monospace;"&gt;where&lt;/SPAN&gt; parameter value must conform to the standardized queries, if the &lt;A class="xref" href="http://resources.arcgis.com/en/help/arcgis-rest-api/02r3/02r3000000zr000000.htm" rel="/en/help/arcgis-rest-api/02r3/02r3000000zr000000.htm" style="color: #007ac2;"&gt;layer / table&lt;/A&gt; resource advertises &lt;SPAN class="usertext" style="font-family: 'Courier New', Courier, monospace;"&gt;useStandardizedQueries&lt;/SPAN&gt; is true. Learn more about &lt;A class="xref" href="http://resources.arcgis.com/en/help/main/10.2/0154/015400000641000000.htm" rel="/en/help/main/10.2/0154/015400000641000000.htm" style="color: #007ac2;"&gt;standardized queries&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;ArcGIS Server includes a security option that forces developers to use standardized SQL queries when working with map, feature, image, and WFS services through REST or SOAP. This makes it easier for developers and applications to query ArcGIS Server services and helps prevent SQL injection attacks. &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Standardized queries are enforced by default, but can be disabled by the server administrator&lt;/STRONG&gt;&lt;/SPAN&gt;."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="margin: 0 0 0.2em; font-size: 16px; font-family: arial, helvetica, sans-serif; color: #000000;"&gt;Disabling standardized queries&lt;/H2&gt;&lt;P style="margin: 0.5em 0 0.5em 10px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;If you need to use database-specific where clause statements in your application, you can disable standardized queries by accessing the ArcGIS Server Administrator Directory. To do so, follow the instructions below.&lt;/P&gt;&lt;P class="notes" style="margin: 10px; border-top-style: solid; border-bottom-style: solid; border-top-color: #cccccc; border-bottom-color: #cccccc; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/P&gt;&lt;DIV class="caution" style="margin: 0 0 0.3em; padding: 5px 5px 20px 0; font-weight: bold;"&gt;&lt;IMG alt="Caution" class="jive-image note_img" src="http://resources.arcgis.com/en/help/main/10.2/rsrc/caution.png" style="margin: 0 5px 0 0;" title="Caution" /&gt;Caution:&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0 0.5em;"&gt;By disabling this security option, &lt;SPAN style="text-decoration: underline;"&gt;your site becomes more vulnerable to SQL injection attacks&lt;/SPAN&gt;.&lt;/P&gt;&lt;/DIV&gt;&lt;H4 style="margin: 0 0 0.2em; font-size: 12.8px;"&gt;&lt;/H4&gt;&lt;DIV class="steps" style="margin: 0 0 0.3em;"&gt;&lt;DIV class="step_title" style="margin: 0 0 0.3em 15px; color: #000000; font-weight: bold;"&gt;Steps:&lt;P&gt;&lt;/P&gt;&lt;OL style="margin: 0 0 1.2em; list-style-position: outside; list-style-image: initial;"&gt;&lt;LI&gt;&lt;SPAN&gt;Open the Administrator Directory and log in with a user that has administrative permissions to your site. The Administrator Directory is typically available at&lt;SPAN class="usertext" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;A class="jive-link-external-small" href="http://gisserver.domain.com:6080/arcgis/admin" rel="nofollow" target="_blank"&gt;http://gisserver.domain.com:6080/arcgis/admin&lt;/A&gt;&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Click &lt;SPAN class="uicontrol" style="font-size: 12px; font-weight: bold;"&gt;system &lt;SPAN class="greaterthan" style="font-weight: normal;"&gt;&amp;gt;&lt;/SPAN&gt; properties &lt;SPAN class="greaterthan" style="font-weight: normal;"&gt;&amp;gt;&lt;/SPAN&gt; update&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;On the &lt;SPAN class="wintitle" style="font-size: 12px; font-weight: bold; font-style: italic;"&gt;Operation - update&lt;/SPAN&gt; page, enter the following string into the &lt;SPAN class="uicontrol" style="font-size: 12px; font-weight: bold;"&gt;System Properties&lt;/SPAN&gt; dialog box:&lt;/SPAN&gt;&lt;P class="info" style="margin: 0 0 0.3em;"&gt;&lt;/P&gt;&lt;DIV class="highlight" style="margin: 0 0 0.3em;"&gt;&lt;PRE style="margin: 0 0 0 15px; padding-bottom: 25px; padding-left: 10px; border-left-width: 1px; font-size: 11px; background-color: #eeeeee;"&gt;&lt;CODE&gt;{"standardizedQueries": "false"} &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0 0 0 10px;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Click &lt;SPAN class="uicontrol" style="font-size: 12px; font-weight: bold;"&gt;Update&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Restart ArcGIS Server.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 21:29:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/query-using-getdate-fails-on-10-2-2/m-p/96983#M3752</guid>
      <dc:creator>ErinBrimhall</dc:creator>
      <dc:date>2014-08-18T21:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: query using getdate fails on 10.2.2</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-using-getdate-fails-on-10-2-2/m-p/96984#M3753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to do something similar within a definition query and it's failing.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 20:45:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/query-using-getdate-fails-on-10-2-2/m-p/96984#M3753</guid>
      <dc:creator>GaryBarden</dc:creator>
      <dc:date>2015-12-09T20:45:31Z</dc:date>
    </item>
  </channel>
</rss>

