<?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: Featuresetbyportal not working on Feature Layer (hosted) in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/featuresetbyportal-not-working-on-feature-layer/m-p/1564393#M90790</link>
    <description>&lt;P&gt;I am logged into my organizational portal on Pro. I am trying to use the field calculator on layers I added to the map from my organizations portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Again!&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 21:15:48 GMT</pubDate>
    <dc:creator>Strata_ChrisG</dc:creator>
    <dc:date>2024-12-03T21:15:48Z</dc:date>
    <item>
      <title>Featuresetbyportal not working on Feature Layer (hosted)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/featuresetbyportal-not-working-on-feature-layer/m-p/1564286#M90774</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am currently trying to pull data from a hosted feature layer into another hosted feature layer using the &lt;FONT color="#339966"&gt;FeatureSetByPortalItem&lt;/FONT&gt; function. I run the formula as:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#33CCCC"&gt;var &lt;/FONT&gt;p = &lt;FONT color="#339966"&gt;Portal&lt;/FONT&gt;("&lt;FONT color="#FF6600"&gt;https://********.maps.arcgis.com&lt;/FONT&gt;");&lt;BR /&gt;&lt;FONT color="#33CCCC"&gt;var&lt;/FONT&gt; features = &lt;FONT color="#339966"&gt;FeatureSetByPortalItem&lt;/FONT&gt;(p, "&lt;FONT color="#FF6600"&gt;itemid&lt;/FONT&gt;",layerid);&lt;/P&gt;&lt;P&gt;However when I run it it gives me the error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;Invalid expression.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;Error on line 2.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;Object not found "layer name"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I was able to get the &lt;STRONG&gt;&lt;U&gt;&lt;EM&gt;item id&lt;/EM&gt;&lt;/U&gt;&lt;/STRONG&gt; from the layer page in my organizations &lt;EM&gt;AGOL&lt;/EM&gt; page and grabbed the &lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;layer id&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt; from copying the features path (in the table of contents) in &lt;EM&gt;ArcGIS Pro&lt;/EM&gt; and then opening it in notepad on my desktop.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Not too sure where it is I am going wrong here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 19:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/featuresetbyportal-not-working-on-feature-layer/m-p/1564286#M90774</guid>
      <dc:creator>Strata_ChrisG</dc:creator>
      <dc:date>2024-12-03T19:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Featuresetbyportal not working on Feature Layer (hosted)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/featuresetbyportal-not-working-on-feature-layer/m-p/1564337#M90782</link>
      <description>&lt;P&gt;The &lt;STRIKE&gt;layer ID&lt;/STRIKE&gt; item ID refers to the ItemID of the Feature Service in your Content, it's independent of Pro.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1733257409818.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120804iB1F5E6CFB34C2682/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1733257409818.png" alt="jcarlson_0-1733257409818.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Layer ID is whatever is after /FeatureServer/ in the service URL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 20:46:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/featuresetbyportal-not-working-on-feature-layer/m-p/1564337#M90782</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-12-03T20:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Featuresetbyportal not working on Feature Layer (hosted)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/featuresetbyportal-not-working-on-feature-layer/m-p/1564353#M90787</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have the formula as:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;var&lt;/FONT&gt; p = &lt;FONT color="#339966"&gt;Portal&lt;/FONT&gt;('&lt;FONT color="#FF0000"&gt;&lt;A href="https://myorganizationurl.arcgis.com" target="_blank" rel="noopener"&gt;https://myorganizationurl.arcgis.com&lt;/A&gt;&lt;/FONT&gt;');&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;var&lt;/FONT&gt; features = &lt;FONT color="#339966"&gt;FeatureSetByPortalItem&lt;/FONT&gt;(p, '=&lt;FONT color="#ff0000"&gt;layerid&lt;/FONT&gt;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But get the following message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Invalid expression.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Error on line 2.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Portal item not found =layerid&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the ESRI arcade documentation it says that in the syntax that the layerid and itemid are two separate values. Maybe I am still missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference, this data is a hosted feature layer (uploaded by itself as a layer) to my organizations AGOL account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 01:47:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/featuresetbyportal-not-working-on-feature-layer/m-p/1564353#M90787</guid>
      <dc:creator>Strata_ChrisG</dc:creator>
      <dc:date>2024-12-04T01:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Featuresetbyportal not working on Feature Layer (hosted)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/featuresetbyportal-not-working-on-feature-layer/m-p/1564362#M90788</link>
      <description>&lt;P&gt;Whoops, sorry about that, I think I misread your initial post. I amended my response.&lt;/P&gt;&lt;P&gt;Your reply has a different error message in it. Are you logged into the Portal on Pro? Is it shared appropriately?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 20:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/featuresetbyportal-not-working-on-feature-layer/m-p/1564362#M90788</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-12-03T20:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Featuresetbyportal not working on Feature Layer (hosted)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/featuresetbyportal-not-working-on-feature-layer/m-p/1564393#M90790</link>
      <description>&lt;P&gt;I am logged into my organizational portal on Pro. I am trying to use the field calculator on layers I added to the map from my organizations portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Again!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 21:15:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/featuresetbyportal-not-working-on-feature-layer/m-p/1564393#M90790</guid>
      <dc:creator>Strata_ChrisG</dc:creator>
      <dc:date>2024-12-03T21:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Featuresetbyportal not working on Feature Layer (hosted)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/featuresetbyportal-not-working-on-feature-layer/m-p/1564868#M90845</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I was finally able to get it to work my using&amp;nbsp;&lt;FONT color="#FF0000"&gt;'&lt;A href="https://www.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;'&lt;/FONT&gt; instead of my organizational url. However, this only works for two of my layers that I am using. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;The rest of my feature layers return:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Invalid expression.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Error on line 3.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Portal layer not found 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;When I use my organizational portal instead of '&lt;A href="https://www.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;') I get:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Invalid expression.&lt;BR /&gt;Error on line 3.&lt;BR /&gt;Portal item not found '64b7897d98fa89dfdfada'.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;All my hosted feature layers where uploaded the same so I am not too sure what might have been the issue. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks again for all your help so far! I honestly thought I had it once I ran it on one hosted feature layer until I got the errors on another layer.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 20:30:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/featuresetbyportal-not-working-on-feature-layer/m-p/1564868#M90845</guid>
      <dc:creator>Strata_ChrisG</dc:creator>
      <dc:date>2024-12-04T20:30:40Z</dc:date>
    </item>
  </channel>
</rss>

