<?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: Label Expression $view Identifier Not Recognized in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/label-expression-view-identifier-not-recognized/m-p/1603867#M1570</link>
    <description>&lt;P&gt;As a follow up, using the Map Viewer (new), there is no need to do what I am requesting because you can create multiple label classes for a single feature that can be set to different visibility ranges. However, for older applications the above would still need to apply for the time being.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Apr 2025 17:48:35 GMT</pubDate>
    <dc:creator>ckellow</dc:creator>
    <dc:date>2025-04-08T17:48:35Z</dc:date>
    <item>
      <title>Label Expression $view Identifier Not Recognized</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/label-expression-view-identifier-not-recognized/m-p/1603837#M1567</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having an issue where I am creating an Expression for a Label of a Feature Layer within Map Viewer Classic. I am trying to have the expression change which attribute is labeled based off the map scale. However, I am running into an issue where the expression does not work because of an Execution Error - Identified Not Recognized on the $view portion of my expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ckellow_0-1744129749659.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129720i793EE7E1935A3F0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ckellow_0-1744129749659.png" alt="ckellow_0-1744129749659.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;Within the &lt;A href="https://developers.arcgis.com/arcade/profiles/labeling/" target="_self"&gt;ArcGIS Arcade Documentation&lt;/A&gt;, it shows that $view is able to be used as a profile variable within label expressions. If that is not the case, can someone explain to me why or if there is a workaround?&lt;/P&gt;&lt;P data-unlink="true"&gt;Yes the expression above might be flawed in general, but that is fixable if the $view issue can be solved.&lt;/P&gt;&lt;P data-unlink="true"&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 16:32:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/label-expression-view-identifier-not-recognized/m-p/1603837#M1567</guid>
      <dc:creator>ckellow</dc:creator>
      <dc:date>2025-04-08T16:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression $view Identifier Not Recognized</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/label-expression-view-identifier-not-recognized/m-p/1603841#M1568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/786934"&gt;@ckellow&lt;/a&gt;, first, I would recommend using the Map Viewer if possible. Map Viewer Classic will be retired soon:&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/deprecation-map-viewer-classic-deprecation-000030662" target="_blank"&gt;https://support.esri.com/en-us/knowledge-base/deprecation-map-viewer-classic-deprecation-000030662&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately I don't think you are using view correctly there. Look at this doc about using view and profiles:&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/profiles/labeling/#profile-variables" target="_blank"&gt;https://developers.arcgis.com/arcade/profiles/labeling/#profile-variables&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/arcade/profiles/" target="_blank"&gt;https://developers.arcgis.com/arcade/profiles/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This doc may be more helpful for configuring labels with Map Viewer:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/arcgis-online/create-maps/configure-labels-mv.htm" target="_blank"&gt;https://doc.arcgis.com/en/arcgis-online/create-maps/configure-labels-mv.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 16:43:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/label-expression-view-identifier-not-recognized/m-p/1603841#M1568</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2025-04-08T16:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression $view Identifier Not Recognized</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/label-expression-view-identifier-not-recognized/m-p/1603866#M1569</link>
      <description>&lt;P&gt;Hi Noah,&lt;/P&gt;&lt;P&gt;Thank you. I am using the Map Viewer Classic because we have an application that is built in Web App Builder and has not been migrated fully to Experience Builder. I have taken a look at that documentation, and I also found this blog post with similar functionality for the &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/automatically-resize-symbols-by-map-scale-in-arcade" target="_self"&gt;$view.scale (though used for Symbology, not labeling).&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Within that documentation, there is a variable created that is: &lt;STRONG&gt;var cs=$view.scale&lt;/STRONG&gt;. This should be the same way to create the variable structure needed for the labelling I am trying to do.&lt;/P&gt;&lt;P&gt;Can you share more on why you think the view is used incorrectly or how you would adjust it to work properly?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 17:45:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/label-expression-view-identifier-not-recognized/m-p/1603866#M1569</guid>
      <dc:creator>ckellow</dc:creator>
      <dc:date>2025-04-08T17:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Label Expression $view Identifier Not Recognized</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/label-expression-view-identifier-not-recognized/m-p/1603867#M1570</link>
      <description>&lt;P&gt;As a follow up, using the Map Viewer (new), there is no need to do what I am requesting because you can create multiple label classes for a single feature that can be set to different visibility ranges. However, for older applications the above would still need to apply for the time being.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 17:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/label-expression-view-identifier-not-recognized/m-p/1603867#M1570</guid>
      <dc:creator>ckellow</dc:creator>
      <dc:date>2025-04-08T17:48:35Z</dc:date>
    </item>
  </channel>
</rss>

