<?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: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1206138#M4378</link>
    <description>&lt;P&gt;Turned out she was in a map not Field Maps and it says in there that is a no go.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1661381684557.png" style="width: 602px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49392iEDDE9DADC6F7F5FA/image-dimensions/602x149?v=v2" width="602" height="149" role="button" title="DougBrowning_0-1661381684557.png" alt="DougBrowning_0-1661381684557.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2022 22:55:12 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2022-08-24T22:55:12Z</dc:date>
    <item>
      <title>Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203294#M4298</link>
      <description>&lt;P&gt;Hello,&amp;nbsp; I am trying to populate a field (Site_ID) in a related table (campground_evaluations) using the arcade function FeatureSetByRelationshipName.&amp;nbsp; The related feature that I am trying to pull from is called MTH_Campgrounds.&lt;/P&gt;&lt;P&gt;In Field Maps I want to select a point (campground in this example case) and select the related table icon and enter data into the form I created for the table.&amp;nbsp; Hopefully, this code will reduce the potential for error while inputting data into the table's form.&amp;nbsp; The feature and table are related using Global IDs.&amp;nbsp; This is where I am, but I get a&amp;nbsp;&lt;SPAN class=""&gt;Execution Error:&lt;/SPAN&gt;&lt;SPAN&gt;Cannot read properties of null (reading 'toString').&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;var related = FeatureSetByRelationshipName($feature,'MTH_Campgrounds', ["SITE_ID"], false)&lt;/P&gt;&lt;P&gt;var record = First(related)&lt;/P&gt;&lt;P&gt;if (IsEmpty(record)){&lt;/P&gt;&lt;P&gt;&amp;nbsp; return "No Record Found"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;return record['SITE_ID']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 15:57:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203294#M4298</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-08-16T15:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203302#M4299</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var parent_fs = FeatureSetByRelationshipName($feature, 'MTH_Campgrounds', ['SITE_ID'], true)


var parent = First(parent_fs)


if (!IsEmpty(parent)) {
    return parent['Serial_Num']
} else {
    return null
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Matthew, try this. I tried for so long a few weeks ago and eventually got this code to work with my dataset. I find that it helps to use the Global links to input the feature class and field and not just type it in. Hope it works for you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 15:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203302#M4299</guid>
      <dc:creator>KatiePiper</dc:creator>
      <dc:date>2022-08-16T15:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203307#M4300</link>
      <description>&lt;P&gt;Thanks for your reply!!&amp;nbsp; The code still generated the error message though...&amp;nbsp; I am about to resort to just making a separate table created from the relates.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 15:09:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203307#M4300</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-08-16T15:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203314#M4301</link>
      <description>&lt;P&gt;Ah okay, I just realized I didn't change the "Serial_Num" to "SITE_ID" Not sure if you caught/changed that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 15:15:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203314#M4301</guid>
      <dc:creator>KatiePiper</dc:creator>
      <dc:date>2022-08-16T15:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203316#M4302</link>
      <description>&lt;P&gt;I did, catch that.. no go&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 15:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203316#M4302</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-08-16T15:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203335#M4303</link>
      <description>&lt;P&gt;Does the table's (campground_evaluations) field (SITE_ID) that we are trying to populate from the related feature (MTH_CAMPGROUNDS) need to be identified as a variable?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 15:55:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203335#M4303</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-08-16T15:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203346#M4304</link>
      <description>&lt;P&gt;I don't think so because you are putting the arcade expression under that field on field maps. That is where you are putting it, correct?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 16:10:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203346#M4304</guid>
      <dc:creator>KatiePiper</dc:creator>
      <dc:date>2022-08-16T16:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203353#M4306</link>
      <description>&lt;P&gt;yes that is correct&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 16:23:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203353#M4306</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-08-16T16:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203445#M4311</link>
      <description>&lt;P&gt;So I added brackets, and the test for this code worked!!&amp;nbsp; But, when I open the map in the mobile field maps app it says calculation failed....&amp;nbsp; any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code&lt;/P&gt;&lt;P&gt;var parent_fs = FeatureSetByRelationshipName($feature, ['MTH_Campgrounds'], ['SITE_ID'], true)&lt;/P&gt;&lt;P&gt;var parent = First(parent_fs)&lt;/P&gt;&lt;P&gt;if (!IsEmpty(parent)) {&lt;BR /&gt;return parent_fs['SITE_ID']&lt;BR /&gt;} else {&lt;BR /&gt;return null&lt;BR /&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 19:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203445#M4311</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-08-16T19:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203474#M4313</link>
      <description>&lt;P&gt;That was my trouble for days before I was able to get it to work. In the information I was reading.. it sounded like after $feature you had to put the relationship class name. I kept trying to do that but then randomly tried the parent class name and it worked. So I can only suggest trying different names that you used while creating the feature class?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-to-pass-a-value-from-parent-to/td-p/1123857" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-to-pass-a-value-from-parent-to/td-p/1123857&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/automatically-populating-related-table-field-with/m-p/1172223#M3343" target="_blank"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/automatically-populating-related-table-field-with/m-p/1172223#M3343&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 19:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203474#M4313</guid>
      <dc:creator>KatiePiper</dc:creator>
      <dc:date>2022-08-16T19:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203721#M4316</link>
      <description>&lt;P&gt;There has been many, many posts on here that&amp;nbsp;FeatureSetByRelationshipName has some bugs in it and often does not work.&amp;nbsp; Change to FeatureSetByName and it should all work better.&amp;nbsp; You then have to wrap it in Filter to get just the record you want.&amp;nbsp; It could be slower if a large table since it grabs it all then you filter. But it works.&amp;nbsp; Also note to add just the field you want and not return geometry which will be faster.&lt;/P&gt;&lt;P&gt;var sql = "PointID = '" + $feature.PointID + "'";&lt;BR /&gt;var tbl = Filter(FeatureSetByName($map,"Points", ['DesignLat'], false), sql);&lt;/P&gt;&lt;P&gt;I asked them to add a where clause to FeatureSetByName which would be much more efficient but no word back yet.&lt;/P&gt;&lt;P&gt;I am also not sure you can return null? I would return ''.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 14:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1203721#M4316</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-08-17T14:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1204840#M4343</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;, I have a similar situation. Not sure if I should be starting a new post here. Sorry if I've hijacked the thread. I want to pull in the block name from another layer into my new polygon. These layers are in the same map. They are not related. I tried following the instructions in this Field maps blog post - &lt;A href="https://www.esri.com/arcgis-blog/products/field-maps/field-mobility/common-calculated-expressions-for-arcgis-field-maps/" target="_self"&gt;May 12, 2022 Common calculated expressions for ArcGIS Field maps&lt;/A&gt;&amp;nbsp;&amp;nbsp;, and then when I couldn't get it to work, did some googling and came across this thread we're in now.&lt;/P&gt;&lt;P&gt;This is the calculated expression I have.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Create a feature set using the 'Regions' layer in the map
var blocks = FeatureSetByName($map, 'Blocks', ['Block_name'])

// Intersect the current location with the regions and 
// get the first region
var block = First(Intersects($feature, blocks))

// If the current location does intersect a feature, 
// return the name of the region. Otherwise, return null
if (!IsEmpty(block)) {
    return block['Block_name']
} else {
    return ''
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Do you notice anything I've missed here or am I using featuresetbyname incorrectly? I haven't used it before, but want to get the Block_name field from the Blocks layer carried into this new layer.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2022 21:41:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1204840#M4343</guid>
      <dc:creator>Lindsay</dc:creator>
      <dc:date>2022-08-21T21:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1204993#M4349</link>
      <description>&lt;P&gt;I tend to use block.Block_name instead but what you have there looks like it should work to me.&amp;nbsp; I would make sure your field name and map name are the proper case.&amp;nbsp; Like it is maybe Block_Name or something.&lt;/P&gt;&lt;P&gt;Try that then maybe a screen shot of the map to see.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 14:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1204993#M4349</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-08-22T14:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205161#M4358</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;. Thanks for your reply. I've checked the casing. It doesn't look like that. I'm not following where you swap out the block.Block_name part and do I keep using "" or '' in that situation?&lt;/P&gt;&lt;P&gt;Both of these layers are view layers. Would that be affecting it?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 20:57:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205161#M4358</guid>
      <dc:creator>Lindsay</dc:creator>
      <dc:date>2022-08-22T20:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205163#M4360</link>
      <description>&lt;P&gt;On the return line I always write it like&amp;nbsp;First(tbl).DesignLat&lt;/P&gt;&lt;P&gt;Yours would be&amp;nbsp;&lt;/P&gt;&lt;P&gt;return block.Block_name&lt;/P&gt;&lt;P&gt;My intersects I wrote in one line but it should work the same&lt;/P&gt;&lt;P&gt;var plots = Intersects($feature,FeatureSetByName($map,"TerrADat", ["BareSoilCover"], false));&lt;BR /&gt;return Average(plots, "BareSoilCover")&lt;/P&gt;&lt;P&gt;What are the geo types of both layers?&lt;/P&gt;&lt;P&gt;I wonder if you are zommed way out?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Be aware that using $feature as input to this function will yield results only as precise as the view's scale resolution. Therefore values returned from expressions using this function may change after zooming between scales.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 21:02:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205163#M4360</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-08-22T21:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205185#M4361</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;, I copied in your expression and switched it out with mine, but got this error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var blocks = Intersects($feature,FeatureSetByName($map,"Blocks", ["Block_name"], false));
return blocks.Block_name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Execution Error:&lt;/SPAN&gt;&lt;SPAN&gt;Runtime Error: Cannot call member property on object of this type. Block_name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using two polygons published from ArcPro. Separate feature services. Both view layers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm not zoomed out far. I'm pretty close in.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for advising about the precision. I wasn't aware of that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm going to mull this over more. Thank you for your help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 22:32:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205185#M4361</guid>
      <dc:creator>Lindsay</dc:creator>
      <dc:date>2022-08-22T22:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205363#M4365</link>
      <description>&lt;P&gt;You need First in there.&lt;/P&gt;&lt;P&gt;return First(blocks).Block_name&lt;/P&gt;&lt;P&gt;If that does not work take out the false part.&amp;nbsp; That tells it no geo and may be needed.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 13:42:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205363#M4365</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-08-23T13:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205570#M4371</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;, I've added in First and removed false, but I'm getting this error.&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Execution Error:&lt;/SPAN&gt;&lt;SPAN&gt;Runtime Error: Cannot call member method on null. Block_name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var blocks = Intersects($feature,FeatureSetByName($map,"Blocks", ["Block_name"]));
return First(blocks).Block_name&lt;/LI-CODE&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>Tue, 23 Aug 2022 20:27:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205570#M4371</guid>
      <dc:creator>Lindsay</dc:creator>
      <dc:date>2022-08-23T20:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205579#M4372</link>
      <description>&lt;P&gt;Sounds like your intersect is not returning any results.&amp;nbsp; It picks the first one in the table or the area you are zoomed to.&amp;nbsp; Are you sure the feature has something to intersect to?&lt;/P&gt;&lt;P&gt;You can add a check to see if the result is empty to avoid an error.&lt;/P&gt;&lt;P&gt;var blocks = Intersects($feature,FeatureSetByName($map,"Blocks", ["Block_name"]));&lt;/P&gt;&lt;P&gt;if (Count(blocks) &amp;gt; 0) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return First(blocks).Block_name&lt;BR /&gt;}&lt;BR /&gt;else {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return "None found"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 20:43:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205579#M4372</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-08-23T20:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Field Maps, FeatureSetByRelationshipName, Arcade, Related Tables</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205651#M4373</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;, when I test in the preview, the Result returns None found, but after I click ok in Configure form and save the map, close out and re-enter, if I draw a new polygon (zoomed in enough so I can't see the borders of the polygon whose Block_name attribute I'm trying to pick up), it still appears empty in the form and in the pop-up.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 23:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/field-maps-featuresetbyrelationshipname-arcade/m-p/1205651#M4373</guid>
      <dc:creator>Lindsay</dc:creator>
      <dc:date>2022-08-23T23:28:47Z</dc:date>
    </item>
  </channel>
</rss>

