|
POST
|
Anyone figure out solutions to this: getting same errors with Pro 3.0 and Enterprise 10.9 and 10.9.1.
... View more
01-25-2023
07:05 AM
|
0
|
2
|
5868
|
|
POST
|
@OsamaOthman Did you ever resolve this issue? I am getting the same error with the most basic of script tools (in a Python toolbox).
... View more
01-25-2023
06:44 AM
|
1
|
0
|
2068
|
|
POST
|
I am using distributed collaboration between by Enterprise 10.9 and AGOL instance. I found some TileLayers on AGOL (not created within my organization) I would like to replicate by reference into my Enterprise. These TileLayers are shared anonymously/publicly, so are accessible by everyone. I know I can just add the tile service URL to my Enterprise instance, but I also want to make sure I replicate the metadata and item info if the owner updates that on AGOL, so have decided to go with Distributed Collaboration. Inexplicably, one of the TileLayers replicates to Enterprise correctly, but the other doesn't replicate at all, and I can't tell what might cause this inconsistent behavior. The item ID of the item that does replicate is ba711890a6f24720bf63a77c5aeb1e64, while the item ID of an item that won't replicate is 6ab79dc5de5743adb3e3b6e3c803aa59. I don't see any difference between the two items except the "size" of the map service, which shouldn't come into play since I am only replicating by reference and not trying to copy (which I couldn't anyway because it's a tile service). Anyone have any ideas here?
... View more
12-21-2022
06:32 AM
|
0
|
0
|
799
|
|
IDEA
|
Currently in order to publish a FeatureService (for editing, sync, extract, replication, etc.) by reference from an enterprise geodatabase, you need to also publish the associated MapService (enabling "feature service" in the process. However sometimes all we need is the FeatureService (e.g. for extract workflows with visualization on datasets that don't need a mapservice to power visualization). It would be nice if there was an option to just publish the FeatureService. I imagine that might reduce strain on server resources, minimize the number of Portal assets, and lessen confusion to users (especially new users), when looking at a FeatureService and MapService of the same exact data.
... View more
12-07-2022
05:29 AM
|
4
|
0
|
634
|
|
IDEA
|
I am 1000% behind this idea. But if it cannot be implemented yet, at a minimum, adjust the Portal UI to reflect correct sharing parity between the two services. Currently in Portal you can share a Feature Service and Map Service independently via the UI (e.g. FeatureService shared with a group for editing, MapService shared with everyone for viewing). HOWEVER, the FeatureService actually inherits the sharing of the MapService in the REST endpoints - which makes whatever the Portal UI displays misleading. It would make sense if the Portal somehow updated the sharing icon of the associated Feature Layer in the UI if you changed the sharing of the Map Image Layer. Right now in the UI, it looks as if the Map Image Layer is shared anonymously and the Feature Layer is shared with no one, but it is not actually the case when traversing the REST endpoints.
... View more
12-07-2022
05:24 AM
|
0
|
0
|
990
|
|
POST
|
The developer dashboard on developers.arcgis.com allows me to see my API token usage. For instance, this lets me see how many stored and non-stored geocodes my API key has been used for per day. I'm curious if there is a way to obtain this information programmatically. The only API access to this data I can see is through AGOL reports (the API key is linked to an AGOL account not a Developer subscription), which doesn't provide the same level of granularity the Developer dashboard does for API key usage.
... View more
11-22-2022
07:29 AM
|
0
|
0
|
721
|
|
POST
|
Ah okay. Worked in postman. If I change my Python line from res=requests.post("https://myorg.maps.arcgis.com/sharing/rest/generateToken",params=params) to res=requests.post("https://myorg.maps.arcgis.com/sharing/rest/generateToken",data=params) it works. Got that from https://stackoverflow.com/questions/26615756/python-requests-module-sends-json-string-instead-of-x-www-form-urlencoded-param Thanks!
... View more
11-10-2022
01:30 PM
|
1
|
0
|
2203
|
|
POST
|
I believe that the post from 2018 (https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-on-aws-lambda/m-p/785315#M1344) does not necessarily still apply. In short, would like to access the ArcGIS Python API in AWS Lambda for basic scripting. So what I'd like to do is install the --no-deps version of the ArcGIS Python API (https://developers.arcgis.com/python/guide/install-and-set-up/#install-with-minimum-dependencies), along with required dependencies. The documentation on the minimum dependencies is a little off - for example the documentation says one of the dependencies is requests_toolbelt. For conda, it needs to be specified as requests-toolbelt. Pip has a package requests_toolbelt. The same goes for ntlm_auth (Conda it is ntlm-auth and Pip it is ntlm_auth). It also seems like there are some other dependencies that are not included in the documentation: cachetools, lxml, and reqeusts_oauthlib are two of them that are required when trying to leverage the --no-deps version of the ArcGIS Python API with Python3.9. Lastly, unclear on exactly what process should be used for implementing this in an AWS lambda layer (if this is even possible). Conda to build environment (which packages the Python runtime as well so makes the layer even larger). Pip to build? What directory structure is needed for the .zip file? These are all things I'm struggling with that I feel like other folks might have solved. I have heard AWS lambda has issues with certain libraries built with C, and also can't accept zip folders larger than a certain size (even if uploaded to S3 first).
... View more
11-10-2022
07:25 AM
|
0
|
1
|
1606
|
|
POST
|
I would like to query my AGOL organization's History API (https://myorg.maps.arcgis.com/sharing/rest/portals/self/history) without using the ArcGIS Python API, just using Python requests library. My understanding is I would need to generate an admin token, and use that token to query the API. However, I cannot figure out how to generate a token for this workflow. res=requests.post("https://myorg.maps.arcgis.com/sharing/rest/generateToken",params=params) returns the error: ["POST request should not contain username and password in the query string."] Can someone please point me to a clear explanation of how to implement this process?
... View more
11-10-2022
05:25 AM
|
0
|
2
|
2214
|
|
POST
|
Thanks @jcarlson My understanding is the Docker image provided by Esri is designed for running Jupyter in a container. I'm more interested in the stripped down version of the API (i.e. without Jupyter) for doing ETL and other automation scripts for our Portal. It's a good point about containerization w/r/t conda vs pip. With conda, I was having trouble creating an environment from a basic YML file, activating it, then installing other dependencies - it seemed to be editing the base environment instead (which to your point I guess would be fine). My YML file is only for libraries where dependencies are installed - I need to install arcgis separately because I need to pass the --no-deps flag. My YML file looks like: name: gis dependencies: - python=3.9 - ujson - six - requests - requests_ntlm - pandas My Dockerfile is: FROM ubuntu:22.10 RUN apt-get update -y RUN apt-get install wget -y RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh RUN bash Miniconda3-latest-Linux-x86_64.sh -b -y RUN rm -rf Miniconda3-latest-Linux-x86_64.sh ENV PATH="/root/miniconda3/bin:${PATH}" RUN conda update -n base -c defaults conda -y RUN apt-get install git -y RUN git clone https://mygitrepo/gis-test.git RUN conda env create -f gis-test/env.yml RUN activate gis RUN conda install arcgis --no-deps -c esri I can try building my container with pip instead and see where I can get. Like I said - I'm fairly new to Docker, and even on my local machine have only ever dealt with the Pro install of conda.
... View more
11-02-2022
05:37 AM
|
0
|
1
|
3699
|
|
POST
|
Curious if someone has a dockerfile example to build a container to run simple ETL scripts. I imagine this would install the no-dependency version of the arcgis api along with required minimum dependencies listed in the documentation, as well as other libraries (e.g. pyshp, boto3, sqlalchemy, etc). I am someone new to Docker, and am having issues with creating a conda env in Docker from a yml file and then installing the various dependencies. Curious if folks generally use pip for this, or conda works. Some preliminary research suggests there are some differences when using conda in a container vs. not in a container.
... View more
11-01-2022
05:54 PM
|
0
|
4
|
3737
|
|
POST
|
Understood - I was afraid this was by design - though to me it's still unintuitive. It might make sense if the Portal somehow updated the sharing of the associated Feature Layer in the UI if you changed the sharing of the Map Image Layer. Right now in the UI, it looks as if the Map Image Layer is shared anonymously and the Feature Layer is shared with no one, but it is not actually the case when traversing the REST endpoints. Furthermore, in order to support what is a very intuitive use case (data view accessible by everyone, data edits accessible by a few) you have to publish TWICE. One MapService with Feature Access enabled (which itself results into two REST endpoints - MapServer, FeatureServer), and one MapService without Feature Access enabled. I really thought the whole point of having separate MapService and FeatureService was so you could share them differently (besides the other tradeoffs in MapService vs FeatureService).
... View more
10-19-2022
11:37 AM
|
0
|
1
|
2790
|
|
POST
|
I have published a Map Service and associated Feature Service (feature access to enable editing) off my enterprise geodatabase. It results in a Map Image Layer and Feature Layer in my federated Portal. The Feature Layer points to server API resource (.../FeatureServer) and the Map Image Layer points to server API resource (.../MapServer). I have tried to share the Map Image Layer publicly while keeping the Feature Layer just accessible to me for editing purposes (see screenshot) However, if I navigate to my REST endpoints on server as an anonymous user (using an incognito window to ensure no credential caching), I can see both the MapServer and FeatureServer What's more, as an anonymous user, I can query and edit the features via the Feature Service API endpoints (delete, add, etc). We are working on a fully patched 10.9 Enterprise with federated Portal. This seems like it is not working as designed, and it also seems like I can't be the first person to experience this if its some undiscovered bug. Is there anything I could be doing wrong / anything I'm missing? It really seems to undermine the security of the entire system if otherwise.
... View more
10-19-2022
11:11 AM
|
2
|
7
|
2829
|
|
POST
|
@Scott_Tansley We are at 10.9, deployed in AWS. We do have "Enable SAML based group membership" enabled in our Portal Security settings for SAML login. Are you saying we need to work with our SAML IDP to ensure they are sending AD groups info along with user information? It's possible that our SAML provider might not have visibility into the AD groups though - I'd have to check. I'm not really on that side of the house. Our Portal can certainly connect to AD groups somehow, since we're able to add users to the Portal by specifying an AD group from which to pull users (described above via adding users in bulk). And we are NOT using Web Adaptor in IWA mode. I guess this is my confusion, since I'm not quite clear how this _should_ be setup. We want users to login via SAML identity provider with their PIV card, but we want to leverage existing AD groups for security by linking Portal groups to AD groups and having users populate automatically when they login. Need to figure out the best way to set this up, if its possible.
... View more
10-06-2022
04:39 PM
|
0
|
0
|
2804
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 02-23-2026 11:00 AM | |
| 1 | 07-08-2025 11:33 AM | |
| 1 | 11-07-2023 08:32 AM | |
| 2 | 10-01-2025 06:52 AM | |
| 5 | 09-08-2025 07:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
13 hours ago
|