arcgis python api not finding feature layers

472
1
Jump to solution
07-30-2021 08:47 AM
Labels (2)
RWTQTST
New Contributor

I am using the arcgis python api to download feature layers from the account.  Sometimes the api does not find/recognize the feature layer.

Here is the layer on AGOL

AGOL_layer.PNG

However when I run the code it does not find this feature layer, only some shapefiles. There is only a _P2 feature layer discovered.

python_code.PNG

 

I'm trying to understand this behavior in order to automate downloading layers from ArcGIS Online. Any feedback is appreciated.

0 Kudos
1 Solution

Accepted Solutions
DavidPike
MVP Frequent Contributor

The default return is 10 items Solved: Re: gis.content.search doesn't find all the items? - Esri Community

gis.content.search(f'name:{TID}', max_items=1000)

View solution in original post

0 Kudos
1 Reply
DavidPike
MVP Frequent Contributor

The default return is 10 items Solved: Re: gis.content.search doesn't find all the items? - Esri Community

gis.content.search(f'name:{TID}', max_items=1000)
0 Kudos