|
POST
|
Okay, this is very helpful information. Thank you. And it's good to know that your screen reader was able to read that text. I found out how to read from a certain point with NVDA - NVDAkey + down arrow. And then I was able to read the text. So this issue seems to be user inexperience (mine) rather than an Esri problem.
... View more
2 weeks ago
|
0
|
0
|
207
|
|
POST
|
Hello, can anyone help me with an accessibility problem? My organization has to meet web accessibility standards very soon. One element of accessibility is that apps must be readable by screen readers. When examining the accessibility of one of our apps made with Instant Apps (Zone Lookup template), I discovered that a screen reader, NVDA, won't read my "custom result text." When I hover my mouse over a word in that text, it reads the word, but not the whole text. Hitting the tab key to move through all elements on the screen does not make the text get read. The unreadable text is outlined in red in this screenshot: How can I fix this, so that a screen reader can read the "custom result text"? The app is public, so you can try it out and see what I mean. Here is the URL: https://slocounty.maps.arcgis.com/apps/instant/lookup/index.html?appid=df5f4c61eb4e46fb98cf39b01f170781 To get to the results screen, first type in an address in the search bar. Here's a valid address you can enter: 976 Osos St., San Luis Obispo
... View more
3 weeks ago
|
0
|
4
|
303
|
|
POST
|
Similar to what others have mentioned, I would suggest: 1. Make sure you have opened Pro on the machine the script is running on, and configure licensing. 2. Make sure your script is using the Python that comes with Pro, rather than the one that comes with ArcMap. 3. If you haven't already rewritten the script to work with how Pro publishes services, you'll need to do that - it's completely different. I had to go through this a few years ago, and here's some code from my script that republishes a service. NOTE: this is used for a standalone, non-federated ArcGIS Server. So ArcGIS Portal is not involved. I don't know if this code represents the best or most elegant way of publishing a service, but it's what I managed to piece together, and it works for me. It's a function that the script calls at some point. It also produces a message that is part of the email that the script sends upon finishing. def create_sd(path_aprx, aprx_map_name, project_dir, conn_string, folder, feature_count, overwrite=False):
""" Create an sd file from an aprx. If feature_service is True, the
sd is configured to be published as a feature service on AGOL."""
# Overwrite output for GP tools
arcpy.env.overwriteOutput = True
# Check that input file is an .aprx
if path_aprx.endswith(".aprx"):
# Reference map to publish
aprx = arcpy.mp.ArcGISProject(path_aprx)
m = aprx.listMaps(aprx_map_name)[0]
# Get service draft name from the input .mxd file name
service_def_draft_name = os.path.basename(path_aprx).replace(".aprx", ".sddraft")
# Get service name
service_name = "".join(service_def_draft_name.split(".")[0])
# Path to service draft definition file
path_service_draft_def = os.path.join(project_dir, service_def_draft_name)
# Create MapServiceDraft and set metadata and server folder properties
sddraft = arcpy.sharing.CreateSharingDraft("STANDALONE_SERVER", "MAP_SERVICE", service_name, m)
sddraft.targetServer = conn_string
sddraft.summary = "Write your item summary here"
sddraft.credits = "Your organization"
sddraft.description = "Description of your item goes here."
sddraft.serverFolder = folder
sddraft.tags = "your tags"
sddraft.overwriteExistingService = True
# Create Service Definition Draft file
sddraft.exportToSDDraft(path_service_draft_def)
# Create the name for the service definition
service_def_name = "{}withtable.sd".format(service_name)
# Path to the service definition on disk
path_service_def = os.path.join(project_dir, service_def_name)
# Stage the service definition file
arcpy.StageService_server(path_service_draft_def, path_service_def)
try:
# Upload the service definition to publish the service to ArcGIS Server
arcpy.UploadServiceDefinition_server(path_service_def, conn_string)
# Return true if service published
return True
except:
# Create message if publish service fails. Message used in email sent by script.
sd_mess = "*** Unable to Publish Service. Service needs to be manually restarted. ***"
# Return message
return sd_mess
else:
# Create message if input file is not .aprx. Message is used in email sent by the script.
sd_mess = "Input Path Must Point to an .aprx"
# Return message
return sd_mess
... View more
03-05-2026
10:08 AM
|
0
|
0
|
408
|
|
POST
|
Hi there, @Woosh_AP . Did you ever find a way of doing this?
... View more
11-04-2025
11:31 AM
|
0
|
1
|
1518
|
|
POST
|
This is great! Thank you so much for sharing. Just FYI for anyone who may come after me... I ran this expression as a field calculation on a dataset of over 100,000 features and it took about 2 hours 😅
... View more
10-10-2025
06:27 PM
|
0
|
0
|
1207
|
|
IDEA
|
I discovered that the Web Editor template (Instant Apps) doesn't allow for normal pop-ups. Apparently, users can access a pop-up via multiple clicks and interacting with the Selection pane, as described in the solution in this post, but I feel like that's an unreasonable way to access a pop-up. I think the whole point of pop-ups is to show information in a quick, easy, intuitive way, and the current pop-up situation is none of those things. Can you please change the Web Editor template to allow pop-ups when simply clicking on a feature on the map? For context, my use case is an app where users share adventures they've been on. They can edit in order to create a new feature about their adventure. A large purpose of the app is to browse other people's adventures, too, so this is why pop-ups are essential.
... View more
09-30-2025
05:49 PM
|
1
|
0
|
405
|
|
POST
|
Thank you very much. That's good to know how a user can access a popup. That's too complicated to make users do that, for my purposes, so I guess I will have to use Experience Builder instead.
... View more
09-30-2025
05:42 PM
|
1
|
0
|
662
|
|
POST
|
I just went through a lot of work to configure an Instant App using the "Web Editor" template, but I discovered that pop-ups are not working in the app. I enabled and configured pop-ups in the Map Viewer, and they work there. I re-saved the map and re-published and re-launched my app. But still no pop-ups - I click on a point and nothing happens. Does anyone know what is going on with this? Are pop-ups somehow not allowed in this template?!
... View more
09-30-2025
03:01 PM
|
1
|
2
|
707
|
|
POST
|
Thank you so much for sharing this! I had tried a couple different google searches on this topic, and I searched Esri Community, but I never found info about this bug. Thanks.
... View more
09-25-2025
08:35 AM
|
0
|
0
|
691
|
|
POST
|
I'm having a weird problem with labels in ArcGIS Online map viewer. I published a map service from ArcGIS Pro to our standalone ArcGIS Server. Then a web map in ArcGIS Online contains layers from the map service. I configured the layers' labels in Pro (Pro version 3.3). I used a Python expression for the labels: Many months ago when I first published the service, the labels worked fine in ArcGIS Online. But I happened to discover today that now the labels show up in Map Viewer as the literal text contained my Python expression, but with the "+" replaced by the word "CONCAT". Label should be: District 1 Label shows up as: "District" CONCAT 1 Why??? Any ideas of what to do about this? I would really prefer to configure labels in Pro rather than the AGOL Map Viewer, so that I don't risk labels getting wiped out when I republish the map service. Thanks for reading!
... View more
09-24-2025
04:58 PM
|
0
|
2
|
806
|
|
POST
|
I think I fixed it! I was comparing the contents of C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3, on the broken machine vs. a machine where arcpy works. I then noticed two files that were created today on the broken one, but do not exist on the good one. I deleted the files, then ran my script, and I didn't get the error! The 2 files I deleted were: .gitignore and pyvenv.cfg I also deleted the PyCharm project I had created earlier.
... View more
08-05-2025
12:29 PM
|
1
|
0
|
1389
|
|
POST
|
I seem to have broken arcpy by setting up an "environment" in a certain way in PyCharm. Can anyone help me fix this, without having to uninstall and reinstall ArcGIS Pro? (Reinstalling would mean I'd have to re-do a bunch of other settings on this machine.) I know this documentation exists about setting up PyCharm for Pro, but I failed to double-check it today. PyCharm Setup for ArcGIS Desktop - Esri Community Instead of setting up an "existing environment" like the documentation says to, I chose "new environment," with "location" of C:\Program Files\ArcGIS\Pro\bin\Python\envs\argispro-py3 - apparently this was bad. For "interpreter," I selected the python.exe from that arcgispro-py3 folder. Now when I run a script that worked perfectly on a different machine, I get error "No module named 'arcpy'". When I double-click "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" in File Explorer and then type "import arcpy," I also get the same error. Any ideas?
... View more
08-05-2025
12:10 PM
|
0
|
5
|
1412
|
|
POST
|
Thank you! I changed my code to simply "if not row[...]:" and it works. Thanks for the reminder about this possibility.
... View more
05-29-2025
09:05 AM
|
1
|
0
|
5713
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-30-2025 05:49 PM | |
| 1 | 09-30-2025 03:01 PM | |
| 1 | 09-30-2025 05:42 PM | |
| 1 | 11-01-2023 11:39 AM | |
| 1 | 11-21-2024 04:21 PM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|