<?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: Error in feature class label SQL Where clause when using Shape.STLength() in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1395586#M80306</link>
    <description>&lt;P&gt;&amp;nbsp;This is also occuring without using geometry fields. I'm using 3.2.2 and I get this drawing error if I set ANY SQL expression for my labels.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2024 21:25:42 GMT</pubDate>
    <dc:creator>__JackCharde__</dc:creator>
    <dc:date>2024-03-13T21:25:42Z</dc:date>
    <item>
      <title>Error in feature class label SQL Where clause when using Shape.STLength()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1365084#M76815</link>
      <description>&lt;P&gt;About three weeks ago, we updated to ArcGIS Enterprise 11.2.&amp;nbsp; Last weekend, we updated our enterprise database from 10.8 to 11.2.&amp;nbsp; In ArcGIS Pro 3.2, we are noting issues with all feature classes that utilize a SQL Where clause for labeling based upon the field Shape.STLength().&amp;nbsp; When labeling is on, hundreds of drawing alerts are produced for any of these features.&amp;nbsp; The message states that an "Error parsing the WHERE clause. One or more fields could not be found."&lt;/P&gt;&lt;P&gt;This has worked without issue since moving to ArcGIS Pro some time ago.&amp;nbsp; I created a straightforward linear feature on our enterprise database and drew a handful of lines.&amp;nbsp; Once I set a SQL Where clause to use the&amp;nbsp;Shape.STLength() field drawing alerts began to appear.&amp;nbsp; We typically use this field to label features differently based upon the length.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;The data is accessed directly to the database using an SDE connection string and the systems are using&amp;nbsp;Microsoft ODBC Driver v18.3.1.1.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LanceCole_0-1703882830404.png" style="width: 791px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90178iD9AF5DDC3C8DE9CE/image-dimensions/791x457?v=v2" width="791" height="457" role="button" title="LanceCole_0-1703882830404.png" alt="LanceCole_0-1703882830404.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 20:51:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1365084#M76815</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2023-12-29T20:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error in feature class label SQL Where clause when using Shape.STLength()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1365200#M76824</link>
      <description>&lt;P&gt;Open a case with Esri Support, likely a regression defect in Pro 3.2.&lt;/P&gt;&lt;P&gt;I can replicate this issue with a new/clean 11.2 enterprise geodatabase on SQL Server 2022 and Pro 3.2.&amp;nbsp; Using SQL Profiler, the SQL being passed to SQL Server is good and doesn't generate any errors or warnings, so this seems to be an internal Pro issue.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2023 22:15:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1365200#M76824</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2023-12-31T22:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in feature class label SQL Where clause when using Shape.STLength()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1365201#M76825</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the reply and for confirming you are experiencing the same on a clean install.&amp;nbsp; I have a ticket in with ESRI, but with the holiday weekend, it will be mid-week for a reply.&amp;nbsp; In the interim, we have modified the layers where we are using labeling based on the&amp;nbsp;shape&lt;SPAN&gt;.STLength() field.&amp;nbsp; I am not sure if it became&amp;nbsp;an issue&amp;nbsp;with Pro 3.2, upgrading to 11.2 on our enterprise deployment or the database update from 10.8 to 11.2.&amp;nbsp; Did not see anything on initial testing and for some reason the issue does not occur&amp;nbsp;on our published&amp;nbsp; feature&amp;nbsp;and map services to the&amp;nbsp;same database just a direct SDE connection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Happy New Year!&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2023 22:34:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1365201#M76825</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2023-12-31T22:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error in feature class label SQL Where clause when using Shape.STLength()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1365204#M76826</link>
      <description>&lt;P&gt;I am guessing it is a Pro 3.2 issue since: 1) the SQL being passed to SQL Server seems to work fine, and 2) everything renders fine in Pro even with the notification something isn't being parsed correctly.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2023 23:31:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1365204#M76826</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2023-12-31T23:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in feature class label SQL Where clause when using Shape.STLength()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1365246#M76830</link>
      <description>&lt;P&gt;When I’ve had SDE.ST_GEOMETRY (Oracle) issues that are somewhat similar to this (the culprit is usually &lt;STRONG&gt;versioning&lt;/STRONG&gt;), I’ve used a subquery as a workaround.&lt;/P&gt;&lt;P&gt;Here’s an untested Oracle WHERE clause that uses a subquery (aka a subselect):&lt;/P&gt;&lt;P&gt;OBJECTID IN (SELECT OBJECTID FROM TEST_LINE WHERE SDE.ST_LENGTH(SHAPE) &amp;gt; 200)&lt;/P&gt;&lt;P&gt;Would something like that work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 18:59:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1365246#M76830</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-01-01T18:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in feature class label SQL Where clause when using Shape.STLength()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1369696#M77368</link>
      <description>&lt;P&gt;All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;After working with ESRI support the past week, we were able to confirm this is a bug in ArcGIS Pro with not only SQL but other Enterprise Databases as well -&amp;nbsp;&lt;A href="https://my.esri.com/#/support/bugs/bugs?bugNumber=BUG-000164308" target="_self"&gt;BUG-000164308&lt;/A&gt;.&amp;nbsp; The issue was present before version 3.2 and caused "flashing" of the ArcGIS Pro Desktop when using the&amp;nbsp;shape.stlength() field in the labeling -&amp;nbsp; SQL Where clause.&amp;nbsp; In version 3.2 Drawing Alert messages were added allowing us to be able to narrow in on the source of the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;for your time and for digging in to confirm the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 17:43:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1369696#M77368</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2024-01-12T17:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in feature class label SQL Where clause when using Shape.STLength()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1382298#M78760</link>
      <description>&lt;P&gt;This is still an issue at 3.2.2. I found&amp;nbsp;&lt;A href="https://support.esri.com/en-us/bug/the-drawing-error-failed-to-evaluate-label-expression-e-bug-000164308" target="_self" rel="nofollow noreferrer"&gt;BUG-000164308&lt;/A&gt;&amp;nbsp;as mentioned by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/201429"&gt;@LanceCole&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 16:56:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1382298#M78760</guid>
      <dc:creator>JeffLegato1</dc:creator>
      <dc:date>2024-02-14T16:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error in feature class label SQL Where clause when using Shape.STLength()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1395586#M80306</link>
      <description>&lt;P&gt;&amp;nbsp;This is also occuring without using geometry fields. I'm using 3.2.2 and I get this drawing error if I set ANY SQL expression for my labels.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 21:25:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-in-feature-class-label-sql-where-clause-when/m-p/1395586#M80306</guid>
      <dc:creator>__JackCharde__</dc:creator>
      <dc:date>2024-03-13T21:25:42Z</dc:date>
    </item>
  </channel>
</rss>

