-
Optimize ItemGraph dependency mapping for large organizations via bulk fetching, type routing, and direct REST parsing
Background TheItemGraphclass and the Admin Insights dependency notebook are excellent tools for mapping item relationships in ArcGIS Online. However, for medium-to-large organizations (2,000+ items), the current implementation becomes a severe operational blocker. A full dependency scan for ~2,500 items takes approximately…
-
ArcGIS Pro 3.7.3 Intermittently Fails to Start and Python Scripts Randomly Return Exit Code 246
I'm running into an intermittent issue with both ArcGIS Pro and Python scripts, and I'm curious if anyone else has experienced something similar. I have a relatively simple Python script that occasionally does nothing when executed. There are no obvious errors, and the script simply fails to launch or run. If I retry…
-
Use ArcGIS API for Python to configure a web map layer's Form based on 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 these…
-
Python API Newbie needs syntax help!
I am relatively new to the Python API and need some help modifying a Notebook. Code is below. Line 42 has no impact on the target dataset and I cannot figure out why. Hopefully I've included enough of the notebook that someone can deduce my error. There's a bunch of stuff that happens before this cell, but I don't think…
-
Possible to edit features with API key authentication
I've been trying to set up a Python script that authenticates to AGOL with an API key and updates a featurelayer (delete, add). I can acccess the featurelayer but when I try to truncate it I get a 403 error: Exception: User does not have permissions to access this service. User does not have permissions to access this…
-
How to clear selection in arcpy?
This seems like a simple question, however I have found an interesting issue with the following code, both in a geoprocessing tool and in a notebook: import arcpy TARGET_LAYERS = [r"UN\Electric Line", r"UN\Equipment"] for src in TARGET_LAYERS: arcpy.management.SelectLayerByAttribute(src, "CLEAR_SELECTION") This code as…
-
Updating attribute values for hosted feature layer using ArcPy vs ArcGIS API for Python?
Hi, I'm working within a Python Notebook in ArcPro and I'm wanting to update attribute values for a subset of my feature layer and I'm considering two approaches. I identified the features I want to update attributes value for by first using SelectLayerByAttribute and then SelectLayerByLocation. From there I feel I could…
-
Publish reference feature service to enterprise
Hi All, I'm trying to replicate the process normally done in Pro, using Publish Web Layer referencing registered data but instead using Python. I can create a new hosted feature service from data stored in out SDE database but I don't want to host the data I want to reference data in our SDE database, as running the…
-
Layer.calculate occasionally hangs
I have a python script that runs every hour or so as a windows scheduled task and does some updates to an ArcGIS Online hosted feature layer using the layer.calculate function. Every so often (once every couple of days) it hangs. The layer it hangs on only has 1600 records and the query reduces that to 26 records so it…
-
spatial.join silently returns 0 rows if a point has 'NaN' coordinates (arcpy engine)
Describe the bug One point with 'NaN' coordinates makes spatial.join return 0 rows with no error when arcpy is the geometry engine. full_extent also returns nan. With shapely as the engine, the same data raises an error. ESRI REST Service queries can return 'NaN' in geometries. To Reproduce Steps to reproduce the behavior:…
-
Thank You Python API Community - v2.4.4
With the release of ArcGIS API for Python 2.4.4, we want to extend a huge thank you to our community. Your feedback and active participation are what truly shape the evolution of this product. For those new to the ecosystem, our public GitHub repository is your go-to hub for samples, tutorials, and documentation. Your…
-
Arc Py GIS
Hi, My name Kelvin I am look for the MOOC class on this subject , can some one help
-
Python Toolbox: Value Table Parameter nesting, defaults?
Well, as much as I normally try to avoid them, I have a project where a value table makes sense. However, they suuuuuuck to figure out and I'm hoping someone has already solved the following questions: * Can you set a persistent default for a column in a value table parameter? * Can you nest a value table inside a value…
-
Identical parameters work in geoprocessing tool, but not in a notebook or the python window
I have success when I run the Create TIN geoprocessing tool in ArcGIS Pro using a contour line input (first image). However, if I use the tool's Copy Python Command (second image), and use that code verbatim in an ArcGIS notebook, or in ArcGIS Pro's Python window, the process fails with the message ERROR 050035: No…
-
Best Process for Automating a Custom Locator Update
Hi ESRI Community! I have a layer in my SDE containing consumer addresses that I would like to make into a locator for use in my Enterprise 10.9.1, although we are upgrading to 11.5 at the end of the year. This layer frequently updates, and ideally our end users would like to see this locator refresh once a week, on top of…
-
Count Points in Polygons using the ArcGIS API for Python
https://youtu.be/Wtrsev5v30E Spatial analysis often involves answering a deceptively simple question: How many features are located within each area? How many properties are in each district? How many trees are in each park? How many incidents occurred in each administrative boundary? How many inspection points fall within…
-
Enable the FeatureLayer.calculate() method in the ArcGIS API for Python to accept Arcade expressions for calculating attribute values.
Current limitation The FeatureLayer.calculate() method currently supports calculating field values using SQL expressions or scalar values. However, there is no direct way to apply an Arcade expression through this method. This creates a gap for workflows that rely on Arcade for attribute calculation logic, particularly…
-
Unable to authenticate ArcGIS Online dataset for use in Arpy geoprocessing tool
I have a hosted feature service on arcgis.com that is not publicly shared and I need to read the data from a python script. The below script has been running without issue until recently. I now get a 000732 error ("Dataset does not exist or is not supported") when the MakeFeatureLayer_management tool executes. I printed…
-
Open-source Forestry Toolkit for ArcGIS Pro – fieldwork, drone mapping, fire hotspots, and forest analysis
Hi everyone, I’d like to share a small open-source project I’ve been working on called Forestry Toolkit, an ArcGIS Pro add-in built around practical forestry and fieldwork workflows. I originally started it to simplify some of the repetitive GIS tasks I encounter in forestry work, and it gradually grew into a collection of…
-
Install Python clone with ArcGIS Pro by default
We're currently on ArcGIS Pro 3.7.1 and are still encountering challenges with Python environment cloning. This has been an issue since ArcPro began. Cloning from within ArcGIS Pro does not appear to work reliably in our environment. The process starts, creates a new folder, and then completes almost immediately without…
-
ArcGIS Pro MCP
Dear all, I have released a free, open-source ArcGIS Pro add-in that lets an AI assistant work on the project you have open — style layers, run geoprocessing, query attributes, build layouts — by asking in plain language. "Colour the provinces by area, pastel red through green." "Which are bigger than 15,000 km²? Zoom to…
-
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…
-
PRJ Not Created with DefineProjection_management
We have a python script that imports AutoCAD DWG files to SDE feature classes. These DWG files are created by various 3rd parties and are transmitted to us for import. One of the steps in our import process is to create a PRJ file for the DWG. Mostly, this works fine but about 5% of the DWG's have a problem when trying to…