<?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 Hosted feature layer id not working in FeatureSetByPortalItem Function in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/hosted-feature-layer-id-not-working-in/m-p/1564878#M90847</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have recently run into an issue where I &lt;EM&gt;cannot connect&lt;/EM&gt; to my &lt;STRONG&gt;hosted feature layers&lt;/STRONG&gt; on my organizations portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the&lt;EM&gt; formula&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;var&lt;/FONT&gt; p = &lt;FONT color="#00FF00"&gt;Portal&lt;/FONT&gt;('&lt;FONT color="#FF0000"&gt;&lt;A href="https://stratanetworks.maps.arcgis.com" target="_blank"&gt;https://stratanetworks.maps.arcgis.com&lt;/A&gt;&lt;/FONT&gt;')&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;var&lt;/FONT&gt; features = &lt;FONT color="#00FF00"&gt;FeatureSetByPortalItem&lt;/FONT&gt;(p, '&lt;FONT color="#FF0000"&gt;77y0uuuuhfdjfkdhf77fafdf&lt;/FONT&gt;')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will work on two of my &lt;STRONG&gt;hosted feature layers&lt;/STRONG&gt; but when I try to replace the itemID from another feature layer I get the error:&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 item not found 77y0uuuuhfdjfkdhf77fafdf&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All my feature layers where uploaded the same way and have the same permissions so I don't know how to pinpoint the issue. I even overwrote the layers (&lt;STRONG&gt;&lt;U&gt;&lt;EM&gt;those whose itemID cannot be found&lt;/EM&gt;&lt;/U&gt;&lt;/STRONG&gt;) with the original data from the desktop GDB with no help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2024 20:47:25 GMT</pubDate>
    <dc:creator>Strata_ChrisG</dc:creator>
    <dc:date>2024-12-04T20:47:25Z</dc:date>
    <item>
      <title>Hosted feature layer id not working in FeatureSetByPortalItem Function</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/hosted-feature-layer-id-not-working-in/m-p/1564878#M90847</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have recently run into an issue where I &lt;EM&gt;cannot connect&lt;/EM&gt; to my &lt;STRONG&gt;hosted feature layers&lt;/STRONG&gt; on my organizations portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the&lt;EM&gt; formula&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;var&lt;/FONT&gt; p = &lt;FONT color="#00FF00"&gt;Portal&lt;/FONT&gt;('&lt;FONT color="#FF0000"&gt;&lt;A href="https://stratanetworks.maps.arcgis.com" target="_blank"&gt;https://stratanetworks.maps.arcgis.com&lt;/A&gt;&lt;/FONT&gt;')&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;var&lt;/FONT&gt; features = &lt;FONT color="#00FF00"&gt;FeatureSetByPortalItem&lt;/FONT&gt;(p, '&lt;FONT color="#FF0000"&gt;77y0uuuuhfdjfkdhf77fafdf&lt;/FONT&gt;')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will work on two of my &lt;STRONG&gt;hosted feature layers&lt;/STRONG&gt; but when I try to replace the itemID from another feature layer I get the error:&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 item not found 77y0uuuuhfdjfkdhf77fafdf&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All my feature layers where uploaded the same way and have the same permissions so I don't know how to pinpoint the issue. I even overwrote the layers (&lt;STRONG&gt;&lt;U&gt;&lt;EM&gt;those whose itemID cannot be found&lt;/EM&gt;&lt;/U&gt;&lt;/STRONG&gt;) with the original data from the desktop GDB with no help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 20:47:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/hosted-feature-layer-id-not-working-in/m-p/1564878#M90847</guid>
      <dc:creator>Strata_ChrisG</dc:creator>
      <dc:date>2024-12-04T20:47:25Z</dc:date>
    </item>
  </channel>
</rss>

