<?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: Definition query not case sensitive in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1287792#M69019</link>
    <description>&lt;P&gt;Is it an SQL EGDB by any chance?&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 16:31:17 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2023-05-10T16:31:17Z</dc:date>
    <item>
      <title>Definition query not case sensitive</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1287745#M69014</link>
      <description>&lt;P&gt;I'm trying to fix the case of these field values to match the domain on that field (which is proper case). But for some reason, when I filter to find just the upper case values, it still includes the ones I've already changed to proper case.&lt;/P&gt;&lt;P&gt;Is this expected, and is there a workaround if so?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewWallick_0-1683731483663.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70318iCC613DE424A0A77C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndrewWallick_0-1683731483663.png" alt="AndrewWallick_0-1683731483663.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've already tried field calc'ing it with Proper(), it either is too many records or something else is not letting it work.&lt;/P&gt;&lt;P&gt;Here's the domain values, it's all proper case:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewWallick_1-1683731733064.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70320iA62F86ACC16BC2AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndrewWallick_1-1683731733064.png" alt="AndrewWallick_1-1683731733064.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 15:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1287745#M69014</guid>
      <dc:creator>AndrewWallick</dc:creator>
      <dc:date>2023-05-10T15:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Definition query not case sensitive</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1287782#M69017</link>
      <description>&lt;P&gt;That isn't expected behavior, no. SQL should be case sensitive.&lt;/P&gt;&lt;P&gt;I couldn't reproduce that behavior (FGDB, 3.1.1), regardless of whether the field has a domain or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To solve your immediate problem, you could just use the Calculate Field tool with an expression (Python) like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;!WA_FLAG!.title()&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 May 2023 16:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1287782#M69017</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-05-10T16:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Definition query not case sensitive</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1287792#M69019</link>
      <description>&lt;P&gt;Is it an SQL EGDB by any chance?&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 16:31:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1287792#M69019</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-05-10T16:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Definition query not case sensitive</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1288010#M69056</link>
      <description>&lt;P&gt;If you mean a SQL enterprise geodatabase, then yes. Does that make a difference?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually this is a parcel fabric service, but it is a live reference to our SQL SDE.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 23:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1288010#M69056</guid>
      <dc:creator>AndrewWallick</dc:creator>
      <dc:date>2023-05-10T23:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Definition query not case sensitive</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1288094#M69065</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/sql-reference-for-elements-used-in-query-expressions.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/sql-reference-for-elements-used-in-query-expressions.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;"&lt;SPAN&gt;Strings are case sensitive in expressions, except when run on geodatabases in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Microsoft SQL Server&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp;"&lt;BR /&gt;&lt;BR /&gt;I'm not sure of an easy workaround.&amp;nbsp; There's mention of a COLLATION setting on the DBMS itself but that may not be ideal.&lt;BR /&gt;It's maybe a bit convoluted or impractical if you have lots of records - but you could copy to an FGDB (copy should preserve OIDs) then run the selection there, obtain the OIDs of those records then use those to select the EGDB records, or what I'd recommend is to simply do as Johannes suggested and Field Calculate all the values to upper regardless of if they already are upper.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 11:57:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1288094#M69065</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-05-11T11:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Definition query not case sensitive</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1288401#M69091</link>
      <description>&lt;P&gt;Unfortunately when I try to run a field calc on the whole table, it fails with Error 99999999&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/167692"&gt;@DavidPike&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294341"&gt;@JohannesLindner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 21:40:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1288401#M69091</guid>
      <dc:creator>AndrewWallick</dc:creator>
      <dc:date>2023-05-11T21:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Definition query not case sensitive</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1288529#M69107</link>
      <description>&lt;P&gt;Did you validate the expression?&amp;nbsp; Ensure it's Python not Arcade.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 11:41:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1288529#M69107</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-05-12T11:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Definition query not case sensitive</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1288607#M69115</link>
      <description>&lt;P&gt;Yeah I did change it to Python and it validated fine.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 15:08:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1288607#M69115</guid>
      <dc:creator>AndrewWallick</dc:creator>
      <dc:date>2023-05-12T15:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Definition query not case sensitive</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1288627#M69119</link>
      <description>&lt;P&gt;Are you using versioning?&amp;nbsp; I'd try opening an edit session and Field Calculating in that.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 15:55:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-case-sensitive/m-p/1288627#M69119</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-05-12T15:55:50Z</dc:date>
    </item>
  </channel>
</rss>

