<?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 creating SQL label expression for Shape.STArea() &amp;gt;300000 in ArcGIS Pro in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1565651#M41167</link>
    <description>&lt;P&gt;It might be related to this known bug in Pro 3.2. The issue is fixed in Pro 3.3.&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/bug/the-drawing-error-failed-to-evaluate-label-expression-e-bug-000164308" target="_blank" rel="noopener"&gt;BUG-000164308&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2024 16:08:45 GMT</pubDate>
    <dc:creator>alex_friant</dc:creator>
    <dc:date>2024-12-06T16:08:45Z</dc:date>
    <item>
      <title>Error creating SQL label expression for Shape.STArea() &gt;300000 in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1169087#M33047</link>
      <description>&lt;P&gt;I am trying to recreate a SQL expression in ArcGIS Pro that I have in ArcMap. It is a label expression that was in ArcMap to label the parcel # for parcels with &lt;STRONG&gt;Shape_Area &amp;gt; 300000 &lt;/STRONG&gt;in my FGDB&lt;STRONG&gt;. &lt;/STRONG&gt;I have migrated my FGDB to SQL and are trying to write the same expression. In SQL the &lt;STRONG&gt;Shape_Area&lt;/STRONG&gt; field is now &lt;STRONG&gt;Shape.STArea() &lt;/STRONG&gt;will not work with the expression&amp;nbsp;&lt;STRONG&gt;Shape.STArea() &amp;gt;300000.&amp;nbsp;&lt;/STRONG&gt; I can recreate that expression in ArcMap connected to SQL, but not Pro. I am on Pro 2.9.2 and ArcMap 10.9.1&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 22:22:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1169087#M33047</guid>
      <dc:creator>DavidAlfordLPAO</dc:creator>
      <dc:date>2022-04-28T22:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating SQL label expression for Shape.STArea() &gt;300000 in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1169204#M33050</link>
      <description>&lt;P&gt;There are 2 ways to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can have the condition in the Arcade expression:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if($feature.Shape_Area &amp;gt; 300000) {
    return $feature.OBJECTID
}

// if $feature.Shape_Area doesn't work, you can also try Area($feature)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you can have the condition as SQL statement, making the expression very simple:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return $feature.OBJECTID&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1651223900427.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40177i9049520B4F70DDB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_1-1651223900427.png" alt="JohannesLindner_1-1651223900427.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 09:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1169204#M33050</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-04-29T09:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating SQL label expression for Shape.STArea() &gt;300000 in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1392695#M38905</link>
      <description>&lt;P&gt;Did you ever figure out a solution, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/555266"&gt;@DavidAlfordLPAO&lt;/a&gt;?&lt;/P&gt;&lt;P&gt;I'm in ArcGIS Pro 3.2.2 and I'm getting the same error message/alert in Notifications.&lt;BR /&gt;&lt;BR /&gt;What's perplexing is that the query is confirmed as "valid" by the label tool, but when you apply it to the label class the error message appears. It has something to do with the "()" I believe, but if it did then why does the validation check say it's okay? So strange.&lt;BR /&gt;&lt;BR /&gt;Also, this exact same expression works perfectly well in the Definition Query and as a regular "Select By Attributes" query. This must be a bug in the labelling stack. I'll call Esri Support and see what I can learn.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 17:45:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1392695#M38905</guid>
      <dc:creator>alex_friant</dc:creator>
      <dc:date>2024-03-07T17:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating SQL label expression for Shape.STArea() &gt;300000 in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1565611#M41164</link>
      <description>&lt;P&gt;I'm running into a similar problem, but in model builder, running a query. It was fine in Oracle, but after moving to SQL Server and changing the field names, it just doesn't like them. I'm not sure how to change the query to make it work.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 14:53:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1565611#M41164</guid>
      <dc:creator>NickMcNamara</dc:creator>
      <dc:date>2024-12-06T14:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating SQL label expression for Shape.STArea() &gt;300000 in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1565651#M41167</link>
      <description>&lt;P&gt;It might be related to this known bug in Pro 3.2. The issue is fixed in Pro 3.3.&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/bug/the-drawing-error-failed-to-evaluate-label-expression-e-bug-000164308" target="_blank" rel="noopener"&gt;BUG-000164308&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 16:08:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1565651#M41167</guid>
      <dc:creator>alex_friant</dc:creator>
      <dc:date>2024-12-06T16:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating SQL label expression for Shape.STArea() &gt;300000 in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1565775#M41171</link>
      <description>&lt;P&gt;I deleted the query and used the picker to recreate it instead of typing it in. It was exactly the same (I checked them in notepad). But now it works OK. /shrug&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 19:03:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1565775#M41171</guid>
      <dc:creator>NickMcNamara</dc:creator>
      <dc:date>2024-12-06T19:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating SQL label expression for Shape.STArea() &gt;300000 in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1565818#M41174</link>
      <description>&lt;P&gt;Isn't that how it always works LOL. Glad it's working now.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 21:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-creating-sql-label-expression-for-shape/m-p/1565818#M41174</guid>
      <dc:creator>alex_friant</dc:creator>
      <dc:date>2024-12-06T21:04:01Z</dc:date>
    </item>
  </channel>
</rss>

