<?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 code works for pop-up but not for attribute rule in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1329219#M6736</link>
    <description>&lt;P&gt;If you're trying to access a feature service I would try FeatureSetByPortalItem; though I'm not 100% sure if it's possible to access feature services for attribute rules - all of the attribute rules that I have created use features that are stored in the same geodatabase.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 18:38:11 GMT</pubDate>
    <dc:creator>SarahRijneke</dc:creator>
    <dc:date>2023-09-15T18:38:11Z</dc:date>
    <item>
      <title>Arcade code works for pop-up but not for attribute rule</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1328988#M6735</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I have a question in relation to Arcade expressions. What I am trying to do is obtain a feature set from a feature service for my attribute rule. The FeatureSetByName code that I used for configuring pop-ups worked as expected. However, the same code did not work when configuring attribute rules. The error (001841) says "The table was not found."&lt;/P&gt;&lt;P&gt;Is there any limitation in Arcade or attribute rules that prevents us from configuring attribute rules using the FeatureSetByName code for a feature service?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TTtttTeee_0-1694759966337.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80754i10A286A8C84E4CD8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TTtttTeee_0-1694759966337.png" alt="TTtttTeee_0-1694759966337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 06:45:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1328988#M6735</guid>
      <dc:creator>TTtttTeee</dc:creator>
      <dc:date>2023-09-15T06:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade code works for pop-up but not for attribute rule</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1329219#M6736</link>
      <description>&lt;P&gt;If you're trying to access a feature service I would try FeatureSetByPortalItem; though I'm not 100% sure if it's possible to access feature services for attribute rules - all of the attribute rules that I have created use features that are stored in the same geodatabase.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 18:38:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1329219#M6736</guid>
      <dc:creator>SarahRijneke</dc:creator>
      <dc:date>2023-09-15T18:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade code works for pop-up but not for attribute rule</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1329342#M6737</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/696815"&gt;@SarahRijneke&lt;/a&gt;&amp;nbsp;, thanks for your suggestion - have you ever tried this function and succeeded?&lt;/P&gt;&lt;P&gt;According to the Function Reference, FeatureSetByName "&lt;SPAN&gt;Creates a FeatureSet from a Feature Layer based on its name within a map or &lt;STRONG&gt;feature service&lt;/STRONG&gt;.&lt;/SPAN&gt;". The description does not stipulate any limitations for its use; hence, I just assumed it should be applicable for attribute rule.&lt;/P&gt;&lt;P&gt;I have found a feature service in a portal that I have access to. My goal is to create an attribute rule on my own data to extract some information from the service for my data. I have achieved this for pop-ups but it did not work for attribute rules unfortunately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 03:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1329342#M6737</guid>
      <dc:creator>TTtttTeee</dc:creator>
      <dc:date>2023-09-16T03:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade code works for pop-up but not for attribute rule</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1329558#M6739</link>
      <description>&lt;P&gt;You need to access the feature using the correct feature set function. I attempted to access an item from my portal using the FeatureSetByPortalItem function and see an error in the attribute rule expression builder so perhaps this is not possible.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarahRijneke_0-1695040274435.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80893iA12EDCA679173C40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahRijneke_0-1695040274435.png" alt="SarahRijneke_0-1695040274435.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I added the portal item to my Pro project and FeatureSetByName($map...) does not seem to work in the expression builder either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarahRijneke_1-1695041828193.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80897i931D69866B974D2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahRijneke_1-1695041828193.png" alt="SarahRijneke_1-1695041828193.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 12:57:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1329558#M6739</guid>
      <dc:creator>SarahRijneke</dc:creator>
      <dc:date>2023-09-18T12:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade code works for pop-up but not for attribute rule</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1329857#M6741</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/696815"&gt;@SarahRijneke&lt;/a&gt;&amp;nbsp;, thanks for your reply.&lt;/P&gt;&lt;P&gt;Yeah, same here. I tried both FeatureSetByPortalItem and FeatureSetByName but these did not work.&lt;/P&gt;&lt;P&gt;Do you know any work around to establish a connection to an portal item for attribute rules?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 20:49:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1329857#M6741</guid>
      <dc:creator>TTtttTeee</dc:creator>
      <dc:date>2023-09-18T20:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade code works for pop-up but not for attribute rule</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1330061#M6742</link>
      <description>&lt;P&gt;looks like your features either need to be in the same &lt;A href="https://developers.arcgis.com/arcade/profiles/attribute-rule-calculation/" target="_self"&gt;feature dataset or geodatabase&lt;/A&gt;&amp;nbsp;for the arcade expression to work. I don't know of any work arounds.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarahRijneke_0-1695125432261.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81070i97E5BBD062BF9A0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahRijneke_0-1695125432261.png" alt="SarahRijneke_0-1695125432261.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 12:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1330061#M6742</guid>
      <dc:creator>SarahRijneke</dc:creator>
      <dc:date>2023-09-19T12:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade code works for pop-up but not for attribute rule</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1330410#M6744</link>
      <description>&lt;P&gt;Thats alight, I really appreciate for your support&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 21:11:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-code-works-for-pop-up-but-not-for-attribute/m-p/1330410#M6744</guid>
      <dc:creator>TTtttTeee</dc:creator>
      <dc:date>2023-09-19T21:11:33Z</dc:date>
    </item>
  </channel>
</rss>

