<?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: Arcade - dangerous - undocumented in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcade-dangerous-undocumented/m-p/1321976#M10239</link>
    <description>&lt;P&gt;ESRI registered it as a bug&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 00:42:38 GMT</pubDate>
    <dc:creator>MarkMindlin_idea</dc:creator>
    <dc:date>2023-08-24T00:42:38Z</dc:date>
    <item>
      <title>Arcade - dangerous - undocumented</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcade-dangerous-undocumented/m-p/1318574#M10180</link>
      <description>&lt;P&gt;We found a undocumented bug/feature :)))&lt;BR /&gt;&lt;BR /&gt;Although the documentation says that&amp;nbsp;[title] is a "Feature Layer based on its name within a map or feature service"&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyname" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyname&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried to use it with a file geodatabase/enterprise and feature class name as a second parameter [title]&lt;/P&gt;&lt;P&gt;ArcGIS Pro 3.1.2&lt;/P&gt;&lt;P&gt;Steps to reproduce:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new project in ArcGIS Pro&lt;/LI&gt;&lt;LI&gt;Create a new file geodatabase&lt;/LI&gt;&lt;LI&gt;Create a new polygon feature class, Example name "Transformer"&lt;/LI&gt;&lt;LI&gt;Create an Immediate Calculation attribute rule for the feature class&lt;/LI&gt;&lt;LI&gt;The code of the expression&lt;BR /&gt;var fsTransformer = FeatureSetByName($datastore, "Transformer", ["*"], false)&lt;/LI&gt;&lt;LI&gt;Save the attribute rule&lt;/LI&gt;&lt;LI&gt;Change the feature class name "Transformer" to another name, Example "Apple"&lt;/LI&gt;&lt;LI&gt;Save, close and open the project&lt;/LI&gt;&lt;LI&gt;See the attribute rule - the expression changed to&amp;nbsp;&lt;BR /&gt;var fsTransformer = FeatureSetByName($datastore, "Apple", ["*"], false)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any comments?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 00:41:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcade-dangerous-undocumented/m-p/1318574#M10180</guid>
      <dc:creator>MarkMindlin_idea</dc:creator>
      <dc:date>2023-08-21T00:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - dangerous - not documented</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcade-dangerous-undocumented/m-p/1319352#M10193</link>
      <description>&lt;P&gt;I would contact ESRI Tech Support so they could open a bug ticket with the arcade team if you haven't submitted one already. Don't have enough arcade background to know if this is a bug or not and your organization may have settings that differ wildly than others. Without more context it would be wise to seek ESRI's input on their arcade team and go from there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 20:33:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcade-dangerous-undocumented/m-p/1319352#M10193</guid>
      <dc:creator>GIS_Fox</dc:creator>
      <dc:date>2023-08-16T20:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - dangerous - undocumented</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcade-dangerous-undocumented/m-p/1319746#M10199</link>
      <description>&lt;P&gt;Like&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/122659"&gt;@GIS_Fox&lt;/a&gt;&amp;nbsp; i don't have enough Arcade background either, however, i am not sure what exactly the bug is.&amp;nbsp; That the feature layer name is updated in Arcade after you change the name of the feature layer that seems to me like a desirable 'feature' (no pun intended).&amp;nbsp; If the system would not make the Arcade updates for you, you would have to manually check each attribute rule and update the feature layer name there.&amp;nbsp; &amp;nbsp;Also you are saying that this is 'dangerous' in your question title and i don't see why this is dangerous, can you explain?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 17:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcade-dangerous-undocumented/m-p/1319746#M10199</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-08-17T17:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - dangerous - undocumented</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcade-dangerous-undocumented/m-p/1320504#M10208</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp; and thank you for your response.&lt;/P&gt;&lt;P&gt;Please use a correct terminology:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What we see on a Context menu&amp;amp;Map - is a feature layer&lt;/LI&gt;&lt;LI&gt;What we have in a database - is a feature class&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We tried to test if a feature layer name on a Context menu has linked to an Arcade expression - we had changed feature layer name - it had no impact on the expression.&lt;/P&gt;&lt;P&gt;We are not sure if the source of the issue from an inappropriate use of parameters of the Arcade function, or other reason.&lt;/P&gt;&lt;P&gt;Lets imagine that it works as designed for a feature class in a file geodatabase - then see the definition of the type Text&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#text" target="_blank"&gt;https://developers.arcgis.com/arcade/guide/types/#text&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"A text value is a series of characters wrapped in single or double quotes."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We believe it is a very rare case when, in a programming language, an environment will change a "hard-coded" char, string, or text. It would be interesting to find similar "feature" - if you know any examples - please share.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That is why we describe the issue dangerous - it is a not expected behaviour.&lt;BR /&gt;In addition, it seems to be undocumented. If you know any documentation available - please share.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 01:25:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcade-dangerous-undocumented/m-p/1320504#M10208</guid>
      <dc:creator>MarkMindlin_idea</dc:creator>
      <dc:date>2023-08-21T01:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - dangerous - undocumented</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcade-dangerous-undocumented/m-p/1321976#M10239</link>
      <description>&lt;P&gt;ESRI registered it as a bug&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 00:42:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcade-dangerous-undocumented/m-p/1321976#M10239</guid>
      <dc:creator>MarkMindlin_idea</dc:creator>
      <dc:date>2023-08-24T00:42:38Z</dc:date>
    </item>
  </channel>
</rss>

