-
Automating ArcGIS Notebooks
Hello, for context I am currently developing a way to have records automatically added to a "Master Results Table". I am using a feature layer in AGOL that has tasks enabled through Field Maps Designer. Within the EsriTask workflow, the field team will be required to complete a Survey123 form. There is n many Survey123…
-
FeatureLayer.query() giving Exception - TypeError: '>=' not supported between instances of 'int' and 'NoneType'
While querying Feature Layer getting Exception as <em><strong>"</strong></em><em>TypeError: '>=' not supported between instances of 'int' and 'NoneType' "</em> But the same outStatistics value and where clause is working fine in the REST end point in the browser, and giving the expected result. <em> </em> // Below code is…
-
FeatureLayer.query() not returning a feature set
Hello, I am looking to create a spatially enabled dataframe from a FeatureSet with the ArcGIS API for Python. I have always: * Created a FeatureLayer object * Used .query(where="whatever") to return a feature set, * Used the .sdf property to create the dataframe. Today the sdf property doesn't work, .query() is returning a…
-
arcpy.da.TableToNumPyArray
Has anyone else noticed that when using arcpy.da.TableToNumPyArray on a joined tabled that has a definition query the resultant imported table did not fully reflect the definitionQuery?
-
clone_items() fails cloning hosted feature layer
First, a couple bullets with some basic information * ArcGIS Pro version: 3.6.3 * Source: ArcGIS Enterprise organization * Target: ArcGIS Online organization * Cloning between same source/target organizations worked previously with another Feature Layer Collection. I'm trying to clone a Feature Layer with a Survey123 point…
-
Update feature geometry?
I have a script that is supposed to replace the geometry of a polygon with a new polygon constructed by reading some of its fields (minX, minY, maxX, maxY). I can do this with traditional arcpy, but I'm running into issues when trying to do it with the arcgis module. Specifically, I either get no edits to the geometry if I…
-
What is wrong with this code?
Good afternoon, I am trying to overwrite an AGOL hosted feature class with API Python and testing it from ArcGIS Pro Notebook. I am able to load the zipped FGDB in AGOL and overwrite the hosted feature class manually. When I try to do the same thing with my program, selecting the same zipped FGDB, I get the following error…
-
Which cell tag to use for AGOL Notebook parameters: injected-parameters or parameters?
The docs list two different cell tags to use when setting up a Notebook to use external parameters. In one place they say to use injected-parameters but in another they say to use parameters. After some experimentation I think parameters is correct when I'm calling the Notebooks from arcgis.notebook.execute_notebook(), but…
-
Expose ArcGIS Online Required and Suggested Metadata Elements Scores to API for Python
My organization is attempting to create an automated process using the API for Python to check items in our organization against our customized publishing guidelines (i.e., summary, tags, categories, etc). Our process is similar to this example, but much more in-depth and linked to a live dashboard to monitor…
-
Error on code that was working three weeks ago: (gis.content.get(item_id)).layers[0] ("module 'arcgis.layers' has no attribute '_ogc' ")
I am calling in a layer from an item ID by using the arcgis module "layers". If I just pull in the item using gis.content.get(item_id), the item shows up fine. When I try to get to the layers though, I get the error module 'arcgis.layers' has no attribute '_ogc' . This was working for a long time, and is my go-to method…
-
Consuming ArcGISPro -py3 scripts for Spatial Projections
Hello All. I have a web application hosted on a windows server with ArcGIS windows 12 enterprise( server) that conumes the arcpy scripts for SpatialReference and project to WGSSpatialReference. Will every user on the web application initiating projection of a set of coordinates( happens in the background without generating…
-
FeatureLayerCollection.replicas.create always returns the correct tables but 0 records in the tables
Hi there. I have a python script that attempts to export a hosted feature service as a file geodatabase using the python api's featurelayercollection.replicas.create() method. I am running python 3.11.10 and arcgis api 2.3.0 The service details: - One feature layer (id: 0, geometry type: point) with attachments - One…
-
Issue with the Tutorial: "Classify land cover to measure shrinking lakes"
Classify land cover to measure shrinking lakes | ArcGIS API for Python | Esri Developer The code extracting the sentinel fata in this tutorial is not working for me. sentinel2016 = gis.content.get("a264d1eaa8bd4ff2a0a1e27b59daa7d3") sentinel2017 = gis.content.get("ea192d03d1324c62a2cb91e26e3a0ece") These Item IDs do not…
-
Issue with the deep learning tutorial: "Detecting Swimming Pools using Satellite Imagery and Deep Learning"
Detecting Swimming Pools using Satellite Imagery and Deep Learning | ArcGIS API for Python | Esri Developer There is an issue in this tutorial with the following snippet of code: ds = analytics.get_datastores(gis=gis) ds.search() where the .get_datastores() function returns a Nonetype, so ds.search() is not a valid call.…
-
Issue converting H3 cell boundary WKT to geometry with GeoAccessor.set_geometry()
H3 polygons work at resolution 8 but become empty at resolution 9+ Environment * ArcGIS Pro 3.6 * ArcGIS API for Python 2.4.2 * DuckDB 1.5.4 * DuckDB Spatial Extension * DuckDB H3 Extension * Python Notebook in ArcGIS Pro Description I found what appears to be a bug in GeoAccessor.set_geometry() when converting H3 cell…
-
Can view and assign licenses via the website, but not via the API
Hello, I'm working on a script to report add-on license assignments across multiple portals (both AGO and Enterprise) and am having issues with add-on extensions for ArcGIS Pro (e.g. Spatial Analyst). I'm also trying to avoid using a full admin account if possible, instead using a custom role. The issue is that I can…
-
ItemGraph Nodes of NoneType Items: How do I identify these programmatically?
I have successfully created an ItemGraph of my AGOL Organization. It is updated nightly. (Thanks to this notebook, and community feedback.) I have been trying to Navigate the resultant ItemGraph with varying degrees of success. I also have a List of AGOL Item IDs from another tool, that I was trying to use with the…
-
Issue with pydantic
Hi everyone, I'm migrating from ArcGIS Pro 3.1 to 3.4 and updating my code from `arcgis.mapping.WebMap` to `arcgis.map.Map` accordingly. **Environment:** - ArcGIS Pro 3.4 - arcgis 2.4.0 - arcgis-mapping 4.30.0 - Python 3.11 (conda env) - Windows 10 **The issue:** When instantiating `Map(item=webmap_item)`, I get the…
-
What are the ways to migrate built-In users from ArcGIS Enterprise portal 10.9.1 to 11.5?
We are planning to migrate from ArcGIS Enterprise 10.9.1 to 11.5. So What are the ways to migrate built-In users from ArcGIS Enterprise portal 10.9.1 to 11.5? Can we do it using: 1. Python Script? if yes what are dependencies to create a script? 2. Can we export built-in users from 10.9.1 and import the same in 11.5? 3.…
-
create_view is changing service definition on parent item
I am trying to create a hosted feature layer view that contains 2 out of 3 layers in a service. When I run create_view, my view is created correctly with 2 layers, but for some reason it is effecting the source item as well. When I go to the source item page, I only see two layers listed, however, all 3 layers are still…
-
Configure Layer Form based on Layer's Popup
My web map layers all have optimal popups configured, because this is done automatically using arcpy (with CIM), before the layers are automatically published from ArcGIS Pro to AGOL (using the same arcpy script that configures the popups). In the ArcGIS Online Field Maps Designer, I can interactively create nice forms for…
-
Extending Python API capability to create a Survey123 survey from an existing feature service and published using an existing .xlsform
See question posted here: Does the python Suvey 123 api support creating a n... - Esri Community
-
ArcGIS API For Python in Databricks Error
I'm trying to get ArcGIS API For Python in Databricks working with my organization's instance of Databricks on Azure. I realize that this is an error on the Databricks side to do with TLS/SSL configuration, but wondering if anyone has experienced something similar. Reproduction of Notebook cell and error as I'm not sure…
-
Snap Pour Points in ArcGIS Online notebook
I am trying to recreate the steps of watershed delineation in an AGOL notebook. I am using an "Advanced" notebook so I can use arcpy tools. I have a hosted feature layer for my pour points. I also have a hosted tile layer for my flow accumulation raster. I want to run Snap Pour Points tool using these two inputs, but I get…
-
Unexplained error when updating hosted feature layer domains: "{'code': 500, 'message': "ERROR: Domain does not exist: '㛨㫀ȃ'", 'details': []}"
I seem to have a solution for this, at least for the time being, but want to document this possible bug/unusual behavior. I wrote a script to update some domains of a hosted feature service on an Enterprise Portal, call it "Seed_Collection". My code (see attached example csv, names changed for privacy): import arcgis from…