|
POST
|
@JakeSkinnerI slightly misunderstood your reply the first time. I just tried running the tool from the remote box again. This time in the workspace parameter I used a mapped letter drive. It still resulted in the same OSError.
... View more
09-16-2024
12:16 PM
|
0
|
0
|
5268
|
|
POST
|
Unless I didn't use Path properly, the script tool failed with the same OSError on the same line as before. from pathlib import Path
#workspace folder
arcpy.env.workspace = arcpy.GetParameterAsText(0)
env = Path(arcpy.env.workspace) line 26 (the line it's been failing on): current_aprx = arcpy.mp.ArcGISProject(os.path.join(env, file))
... View more
09-16-2024
08:41 AM
|
0
|
1
|
5279
|
|
POST
|
@JakeSkinnerYes. I just ran the tool with a test folder as a workspace on the remote machine's C drive. The result was the same OSError. I'm looking into pathlib. Thanks for the suggestion @HaydenWelch
... View more
09-16-2024
07:28 AM
|
0
|
0
|
5292
|
|
POST
|
I have a simple custom script tool that I want to share within our GIS office. The tool works fine from in my Pro application. Both the tool and the stand alone script it points to are stored in a network folder/UNC path that everyone has access to. When ran from another instance of Pro, whether from my colleague's PC or a dedicated box I remote log into, the tool throws this error: Traceback (most recent call last):
File "\\uncpathtothescript\LayoutToPDF_Tool.py", line 26, in <module>
current_aprx = arcpy.mp.ArcGISProject(os.path.join(env, file))
File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\_mp.py", line 337, in __init__
self._arc_object = arcgisscripting._mapping.ArcGISProject(*gp_fixargs((aprx_path,), True))
OSError: \\uncpathtoproproject\COUNTY_BOARD_A.aprx
Failed to execute (LayoutToPDFs). I haven't debugged other than running the tool on different machines. I've read you can share to Enterprise Portal, but I'm not interested in that. If I can simply share to a network folder so anyone can just simply open it immediately from their system that would be best. The tool exports layouts to PDFs. #-------------------------------------------------------------------------------
# Name: LayoutToPDF_Tool.py
# Purpose: Exports APRX layout to PDF.
#
# Author: jpilbeam
#
# Created: 13/08/2024
# Copyright: (c) Will Co GIS
# Licence: <WillCo GIS>
#-------------------------------------------------------------------------------
import arcpy, os
#workspace folder
env = arcpy.env.workspace = arcpy.GetParameterAsText(0)
#print the number of aprx files in the workspace folder
aprxlist = arcpy.ListFiles("*.aprx")
arcpy.AddMessage("Currently {0} maps to be updated:\n".format(len(aprxlist)))
#Loop through folder and list APRXs
for dirName, subdirList, fileList in os.walk(env):
for file in fileList:
if file.endswith(".aprx"):
current_aprx = arcpy.mp.ArcGISProject(os.path.join(env, file))
for lyt in current_aprx.listLayouts():
#export APRXs to PDFs
lyt.exportToPDF(f'{env}\{lyt.name}')
arcpy.AddMessage("{} to PDF".format(lyt.name))
# current_aprx.save()
del current_aprx
print("----done----")
... View more
09-13-2024
01:36 PM
|
0
|
9
|
5381
|
|
POST
|
Hi Dave, The widget name in manifest.json is not the same with the folder name Github download: Experience-Builder-Radio-Layers-Widget-main manifest.json: radio-layers Thanks for posting. In the process of checking the widget out I was getting a message in the client folder prompt telling me the folder name didn't match the widget name. Your Github download has a different name than the widget name in the manifest.json. Once I changed the download folder name it was fine. C:\arcgis-experience-builder-1.15\client\your-extensions\widgets\radion-layers
... View more
09-09-2024
11:24 AM
|
0
|
1
|
5194
|
|
POST
|
Just a random guess, but are there any NULL values in your field? My guess stems from my very recent discovery: https://community.esri.com/t5/arcgis-pro-questions/symbols-dissapearing-after-applying-arcade-script/m-p/1513004#M86250
... View more
07-31-2024
08:48 AM
|
0
|
0
|
1047
|
|
POST
|
I didn't mention it, but I had a NULL value in the field I was calling in the script on. I put some values in that field then suddenly the symbols displayed! Oddly, I used the same expression in the label window and it worked regardless of NULL values...
... View more
07-31-2024
08:44 AM
|
0
|
0
|
1042
|
|
POST
|
Formatting tags in AGOL labels are still not doable as of today's Map Viewer. I shared a layer from Pro where the expression worked just fine, not so in AGOL. Great suggestion, however.
... View more
07-31-2024
07:55 AM
|
1
|
0
|
2642
|
|
POST
|
I created a new post regarding the issue. https://community.esri.com/t5/arcgis-pro-questions/symbols-dissapearing-after-applying-arcade-script/m-p/1512353#M86184
... View more
07-30-2024
07:30 AM
|
0
|
0
|
1945
|
|
POST
|
I'm observing strange behavior in Pro v. 3.2.0. I have a simple point layer with less than 20 fields. I'm symbolizing using Unique Values. Everything is normal until I apply a nifty Arcade script that symbolizes based on time and date from a text field in my table. Nowhere do I have any scale set, but when I apply the expression only two of the 15 features appears at all scales. The others only draw when zoomed in farther. There is nothing apparent that differs the two features from the others. It's the same behavior in a Layout.
... View more
07-30-2024
07:30 AM
|
1
|
1
|
1101
|
|
POST
|
I see what I did wrong. You have a space after the comma in the string here. In my table I didn't have spaces. I removed it in the script and it worked! Thanks a lot. var times = Split(fTime, ',') But I'm still getting weird behavior with what appears to be scale. Most features aren't visible until I zoom in. And I do not have the layer set with zoom in/out values. I'll have to investigate.
... View more
07-29-2024
01:38 PM
|
0
|
1
|
1964
|
|
POST
|
Thanks for the code. Unless I'm doing something wrong, I'm only seeing two Closed symbols created (highlighted in table below). And what's odd is that when when you zoom in Closed symbols for all features appear. There are no Open Now symbols created. On what's your line 10 I used this variable: var fTime = $feature.LocationHoursByDay I created a text field called LocationHoursByDay.
... View more
07-29-2024
12:26 PM
|
0
|
1
|
1990
|
|
POST
|
Here's the bigger picture. The locations rarely have simple hours. It changes on certain days and on weekends. My logic along the way was to put the starting and end times for each day into the Time field. Edit: I'm more or less experimenting on a working dataset. The LocationHours field is being used in the pop-up currently.
... View more
07-26-2024
01:18 PM
|
0
|
3
|
2038
|
|
POST
|
Ah, yes. Thank you. Earlier I changed the values to 24hr times. The earliest is 8:00 and the latest is 21:00. There's also one oddball open 24hr location, which I'll have to work in somehow.
... View more
07-26-2024
12:36 PM
|
0
|
0
|
3159
|
|
POST
|
Thanks for that. I replaced the dummy variables and it verified OK. However, there was only the Closed symbol class showing. It's not returning Open Now. So, it's hard telling where it's going wrong. var DaysOpen = "Su,M,Tu,W,Th,F,Sa";
var fTime = "8,8:30,9,9:30,10,10:30,11,11:30,12,12:30,1,1:30,2:30,3,3:30,4,4:30,5,5:30,6,6:30,7,7:30,8,8:30,9"; Unfortunately, there are more that a few Time field values that are after 6pm.
... View more
07-26-2024
11:54 AM
|
0
|
2
|
3167
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-25-2026 12:25 PM | |
| 1 | 05-04-2026 08:45 AM | |
| 1 | 04-20-2026 01:20 PM | |
| 1 | 07-24-2025 01:27 PM | |
| 1 | 11-13-2025 08:22 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|