3 votes
Accepted

Access ArcGIS Python environment, installed via in Anaconda Navigator, from .bat script in normal cmd window?

If you do not have ArcGIS Pro currently installed on your machine If you installed the arcgis library through conda but do not have ArcGIS Pro installed on yout machine, you need to call the activate....
user avatar
  • 1,777
2 votes

Upload shapefiles to ArcGIS Online using Python script on computer without ArcGIS Pro installation

It seems likely your code requires the ArcGIS Python API. (This is included with ArcGIS Pro's Python). As long as your code does not require anything arcpy, you can migrate your code and workflow to a ...
user avatar
  • 15.6k
1 vote

Use current password in arcgis.gis

Yes, there is a specific authentication scheme just for ArcGIS Pro print("\n\nActive Portal in ArcGIS Pro") gis = GIS("pro")
user avatar
  • 15.6k
1 vote
Accepted

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,093
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
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
  • 53.4k
1 vote
Accepted

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,093
1 vote
Accepted

Export ArcGIS spatially enabled dataframe to feature class

I had this issue after updating ArcGIS Pro and arcpy to v2.9. Basically if the SEDF did not have a geometry column named "SHAPE" (all caps) then the ValueError: Length mismatch: Expected ...
user avatar
  • 68
1 vote

Updated JSON not showing up in feature layer properties on ArcGIS Online

After checking with Esri they were able to point this out to me: from arcgis.features import FeatureLayerCollection gis = GIS('portal url', 'user name', 'password') search_result= gis.content.search(&...
user avatar
  • 1,465
1 vote
Accepted

ArcGIS Python API "unable to generate token" upon login attempt

Found what I was doing wrong. Just found out that the username is case sensitive. If the username is "User" then specifying username as "user" will not work.
user avatar
  • 81
1 vote

Downloading ArcGIS Online feature service using ArcGIS Python API

You're creating an anonymous connection to ArcGIS.com, then the code is attempting to generate a FileGDB. As you're anonymous, the FileGDB you're requesting has no place to go. If you have an account ...
user avatar
  • 15.6k
1 vote

Overwriting Feature Layer on ArcGIS Online using ArcGIS Python API

This error message is generally received when you attempt to overwrite a service that has had its name changed in ArcGIS Online after publishing. For example, if I publish a service with the name 'A', ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible