<?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: Profile Variable $Map is Not Found in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255342#M65153</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/346994"&gt;@HusseinNasser2&lt;/a&gt;&amp;nbsp; I don't have access to the beta. The example above was done in 3.0.3&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 15:35:03 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2023-02-06T15:35:03Z</dc:date>
    <item>
      <title>Profile Variable $Map is Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255247#M65140</link>
      <description>&lt;P&gt;I am trying to filter the database by using profile variable $Map in ArcGIS Pro Attribute Rules and I had an Object Not Found Error&amp;nbsp;&lt;/P&gt;&lt;P&gt;var deviceClass = FeatureSetByName($map, "Communications Device");&lt;/P&gt;&lt;P&gt;Another Question :&lt;/P&gt;&lt;P&gt;I always do this kind of filter using profile variable $datastore. I want only to get the field room from this table, but when printing the results all fields are there&lt;/P&gt;&lt;P&gt;var test="{4EC98101-67C4-44FC-8BF5-C7DF9393AB73}"&lt;BR /&gt;var deviceClass = FeatureSetByName($datastore, "CommunicationsJunctionObject");&lt;BR /&gt;var devicesRows = Filter(deviceClass, "GLOBALID = &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/639924"&gt;@test&lt;/a&gt;");&lt;BR /&gt;return{"errorMessage":"FeatureSetByAssociation: "+first(devicesRows)};&lt;/P&gt;&lt;P&gt;this screen of the output&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mohamed_Gamal_0-1675668888242.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/62141iB203445E4ABCD118/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mohamed_Gamal_0-1675668888242.png" alt="Mohamed_Gamal_0-1675668888242.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var test="{4EC98101-67C4-44FC-8BF5-C7DF9393AB73}"&lt;BR /&gt;var deviceClass = FeatureSetByName($datastore, "CommunicationsJunctionObject",['room'],false);&lt;BR /&gt;var devicesRows = Filter(deviceClass, "GLOBALID = &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/639924"&gt;@test&lt;/a&gt;");&lt;BR /&gt;return{"errorMessage":"FeatureSetByAssociation: "+first(devicesRows)};&lt;/P&gt;&lt;P&gt;the second output&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mohamed_Gamal_1-1675669155723.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/62142iD4BC1CEEF70B3D51/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mohamed_Gamal_1-1675669155723.png" alt="Mohamed_Gamal_1-1675669155723.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 07:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255247#M65140</guid>
      <dc:creator>Mohamed_Gamal</dc:creator>
      <dc:date>2023-02-06T07:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Profile Variable $Map is Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255251#M65142</link>
      <description>&lt;P&gt;To post code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1674589814049.png" style="width: 546px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61109iE6E36886309482F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="JohannesLindner_0-1674589814049.png" alt="JohannesLindner_0-1674589814049.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1674589827880.png" style="width: 477px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61110i9AA607855960C6E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="JohannesLindner_1-1674589827880.png" alt="JohannesLindner_1-1674589827880.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;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to filter the database by using profile variable $Map in ArcGIS Pro Attribute Rules&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;You can't use $map in attribute rules. Attribute rules work on the database level and can be triggered from different maps (or even without a map at all), so it doesn't make sense to rely on a featureset in a specific map.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Instead, use $datastore if the featureset is in the same database. If not, you have to publish it and load it in using &lt;A href="https://developers.arcgis.com/arcade/function-reference/portal_functions/#featuresetbyportalitem" target="_self"&gt;FeaturesetByPortalItem()&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I want only to get the field room from this table, but when printing the results all fields are there&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;You return the whole feature, so every field is printed. Instead, return only a specific field:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var test="{4EC98101-67C4-44FC-8BF5-C7DF9393AB73}"
var deviceClass = FeatureSetByName($datastore, "CommunicationsJunctionObject");
var devicesRows = Filter(deviceClass, "GLOBALID = &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/639924"&gt;@test&lt;/a&gt;");
var device = First(devicesRows)
var room = IIf(device == null, "nodevice found", device.room)
return{"errorMessage":"FeatureSetByAssociation: " + room};&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Feb 2023 08:05:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255251#M65142</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-02-06T08:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Profile Variable $Map is Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255252#M65143</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Johannes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Thanks for your attention and your fast reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regarding my second question, I know how to print a specific field from the feature my question was about, I had read in the documentation that specifying specific fields to feature class or table is making performance faster, so I thought the object returned from this line should only contain room field.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var deviceClass = FeatureSetByName($datastore, "CommunicationsJunctionObject",['room'],false);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 08:20:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255252#M65143</guid>
      <dc:creator>Mohamed_Gamal</dc:creator>
      <dc:date>2023-02-06T08:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Profile Variable $Map is Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255284#M65144</link>
      <description>&lt;P&gt;Ah, I see now that I misunderstood your second question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see this behavior in a file gdb. While the Console() command ouputs the right message (empty geometry and only one field [plut OBJECTID]), the error message prints the complete feature, although I didn't load the geometry and the other fields.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fs = FeatureSetByName($datastore, "TestLines", ["IntegerField"], false);
Console(First(fs))
return {errorMessage: Text(First(fs))}&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1675686379155.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/62153iF3329094678BC378/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_1-1675686379155.png" alt="JohannesLindner_1-1675686379155.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_2-1675686509985.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/62154i0D51B795A73B8023/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_2-1675686509985.png" alt="JohannesLindner_2-1675686509985.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;In an Enterprise GDB, it works as expected:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fs = FeatureSetByName($datastore, "Bauwerke", ["BauwerkID"], false);
Console(First(fs))
return {errorMessage: Text(First(fs))}&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1675686241629.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/62152i630629467C3C74C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1675686241629.png" alt="JohannesLindner_0-1675686241629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_3-1675686698218.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/62156iE66376FB070A1B3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_3-1675686698218.png" alt="JohannesLindner_3-1675686698218.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/346994"&gt;@HusseinNasser2&lt;/a&gt;&amp;nbsp;, any insights?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 12:35:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255284#M65144</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-02-06T12:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Profile Variable $Map is Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255288#M65147</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;SPAN&gt;Johannes it was a fruitful discussion.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 12:51:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255288#M65147</guid>
      <dc:creator>Mohamed_Gamal</dc:creator>
      <dc:date>2023-02-06T12:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Profile Variable $Map is Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255329#M65150</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294341"&gt;@JohannesLindner&lt;/a&gt;&amp;nbsp; Can you try the filegdb case with Pro 3.1 Beta if you have access?&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a known issue where Arcade might sometime fetch all the fields even a subset is provided.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:11:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255329#M65150</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2023-02-06T15:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Profile Variable $Map is Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255331#M65152</link>
      <description>&lt;P&gt;Unfortunately, I don't have access to Pro 3.1 Beta version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:08:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255331#M65152</guid>
      <dc:creator>Mohamed_Gamal</dc:creator>
      <dc:date>2023-02-06T15:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Profile Variable $Map is Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255342#M65153</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/346994"&gt;@HusseinNasser2&lt;/a&gt;&amp;nbsp; I don't have access to the beta. The example above was done in 3.0.3&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:35:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255342#M65153</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-02-06T15:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Profile Variable $Map is Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255356#M65156</link>
      <description>&lt;P&gt;No worries, I confirmed this is fixed in Pro 3.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HusseinNasser2_0-1675696402487.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/62162iD15303E45CC6E056/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HusseinNasser2_0-1675696402487.png" alt="HusseinNasser2_0-1675696402487.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1255356#M65156</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2023-02-06T15:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Profile Variable $Map is Not Found</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1402554#M81123</link>
      <description>&lt;P&gt;We have been able to use the $map to do the following in AGOL, but our need is for auto-filling certain attributes in Pro as well as in AGOL.&amp;nbsp; Can you use that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/portal_functions/#featuresetbyportalitem" target="_self" rel="nofollow noopener noreferrer"&gt;FeaturesetByPortalItem()&lt;/A&gt; variable to connect to other FCs in other databases on your Portal for use in Intersect and Nearest Neighbor Attribute rules for use in Pro?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 12:51:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/profile-variable-map-is-not-found/m-p/1402554#M81123</guid>
      <dc:creator>GelcysWilliams</dc:creator>
      <dc:date>2024-03-29T12:51:28Z</dc:date>
    </item>
  </channel>
</rss>

