New answers tagged

1 vote

ArcGIS Online User object 'report' method/function errors

I found that the report function was added at 2.0.1. My arcgis package version was 1.9.1. Upgrading the version enabled the report function for a User object. For added context, my ArcGIS Pro is ...
user avatar
  • 1,048
0 votes

users.search resturns only Creator users in ArcGIS Python API

from arcgis.gis import GIS ## connect to portal portal = GIS("home") ## get all users as objects in a list users = portal.users.search(max_users=1000) ## iterate through the list and ...
user avatar
  • 1,048
0 votes

IndexError: list index out of range - item report ArcGIS API for Python

I would suggest adding try/except statements to highlight which items the usage method is failing on. Maybe certain items do not contain this information and hence the index error. try: df_usage = ...
user avatar
  • 1,048
1 vote
Accepted

What does 'mode' mean in and AGOL WebMap operational layer properties?

The "mode" property is specific to feature layers, relates to how features are retrieved from the server in some web clients, and is documented at: https://developers.arcgis.com/web-map-...
user avatar
1 vote

Randomly select points in a feature layer

The below will select a user defined number of level 1 and level 2 records at random from the dataset, just update the num_level1 and num_level2 variables. I have commented the code for ease of use. ...
user avatar
  • 1,048
1 vote
Accepted

out_field in ArcGIS Python API returning unwanted fields

Yes, that is expected behaviour for an SeDF, it must have id and geometry fields and the examples in the documentation show this. Just turn it into a regular pandas dataframe: pd.DataFrame(sdf["...
user avatar
  • 52.8k
0 votes

Filtering by folder or authoritative maps when using gis.content.search

The code for Authoritative is: query="contentstatus:org_authoritative" Did you get this to work?
user avatar

Top 50 recent answers are included