IDEA
|
03-12-2025
09:44 AM
|
0
|
0
|
1118
|
POST
|
Thanks for the replies - API key authentication worked out best for me. I didn't initially see this, only the option for OAuth when creating new developer credentials, as the account under which the data was owned didn't have proper permissions to select API key. Moving the data to a different account enabled that, and I was able to successfully create and use an API key, and provided that to the client.
... View more
03-12-2025
09:43 AM
|
0
|
0
|
190
|
POST
|
I've been struggling to find documentation for my exact use case, and I was hoping someone here can point me in the right direction. I have a feature layer (which is not shared publicly) in ArcGIS Online, which I want to share with a client so that it can be displayed and queried on a map within their application. The client's application is not public, and is secured using their own authentication. They do not want the users of their app to see a second ArcGIS username & password prompt when the map loads the layer, nor do I want to provide them with a user name and password for our AGOL organizational account. I want to provide them with an API key, OAuth credentials, or implement some other authentication scheme so that their developers can add a map to their app, using the ArcGIS JavaScript SDK, which shows the layer I want to share with them, allowing the developers to handle authentication without any need for username and password input from the user. I have been reading through the ArcGIS documentation on authentication for OAuth2 and API keys, but I can't seem to find anything pertaining to this exact workflow. Is this even possible? If so, is anyone aware of relevant documentation from Esri on how to do this?
... View more
03-06-2025
03:23 PM
|
0
|
3
|
303
|
BLOG
|
Thank you! I should have clarified - this method is indeed specific to deploying an application, which has a dependency on arcpy, to a server that does not have ArcGIS Enterprise installed. This has proven to be a possible solution for hosting microservices for GIS apps and tools in our organization which require rapid development, while also playing to the Python strengths of our team.
... View more
02-17-2025
09:07 PM
|
1
|
0
|
325
|
BLOG
|
I recently started exploring the Flask web application framework for Python, but I ran into an issue when trying to deploy the application to Windows Server. My Flask application had a dependency on arcpy, which was available on my local development environment, but not on my server. As you are likely aware, the arcpy package is not available outside of the ArcGIS Pro Python environment, and I ran into quite a few issues with not being able to import and use these libraries. After some some googling, lots of trial and error, and a little help from Esri support, I was able to accomplish this task! https://mfcallahan.com/2025/02/17/deploying-a-python-flask-application-which-can-import-arcpy-and-the-arcgis-python-api-to-windows-server/ Above is the link to my blog post which goes into deep detail on how to accomplish this, but at a high level, the steps needed to accomplish this are: Copy app code to server Clone the default "arcgispro-py3" environment Activate your cloned ArcGIS Pro Python environment in Conda Install the flask and wfastcgi dependencies Copy file "wfastcgi.py" to the root app folder from the Python site-packages folder Create a new application pool Set app folder ownership to IIS AppPool Add app to FastCGI Server Settings, using the cloned Python env Set <handlers> in web.config file
... View more
02-17-2025
03:18 PM
|
4
|
4
|
586
|
POST
|
This issue is occurring in ArcGIS Pro 3.0.3, 3.0.4, and 3.1.0; ArcGIS Server version is 10.8.1. Esri has confirmed this is a bug (BUG-000156390). Pretty frustrating as it is claimed here that Microsoft Azure Database for PostgreSQL (Single Server option) is supported by Esri, but it doesn't appear to be fully so. https://desktop.arcgis.com/en/system-requirements/latest/databases-in-the-cloud.htm
... View more
03-09-2023
09:08 AM
|
0
|
0
|
2600
|
POST
|
I am using the Single Server Azure Database for PostgreSQL deployment. I am also using the "username@hostname" credential - omitting the @hostname will not allow login on any client, Pro included. The issue here is that the connection string generated by ArcGIS Pro appears to be truncating the "@username"
... View more
02-25-2023
10:22 AM
|
0
|
0
|
2651
|
POST
|
I have a PostgreSQL database instance running in the Azure Database for PostgreSQL service. I am able to successfully connect, create enterprise geodatabases within, and load feature classes. I am also able to register the database as a data store, both via ArcGIS Pro and ArcGIS Server Manager. However, when attempting to share a table in the database as a web layer (right click > Sharing > Share as web layer), it will ultimately fail with error 00231, "Layer's data source must be registered with the server." seemingly not recognizing the registered data store I had just added. I verified there were no typos or other configuration errors. Tech support provided the following guidance, which did not resolve the issue. Remove previously registered data store Open "Share as Web Layer" tool Run "Analyze" and right click error 00231 > Register Data Source with Server I observed something interesting at this point; the connection string automatically generated in the dialog box truncates the "@hostname" part of the username, and the validation will fail: I am able to click "Import" in this dialog box and manually specify the .sde connection file, the generated connection string does not malform the username, and the data store can be registered. However, I am right back to the same issue and receive error 00231 once again when attempting to run "Share as Web Layer." I'm hoping someone out there has observed this and found a workaround! 🤞
... View more
02-21-2023
12:26 PM
|
1
|
5
|
2855
|
IDEA
|
Upvoted - an officially supported "ArcGIS Pro debugger" VS Code extension would make all my GIS dreams come true 😃 I would love to see a workflow that allowed me to attach VS Code to a the Python environment of the running ArcGIS Pro instance, execute a script tool, and be able to hit breakpoints, step thru the code, etc. from within VS Code. Just like PyCharm and Visual Studio. Dear Esri: VS Code is used by 75% of the respondents to the 2022 StackOverflow survey! This would not necessarily be a niche tool, it could have a wide-reaching impact on developers. It's very likely that there a lot fewer GIS devs are using Visual Studio and PyCharm than there are using VS Code as their daily driver development environment. There is certainly precedent for something like this - are many such "Debugger" extensions available in the VS Code marketplace for a wide variety of languages/frameworks/platforms. C'mon Esri...you're good at this type of stuff - the Adobe Suite plugins, ArcGIS for Teams, Office, etc. Y'all got tons of cool integrations with lots of things, especially from Microsoft. I know the community could develop this (and I'd love to participate in such a project) but I like staying in the Esri ecosystem if possible. And officially-supported VS Code extensions are always much higher quality. Thanks, A GIS dev
... View more
10-12-2022
03:17 PM
|
0
|
0
|
4189
|
POST
|
If PyCharm can do this, there's got to be a way for VS Code to do this as well 🤔 I would definitely love to see an official Esri "VS Code ArcGIS Pro Debugger extension"
... View more
10-12-2022
03:04 PM
|
0
|
0
|
4354
|
POST
|
Yes, that would be amazing, but everything I've read while investigating the same thing seems to indicate that it is not possible.. If I could have a workflow similar to Visual Studio ArcGIS Pro Add-in development with VS Code & Python by attaching the debugger to the running arcgispro.exe instance I would be so happy 😀
... View more
10-12-2022
06:39 AM
|
0
|
2
|
4420
|
POST
|
Ha! Well, I'll give some credit where credit is due..not a lot of software companies have made a game that still works flawlessly 32 years later (on an operating system that didn't even exist in 1990!) MS Solitatire (1990) running on Pop!_OS 22.04 (2022)
... View more
10-11-2022
04:20 PM
|
0
|
0
|
14694
|
POST
|
You da man, @Brian_Wilson - thanks for replying, this worked for me! I had a very frustrating call with an Esri tech support representative for an hour trying to work thru this, but it ultimately ended it with a "we don't support this" answer and the ticket being closed 😑 I probably wasn't communicating things effectively to support, but Pro/ArcPy/Conda and actually using them is something that is so under-documented that even Esri's staff can't answer questions about how this type of stuff is configured..
... View more
10-11-2022
03:59 PM
|
5
|
2
|
14713
|
POST
|
I'm attempting to configure VS Code for ArcPy/ArcGIS Pro development, and things have been going ok so far, however I have run into an issue I am not sure how to resolve. I'm also curious to hear how other in the community have configured VS Code - I want to make sure I'm not way off base. Here is how I have configured VS Code: I first cloned a Python environment from the ArcGIS Pro Package Manager, and then set the location of the Python interpreter in VS Code to the "python.exe" in my cloned env (which for me, was in this folder: %LocalAppData%\ESRI\conda\envs\my-cloned-environment\python.exe). And that was actually all I needed to do in order to run and debug a script. I am able to create a new Python debugging configuration in VS Code, set breakpoints step through the code, and get IntelliSense on all ArcPy modules & methods. However, there is still something I am not fully understanding, I think.. On VS Code Terminal launch, I get the following error: That looks to me like the system PATH environment variable has not been configured for Conda, and Powershell does not recognize the conda command. The Conda docs actually recommend not modifying the PATH env var, but if I do, I can resolve the error above, and the conda command is recognized. However, that yields another error, "CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’.” Looking at the error message, I see that it is saying to run command conda init powershell, however, this also yields an error an I am stuck at this point, unsure how to proceed. Running VS Code as admin did not resolve the issue. To further compound my confusion, I came across this in the Esri docs saying "propy.bat" or "proenv.bat" should be used, but I don't know how I would integrate with VS Code: https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/using-conda-with-arcgis-pro.htm I'm curious to hear how other VS Code users have their local development environment configured, if you ran into any of these issues, how you resolved them, etc. Or am I just completely way off base in my methods and attempts to get VS Code configured lol??
... View more
10-11-2022
06:59 AM
|
0
|
25
|
20046
|
POST
|
Wow, thank you for the reply 4 years later! Since then I've had a few different jobs, but I'm actually back at the same company, and have been tasked to again investigate this same thing! My manager inquired about how it would work with Active Directory, and I remembered that I had asked this question once upon a time. Low and behold, there was an answer! I'm going to give this a try and will report back with my experience! Thanks again!
... View more
01-20-2022
09:28 AM
|
0
|
0
|
1316
|
Title | Kudos | Posted |
---|---|---|
1 | 02-17-2025 09:07 PM | |
4 | 02-17-2025 03:18 PM | |
1 | 02-21-2023 12:26 PM | |
1 | 11-04-2020 02:31 PM | |
5 | 10-11-2022 03:59 PM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|