-
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…
-
Question about future AI capabilities for ArcGIS API for Python (Agentic GIS workflows)
Hello everyone, Recently I noticed that the ArcGIS Maps SDK for JavaScript has started introducing AI-related components and integrations that help developers build AI-assisted web mapping applications. These capabilities are very interesting and open new possibilities for building intelligent GIS applications. This made…
-
Bug? Features with GUIDs Don't Display on Map Print
I'm trying to use the Python API to create a temporary map, add a single point feature, then "print" (export) to file. My problem is that when I print the map, the feature doesn't appear. However, if I save the map and open it in a browser, the feature is visible. I think I've tracked down the behavior causing this: adding…
-
How to add actions in new StoryMaps using python API
I am trying to convert some existing storymaps, and I'm using the converted posted here; https://www.arcgis.com/home/item.html?id=bc35e93d5d374e1a9c3583be0cc9f1d7#overview This converter works, but it strips any html markup in text, and notably it strips story actions. I'm trying to add these back using the python API, but…
-
ArcGIS Pro - Python Toolbox
Hello everyone, Hi, I'm Nur from Malaysia. I'm a beginner in Python and currently experimenting with building a Python toolbox to automatically calculate yearly forest cover changes in my region. I created the script with help from ChatGPT. When I run the tool, the analysis starts but I get the following error message:…
-
Unable to Retrieve Local Issuer Certificate
Hi, When using ArcGIS API for python to connect to our enterprise portal, after setting verify_cert to False, I receive an exception that our local issuer certificate cannot be retrieved, here's the exception in question: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate…
-
Issue Cloning ArcGIS Pro 3.5.2 Python Environment - InvalidArchiveError
Hi all, I’m encountering an issue while trying to clone the ArcGIS Pro 3.5.2 Python environment using the Package Manager on a fresh Windows install. After installing ArcGIS Pro 3.5, updating to 3.5.2, and adding deep learning essentials (all without errors), I attempted to clone the arcgispro-py3 environment. However, I…
-
Error when using upload function to migrate local Experience to Enterprise Portal
I need to migrate many Experience Builder Developer applications to our new Enterprise Portal and thought I found a somewhat automated approach using ArcGIS API for Python. https://developers.arcgis.com/python/latest/guide/experience-builder-workflows/ The upload function, however, is throwing an error and I can't make any…
-
how do i paste OAuth2 Approval code into python toolbox
I created a python toolbox with the following code: from arcgis.gis import GIS gis = GIS("my portal url", client_id='my client id') When I run the toolbox, a browser pops up with a OAuth2 Approval code which is expected. (see screenshot). The question is how can I paste that code back into my running toolbox?
-
Can not add labels to layer using new ArcGIS API for python 2.4.0 by wmap.content.update_layer
I have recently upgraded ArcGIS API for python from 2.3.0 to 2.4.0 and found out that Map.content.update_layer() doesn't work with the old labeling_info json. There's no error while running the code, but it just doesn't do anything at all to web map. Here is the code for 2.3.0: target_map_item =…
-
Uploading an Experience created/downloaded using Dev Edition to Portal using Python API
When using the latest Dev Edition of ExB, does the upload python API function work if the Enterprise ExB version is not the same? I'm curious about how the widgets (ie. Attribute Table) are different in 11.3 vs 11.4 and whether users would be able to open and edit the app once it's published and still have the latest and…
-
CalculateField Expression Not Working
I am new to ArcGIS and the ArcPY Module; recently I've run into an issue with ArcPY losing resolution to an object (a feature class) that I know exists. Error: name '<variable name>' is not defined (where <variable name> is the object/feature class to which I'm referring). The '<variable name>' can be accessed prior to the…
-
Copy Pop-ups Between Web Map Layers help (2.3 to 2.4 Update)
Hi Everyone, Over the past year or two I've been using an older script posted that copied popups between webmap layers. See the script below. # This script assigns a pop up from one web map layer (source) to another web map layer (target). # User to provide the following inputs: # web map 32-character id for both the…
-
How to access data in a map using Python?
Hello, I want to access data inside https://calrecycle.maps.arcgis.com/ using Python. Is there any sample code that does something like this? Regards Nagesh
-
temp1 = Templates.MONITOR
Greetings, The ESRI "Working with Web Experiences in the Python API" in Class Basics. It states the following code snipit. # import the module from the apps folder, and establish a GIS connection. from arcgis.apps.expbuilder import WebExperience from arcgis.gis import GIS gis = GIS(profile="your_online_profile") # template…
-
Working with Local Experiences - portalURL
Greetings, I am using the ESRI Working with Experience Builder. I am trying to upload the local_exp (EXB web app) to AGOL. Not transfer another EXB from Portal to AGOL. Can this be done using new_item = local_exp.upload()?? The script is craching at the new_item = local_exp.upload( The script is: local_exp =…
-
Working with Local Experiences - local_path
Greetings, In the Working with Local Experiences Python sample. Working with Web Experiences in the Python API | ArcGIS API for Python local_path = '/computer/path/to/config.json' My windows path = C:/EXB_Repo/AGOL/layers/v3.zip/cdn/4/config.json When I paste C:\EXB_Repo/AGOL/layers/v3.zip/cdn/4/ in File Explorer, it opens…
-
EXB .zip creates Draft, Not Published
I used a file = gis.content.add() example to add a EXB.zip to AGOL. The script worked, but I needed to Publish the EXB App. I am only getting a Draft now, not a Published EXB App. I cannot work out why, any suggestions would be appreciated. I cannot do Save or Publish?? The code is: ### Data layers=r"C:\EXB\v3.zip" ###…
-
Clone_items() No Longer Cloning Dashboards
I have a simple cloning Notebook to clone items from one account to another. This has worked well for quite some time. Recently I noticed it will clone webmaps, hosted feature layers, and Survey123 forms, but will no longer clone Dashboards. I am seeing this error: TypeError: '>=' not supported between instances of 'str'…
-
Update Cloned EXB App
Greetings, I can clone A EXB webapp to B EXB webapp. A EXB ID is 0fbeb86981414ce6b1eced19cf4f6c4a B EXB ID is 0fbeb86981414ce6b1eced19cf4f6c4ab When A EXB is updated is it possible to update B EXB, keeping the ID? So when B EXB is updated it keeps the ID = 0fbeb86981414ce6b1eced19cf4f6c4ab Clone A version 2 >> B version 2…
-
Automating Release Process for Experience Builder App
How can I automate the Dev>Production promotion process for a map-centric Experience Builder app where the Production version uses different data from the Dev version? --- Using Python API 2.3.0, AGOL Map Viewer, and AGOL Experience Builder (not Developer Edition) --- I'm building an Experience Builder app that will be…
-
How to Set up Python/ArcPy with ArcGIS Pro and Visual Studio
Good afternoon, I am looking for information about how to set up Python/ArcPy with ArcGIS Pro and Visual Studio Thanks
-
Using Python to identify Map objects used in Esri ArcGIS Enterprise Portal or AGOL Web Applications?
Hi! I'm trying to list the feature layers shown in each map from every web application, dashboard, and storymap on my Enterprise Portal. Is there a way to retrieve all the map objects that belong to an app? Something like this, maybe?: from arcgis.gis import GIS from arcgis.mapping import WebMap gis =…
-
Python Pro does not allow to truncate a feature class
Good afternoon, We converted a Python script from ArcGIS 10.7.1 to Python Pro. Now when we try to truncate a feature class we get the following error message: Python Error occurred ERROR 160592: Truncation not allowed while editing. Truncation not allowed while editing. Failed to execute (TruncateTable). It looks like…
-
Arcgis command prompt
I try to clone environment on conda(arcgispro-py3) but stopped it, because it took so much memory. So the environment on conda doesn't fully been created but the memory on my disk decrease. As I understand some packages clones and they took the memory. How I can delete them and return my memory on disk?