POST
|
Hi @padmalcom You can look into the arcpy installation in ArcGIS Enterprise for the Create mobile map package python tool Hope this helps.
... View more
06-18-2024
09:09 AM
|
0
|
0
|
119
|
POST
|
Hello @davedoesgis I'd be frustrated as well incurring these issues. I'm not able to reproduce the scenario you describe when testing with the API at 2.0.1 or the most recent release of 2.2. Using code similar to yours I was able to create views, update them with a definition query, then render them in both the Map Viewer and ArcGIS Pro with custom popups preserved. There appears nothing incorrect about the code to create the view. Are you able to create an environment with more recent releases of the api either 2.1 or 2.2 and test to see if you incur the same situation? Do you see this same behavior when creating a view based on any other Feature Layer item? If you want to investigate more in-depth as to what might be causing what you're observing, you could log an incident with Support who can look into the issue in detail.
... View more
10-05-2023
08:59 AM
|
0
|
0
|
1219
|
POST
|
It sounds you're encountering the Limitations of application credentials which do not allow updating. You can Application logins are limited in what they can do. You can use Pro authentication to accomplish your workflow: gis = GIS("pro")
... View more
07-18-2023
09:42 AM
|
1
|
0
|
509
|
POST
|
Hi Levon_H - I misstyped the code in my first code snippet. I'm sorry for my mistake - the correct snippet is below: from arcgis.gis import GIS
from arcgis.gis.nb._dataaccess import NotebookDataAccess
ago = GIS(profile="your_online_profile")
connected_user = gis.users.me
file_path="local/path/to/data/shpfile.zip"
nb_da_url = connected_user.generate_direct_access_url(store_type="notebook")
nb_daccess = NotebookDataAccess(url=nb_da_url["url"], gis=ago)
nb_daccess.upload(file_path) The generate_direct_access_url() method on a User object returns a Python dictionary with a key named url whose values is the organizational endpoint necessary to initialize a NotebookDataAccess object for uploading files to the ArcGIS Online files area. As you noted, the url is not to the notebook itself, but to a system administration endpoint for the uploading operation. Glad this worked - and sorry for the confusion. We'll work to adjust the documentation.
... View more
06-26-2023
09:44 AM
|
1
|
4
|
1381
|
POST
|
Hi Levon_H The Python API reference documentation currently does not provide an example of how to accomplish your workflow. Sorry for the confusion caused, and we'll update that documentation to provide an example. There is a method on the User class called generate_direct_access_url() that serves to provide the proper url argument to initialize a NotebookDataAccess object for loading files into the /arcgis/home directory. Here is a snippet to accomplish this. The following will create a subdirectory in home called notebookworkspace: from arcgis.gis import GIS
from arcgis.gis.nb._dataaccess import NotebookDataAccess
ago = GIS(profile="your_online_profile")
connected_user = gis.users.me
file_path="local/path/to/data/shpfile.zip"
nb_da_url = connected_user.generate_direct_access_url(store_type="notebook")
nb_daccess = NotebookDataAccess(url=nb_da_url, gis=ago)
nb_daccess.upload(file_path) Hope this helps.
... View more
06-14-2023
11:49 AM
|
1
|
0
|
1402
|
POST
|
Hi - Try entering the servergen parameter like this instead of as a dictionary in a list: servergen = sg
... View more
01-31-2023
10:52 AM
|
0
|
1
|
873
|
BLOG
|
Thank you so much to the MVPs who spend so much time and effort sharing their knowledge through the API for Python questions!
... View more
01-30-2023
09:33 AM
|
4
|
0
|
4737
|
POST
|
Hi @RogerAsbury - See the document here. Hopefully that helps.
... View more
09-20-2022
09:39 AM
|
0
|
0
|
615
|
POST
|
Hi @GloverG - I suggest you log an issue with Support about implementing something like this. The issue at this stage is outside anything the API for Python can address.
... View more
09-20-2022
09:07 AM
|
0
|
0
|
322
|
POST
|
Hi simo xu What version of Server are you publishing this service to? Can you outline exactly how the service is "published to the Federated ArcGIS server directly?" I want to follow the exact steps to test on a service published in the exact same manner.
... View more
03-11-2020
10:06 AM
|
0
|
0
|
2349
|
POST
|
Thanks for all this information, simo xu. To get an official bug report logged I suggest contacting support who can document the specific workflow. I'll look into investigating on a service published directly to a federated server rather than a hosted one and see what I can reproduce.
... View more
03-11-2020
09:02 AM
|
1
|
1
|
2349
|
POST
|
Hi simo xu I'm not seeing what you're describing using that last couple releases of the Python API. I tried this on a couple different layers, one small one, one larger one (not a huge feature layer, but the features contain a large number of vertices). Do you see this on any other polygon layer with an arbitrary geometry filter? Do you have a public-facing layer as Joshua Bixby suggests? Can you try explicitly adding the where clause to see if that works? "where='1=1'"
... View more
02-28-2020
02:49 PM
|
1
|
4
|
2349
|
POST
|
I'll look through this today, simo xu. Do you see the same results with 1.7.1?
... View more
02-28-2020
09:30 AM
|
0
|
5
|
2078
|
BLOG
|
The `gis.users.create()` method creates users for your Web GIS in ArcGIS Enterprise or ArcGIS Online. The recent update to ArcGIS Online introduced new parameters when creating users not yet implemented for users when created in Enterprise. The API for Python release 1.5.2 `create()` method tried to populate these new parameters when creating users in Enterprise, leading to an error. We logged BUG-000119265 to track the problem. We've caught the problem. We have containment. We've updated the `gis.users.create()` method with the API for Python version 1.5.3, which will be coming soon. The method now properly unpacks the parameters whether the `create()` method is run for Enterprise or ArcGIS Online. We've corrected it and are moving onward. Stay tuned for future releases full of great new functionality!
... View more
02-07-2019
10:30 AM
|
0
|
0
|
833
|
Title | Kudos | Posted |
---|---|---|
1 | 06-14-2023 11:49 AM | |
1 | 06-26-2023 09:44 AM | |
1 | 07-18-2023 09:42 AM | |
4 | 01-30-2023 09:33 AM | |
2 | 01-11-2019 03:06 PM |
Online Status |
Offline
|
Date Last Visited |
06-18-2024
05:32 PM
|