<?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: Building a dynamically FeatureSetByName query in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/building-a-dynamically-featuresetbyname-query/m-p/1090809#M41813</link>
    <description>&lt;P&gt;FeatureSetByName does not support dynamic class names. The name of the class has to be available during static analysis of the script so we can build out the relations in the catalog. (E.g. if you copy Class A which has an attribute rule that reads from Class B we also copy Class B too)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;here is more details explaining why&lt;/P&gt;&lt;P&gt;Why FeatureSetByName doesn't work with variables&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/attribute-rules-blog/why-featuresetbyname-doesn-t-work-with-variables/ba-p/1541572" target="_blank"&gt;https://community.esri.com/t5/attribute-rules-blog/why-featuresetbyname-doesn-t-work-with-variables/ba-p/1541572&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2025 14:32:09 GMT</pubDate>
    <dc:creator>HusseinNasser2</dc:creator>
    <dc:date>2025-01-02T14:32:09Z</dc:date>
    <item>
      <title>Building a dynamically FeatureSetByName query</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/building-a-dynamically-featuresetbyname-query/m-p/1085426#M41552</link>
      <description>&lt;DIV&gt;Hey folks, currently trying to dynamically build a FeatureSetByName query but am getting the notorious 9999999 error in ArcGIS Pro 2.6.6 for even a simple case. Does anyone know if this is possible or if I'm going about it the wrong way?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JS_Esri_0-1628014984466.jpeg" style="width: 787px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20056iD46BAB1FCFD010CF/image-dimensions/787x253?v=v2" width="787" height="253" role="button" title="JS_Esri_0-1628014984466.jpeg" alt="JS_Esri_0-1628014984466.jpeg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN class="cm-line"&gt;&lt;SPAN class="cm-keyword"&gt;var&lt;/SPAN&gt; &lt;SPAN class="cm-def"&gt;s&lt;/SPAN&gt; &lt;SPAN class="cm-operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="cm-string"&gt;"indxltm_region_ltm5000"&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN class="cm-line"&gt;&lt;SPAN class="cm-keyword"&gt;var&lt;/SPAN&gt; &lt;SPAN class="cm-def"&gt;x&lt;/SPAN&gt; &lt;SPAN class="cm-operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="cm-variable"&gt;FeatureSetByName&lt;/SPAN&gt;(&lt;SPAN class="cm-variable"&gt;$datastore&lt;/SPAN&gt;, &lt;SPAN class="cm-variable"&gt;s&lt;/SPAN&gt; , [&lt;SPAN class="cm-string"&gt;"OBJECTID"&lt;/SPAN&gt;, &lt;SPAN class="cm-string"&gt;"PLAN_NAME"&lt;/SPAN&gt;], &lt;SPAN class="cm-atom"&gt;true&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class="cm-line"&gt;&lt;SPAN class="cm-keyword"&gt;if&lt;/SPAN&gt; (&lt;SPAN class="cm-variable"&gt;Count&lt;/SPAN&gt;(&lt;SPAN class="cm-variable"&gt;x&lt;/SPAN&gt;) &lt;SPAN class="cm-operator"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="cm-number"&gt;0&lt;/SPAN&gt;) {&lt;/SPAN&gt;&lt;SPAN class="cm-line"&gt;    &lt;SPAN class="cm-keyword"&gt;return&lt;/SPAN&gt; &lt;SPAN class="cm-variable"&gt;first&lt;/SPAN&gt;(&lt;SPAN class="cm-variable"&gt;x&lt;/SPAN&gt;).&lt;SPAN class="cm-property"&gt;PLAN_NAME&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN class="cm-line"&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Aug 2021 18:23:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/building-a-dynamically-featuresetbyname-query/m-p/1085426#M41552</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2021-08-03T18:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Building a dynamically FeatureSetByName query</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/building-a-dynamically-featuresetbyname-query/m-p/1087843#M41672</link>
      <description>&lt;P&gt;The expression seems to be OK, it worked for me in a Popup.&lt;/P&gt;&lt;P&gt;So either it doesn't work in an Attribute Rule (which I doubt) or it's not the expression that causes the error.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 10:49:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/building-a-dynamically-featuresetbyname-query/m-p/1087843#M41672</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-08-11T10:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Building a dynamically FeatureSetByName query</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/building-a-dynamically-featuresetbyname-query/m-p/1090773#M41811</link>
      <description>&lt;P&gt;Well... A few days later, I now need the same thing. Now I tested it in an Attribute Rule, turns out it doesn't work there.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/346994"&gt;@HusseinNasser2&lt;/a&gt;, any tips?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 13:08:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/building-a-dynamically-featuresetbyname-query/m-p/1090773#M41811</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-08-20T13:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Building a dynamically FeatureSetByName query</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/building-a-dynamically-featuresetbyname-query/m-p/1090777#M41812</link>
      <description>&lt;P&gt;Johannes, thanks for keeping a pulse on this. We still haven't found a solution either&lt;/P&gt;&lt;P&gt;JS&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 13:29:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/building-a-dynamically-featuresetbyname-query/m-p/1090777#M41812</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2021-08-20T13:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Building a dynamically FeatureSetByName query</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/building-a-dynamically-featuresetbyname-query/m-p/1090809#M41813</link>
      <description>&lt;P&gt;FeatureSetByName does not support dynamic class names. The name of the class has to be available during static analysis of the script so we can build out the relations in the catalog. (E.g. if you copy Class A which has an attribute rule that reads from Class B we also copy Class B too)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;here is more details explaining why&lt;/P&gt;&lt;P&gt;Why FeatureSetByName doesn't work with variables&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/attribute-rules-blog/why-featuresetbyname-doesn-t-work-with-variables/ba-p/1541572" target="_blank"&gt;https://community.esri.com/t5/attribute-rules-blog/why-featuresetbyname-doesn-t-work-with-variables/ba-p/1541572&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 14:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/building-a-dynamically-featuresetbyname-query/m-p/1090809#M41813</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2025-01-02T14:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Building a dynamically FeatureSetByName query</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/building-a-dynamically-featuresetbyname-query/m-p/1401256#M58337</link>
      <description>&lt;P&gt;I don't mean to be disrespectful here but could this get added as an error code? Or maybe it has? I'm running off Pro 3.1 and Enterprise 11.1&amp;nbsp; I would have been pulling my hair out trying to figure out the source of the 999999 error I got until I saw this thread. Removed my When function and made a cascaded if statement instead and it solved the FeatureSetByName issue using dynamic variable.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 01:16:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/building-a-dynamically-featuresetbyname-query/m-p/1401256#M58337</guid>
      <dc:creator>RoderickPerendy</dc:creator>
      <dc:date>2024-03-27T01:16:08Z</dc:date>
    </item>
  </channel>
</rss>

