<?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 FeatureSetByAssociation function returns ScratchRecordSet in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682811#M7689</link>
    <description>&lt;P&gt;Thanks I saw that. Replied to the case.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Adding a summary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The fact you are seeing Scratch workspace is just a side effect of using GetFeatureSetInfo. GetFeatureSetInfo returns the meta data about the featureset, not the actual data behind the featureset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;ScratchRecordSet is just the temporary workspace we use to store data after&amp;nbsp;querying the associations table, which as you see you got the full dictionary with default values. So nothing wrong here.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;To see the returned association rows and the actual class names, write the following arcade, your class names in mobile gdb should be something like&amp;nbsp;&amp;nbsp;"main.classname, use that in your filter.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;then in Pro open Arcgis monitor (CTRL+ALT+M), enable debug mode, and look for "ArcadeConsole", you should see the actual json.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var connectivityAssociations = FeatureSetByAssociation(thefeature, 'connected')
for (var a in connectivityAssociations)
    console(text(a))
 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;Event time="Fri Feb 06 09:53:44.904" type="Debug" task#="1605" thread="745c: Main CIM worker thread" elapsed="0" function="Geodatabase.AttributeRule" code="ArcadeConsole"&amp;gt;&lt;BR /&gt;Arcade{"geometry":null,"attributes":{"className":"main.ElectricDistributionJunction","globalId":"{F4013AD9-F4F0-4B6F-A212-F353ED90F2B1}","isContentVisible":0,"ObjectID":65,"OID":65,"percentAlong":0,"side":"","terminal":1}}&lt;BR /&gt;&amp;lt;/Event&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Feb 2026 18:01:31 GMT</pubDate>
    <dc:creator>HusseinNasser2</dc:creator>
    <dc:date>2026-02-06T18:01:31Z</dc:date>
    <item>
      <title>Arcade FeatureSetByAssociation function returns ScratchRecordSet</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682064#M7682</link>
      <description>&lt;P&gt;I am using an Arcade script in an Attribute Rule that involves using FeatureSetByAssociation($feature, 'connected')&lt;/P&gt;&lt;P&gt;There are two Junction - Junction connectivity associations related to the feature being passed into the FeatureSetByAssocition function. This is the data returned from this function:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"layerId"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;null&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"layerName"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&g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t;"objectClassId"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;ScratchRecordSet is not the expected className. the feature being passed into the FeatureSetByAssociation function is valid. I am using a mobile geodatabase. Is this expected behavior?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 16:21:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682064#M7682</guid>
      <dc:creator>mward_dlc</dc:creator>
      <dc:date>2026-02-04T16:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade FeatureSetByAssociation function returns ScratchRecordSet</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682069#M7683</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/969311"&gt;@mward_dlc&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It could be the case because it is a mobile dataset. One thing you can try though is if the same attribute expression will work as a calculation in Field Maps(if hosted). If it works locally in a file geodatabase but not in a mobile geodatabase then it is probably the limitation of mobile gdbs.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 16:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682069#M7683</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2026-02-04T16:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade FeatureSetByAssociation function returns ScratchRecordSet</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682110#M7684</link>
      <description>&lt;P&gt;I will try it in a file geodatabase, but I want to highlight that Feature Classes and Feature Datasets, including Utility Network are supported in a mobile geodatabase according to this document:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-mobile-gdb/mobile-geodatabases.htm" target="_blank"&gt;Mobile geodatabases—ArcGIS Pro | Documentation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;While I am not 100% certain, the data I am working with should fall under those categories.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 18:06:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682110#M7684</guid>
      <dc:creator>mward_dlc</dc:creator>
      <dc:date>2026-02-04T18:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade FeatureSetByAssociation function returns ScratchRecordSet</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682613#M7685</link>
      <description>&lt;P&gt;No that shouldn't be expected, can we have the Arcade script used? (And also the Pro version used)&amp;nbsp;&lt;/P&gt;&lt;P&gt;FeatureSetByAssociation returns a featureset, so you would need to either loop or do a First to get the association row.&lt;/P&gt;&lt;P&gt;Best quick test is to use a Popup and click on one of the junctions that have connectivity associations.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="javascript"&gt;var x = First(FeatureSetByAssociation(($feature), "connected"))

if (x == null) 
    return "No connected feature"
else
    return text(x);&lt;/LI-CODE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HusseinNasser2_1-1770337754683.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/148021i09C0B158037FF6E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HusseinNasser2_1-1770337754683.png" alt="HusseinNasser2_1-1770337754683.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should get something like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"geometry":null,
"attributes":
{"className":"main.ElectricDistributionJunction",
"globalId":"{F4013AD9-F4F0-4B6F-A212-F353ED90F2B1}",
"isContentVisible":0,
"ObjectID":65,
"OID":65,
"percentAlong":0,
"side":"",
"terminal":1}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 00:31:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682613#M7685</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2026-02-06T00:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade FeatureSetByAssociation function returns ScratchRecordSet</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682727#M7686</link>
      <description>&lt;P&gt;Do you want me to open a case, or use another method to share the script with you privately?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 15:16:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682727#M7686</guid>
      <dc:creator>mward_dlc</dc:creator>
      <dc:date>2026-02-06T15:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade FeatureSetByAssociation function returns ScratchRecordSet</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682733#M7687</link>
      <description>&lt;P&gt;Yes you may open a case, if you can include the mobile gdb with the script, and the globalids of the feature reproducing the problem, Pro released used it would be good.&lt;/P&gt;&lt;P&gt;send me the case number privately.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 15:30:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682733#M7687</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2026-02-06T15:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade FeatureSetByAssociation function returns ScratchRecordSet</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682786#M7688</link>
      <description>&lt;P&gt;The case number is&amp;nbsp;&lt;SPAN&gt;04106484. Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 16:50:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682786#M7688</guid>
      <dc:creator>mward_dlc</dc:creator>
      <dc:date>2026-02-06T16:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade FeatureSetByAssociation function returns ScratchRecordSet</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682811#M7689</link>
      <description>&lt;P&gt;Thanks I saw that. Replied to the case.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Adding a summary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The fact you are seeing Scratch workspace is just a side effect of using GetFeatureSetInfo. GetFeatureSetInfo returns the meta data about the featureset, not the actual data behind the featureset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;ScratchRecordSet is just the temporary workspace we use to store data after&amp;nbsp;querying the associations table, which as you see you got the full dictionary with default values. So nothing wrong here.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;To see the returned association rows and the actual class names, write the following arcade, your class names in mobile gdb should be something like&amp;nbsp;&amp;nbsp;"main.classname, use that in your filter.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;then in Pro open Arcgis monitor (CTRL+ALT+M), enable debug mode, and look for "ArcadeConsole", you should see the actual json.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var connectivityAssociations = FeatureSetByAssociation(thefeature, 'connected')
for (var a in connectivityAssociations)
    console(text(a))
 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;Event time="Fri Feb 06 09:53:44.904" type="Debug" task#="1605" thread="745c: Main CIM worker thread" elapsed="0" function="Geodatabase.AttributeRule" code="ArcadeConsole"&amp;gt;&lt;BR /&gt;Arcade{"geometry":null,"attributes":{"className":"main.ElectricDistributionJunction","globalId":"{F4013AD9-F4F0-4B6F-A212-F353ED90F2B1}","isContentVisible":0,"ObjectID":65,"OID":65,"percentAlong":0,"side":"","terminal":1}}&lt;BR /&gt;&amp;lt;/Event&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 18:01:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-featuresetbyassociation-function-returns/m-p/1682811#M7689</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2026-02-06T18:01:31Z</dc:date>
    </item>
  </channel>
</rss>

