Select to view content in your preferred language

Hosted feature layer id not working in FeatureSetByPortalItem Function

89
0
12-04-2024 12:47 PM
Labels (2)
Strata_ChrisG
Emerging Contributor

Hello all,

I have recently run into an issue where I cannot connect to my hosted feature layers on my organizations portal. 

When I run the formula:


var p = Portal('https://stratanetworks.maps.arcgis.com')

var features = FeatureSetByPortalItem(p, '77y0uuuuhfdjfkdhf77fafdf')

 

It will work on two of my hosted feature layers but when I try to replace the itemID from another feature layer I get the error:

Invalid expression.
Error on line 3.
Portal item not found 77y0uuuuhfdjfkdhf77fafdf

 

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 (those whose itemID cannot be found) with the original data from the desktop GDB with no help.

 

Any help is appreciated!

0 Kudos
0 Replies