|
POST
|
Hello! Have you had any success with this? I'd like to integrate the public Mosquito Service Request solution so that the requests appear in workforce without having to use two different manager apps. Any luck? Thanks!
... View more
06-01-2020
10:48 AM
|
0
|
1
|
1057
|
|
POST
|
Any answers if the layer dropping this code is a WFS hosted on our own server? I cannot go into AGOL & edit domains like the response suggests above. Do I need to just use Collector (Classic) instead?
... View more
06-01-2020
09:12 AM
|
1
|
0
|
3844
|
|
POST
|
I am trying to bring in a WFS we publish from our own server and I am receiving this error. The other layers hosted on AGOL load fine. I need to be able to add in services to the collector app from our server, as I cannot edit the domains within AGOL.
... View more
06-01-2020
09:11 AM
|
0
|
0
|
7016
|
|
POST
|
I just deployed the mosquito surveillance solutions, and I need to add in more mosquito species to the Mosquito Counts related table that is part of the MosquitoSurveillance feature layer. I added in some new fields and deleted a few I did not need. I made my changes within the Data view of the Feature Layer on AGOL, and I can see the fields. I can also see the changes I made on the service URL. However, the changes are not appearing within the table when I open it within a map viewer, nor are they appearing when I open the map on Collector. I still see the original fields. I've tried reloading the map in Collector and tried changing the feature layer settings. I also tried editing these in ArcPro, all without result. Anyone have any tips? I need to make lots of changes to tailor this to our specifications, and I cannot seem to get any of my changes to appear. Update 06/04/2020: Never could get this to work - ended up publishing my own editable feature services with related tables and got rid of the ESRI Solution stuff entirely except for the Mosquito Service Request, and I will be replacing those AGOL hosted layers with my own hosted services.
... View more
05-28-2020
05:19 AM
|
0
|
0
|
606
|
|
POST
|
my apologies for not seeing your questions and responding, I just got back from maternity leave. Glad you got it resolved!
... View more
05-12-2020
10:16 AM
|
0
|
0
|
9947
|
|
POST
|
Any luck on this? I need to do exactly this for two different sites, one for a single page output, and one for a multi-page output.
... View more
05-12-2020
10:13 AM
|
0
|
1
|
1528
|
|
POST
|
I had stripped most of my else statements out to try and parse down the code, so I apologize if it made it confusing. I am trying to capture line 13 as a variable to check if it is false or not. It won't let me set that variable, as it states that it doesn't exist for my records where the attribute is Null. I need to figure out how to test whether that attribute is Null or not. I think what I need is something like: #store page Row variable Commercial Sketch as commSketch #if Commercial Sketch exists: #append file path to existing PDF #if Commercial Sketch doesn't exist: #do nothing Whenever my code hits line 13, I get the following error: Error: 'pageRow' object has no attribute 'COMMERCIAL_SKETCH' So I haven't figured out how to even get it to the point where it allows me to test if it is False or not. This is actually part of a function where I am implementing multiprocessing for several thousand PDFs that need created. I updated my code with the actual function I'm working on
... View more
02-17-2020
09:54 AM
|
0
|
0
|
1590
|
|
POST
|
So I am trying to convert a data driven pages script from Python 2.7 to map series Python 3. My original script, I had an attribute that sometimes had a file path stored in it, and whenever I would get to a specific page in the DDP, I would store the possible row value as a variable, check if it existed, & append it to my PDF if it did. Original Script: pageID = parMXD1.dataDrivenPages.getPageIDFromName(UPI)
parMXD1.dataDrivenPages.currentPageID = pageID
finalPDF = os.path.join(folder, UPI) + ".pdf"
parMXD1.dataDrivenPages.exportToPDF(finalPDF, "CURRENT")
#The attribute with possible sketch pathway
comSketch = parMXD1.dataDrivenPages.pageRow.COMMERCIAL_SKETCH
#opens first PRC Page
prc = arcpy.mapping.PDFDocumentOpen(finalPDF)
if os.path.exists(str(comSketch)):
prc.appendPages(str(comSketch))
prc.saveAndClose() Now, in my code for the map series, if the attribute is Null, it is not letting me store that row as a variable & checking to see if it exists. Current Script: mxdFile = arcpy.mp.ArcGISProject(mxdPath)
cleanName = name.replace("/", "_")
finalPDF = os.path.join(outFolder, cleanName + ".pdf")
l = mxdFile.listLayouts("Page_1")[0]
if not l.mapSeries is None:
ms = l.mapSeries
if ms.enabled:
ms.currentPageNumber = ms.getPageNumberFromName(name)
file = os.path.join(outFolder, cleanName)
ms.exportToPDF(file, "CURRENT", resolution=300)
#Checks for existence of Sketch PDF & appends it to new PDF
commSketch = ms.pageRow.COMMERCIAL_SKETCH
if os.path.exists(commSketch):
pdfDoc = arcpy.mp.PDFDocumentOpen(finalPDF)
pdfDoc.appendPages(file2)
pdfDoc.saveAndClose() I have struggled with trying to access via row objects, search cursors, and for loops, and I am not having any luck trying to store that attribute and check for if it is Null or not. Update: This is script I am testing to make a function so that I can call it in multiprocessing for creating about 140,000 multi-page PDFs. import os, sys
import arcpy
arcpy.env.overwriteOutput = True
def worker(mxdPath, outFolder, name):
try:
mxdFile = arcpy.mp.ArcGISProject(mxdPath)
cleanName = name.replace("/", "_")
finalPDF = os.path.join(outFolder, cleanName + ".pdf")
l = mxdFile.listLayouts("Page_1")[0]
if not l.mapSeries is None:
ms = l.mapSeries
if ms.enabled:
ms.currentPageNumber = ms.getPageNumberFromName(name)
file = os.path.join(outFolder, cleanName)
ms.exportToPDF(file, "CURRENT", resolution=300)
pdfDoc = arcpy.mp.PDFDocumentOpen(finalPDF)
l2 = mxdFile.listLayouts("Page_2")[0]
if not l2.mapSeries is None:
ms2 = l2.mapSeries
if ms2.enabled:
ms2.currentPageNumber = ms.getPageNumberFromName(name)
pageTwo = cleanName + "t2"
file2 = os.path.join(outFolder, pageTwo + ".pdf")
ms2.exportToPDF(file2, "CURRENT", resolution=300)
pdfDoc.appendPages(file2)
os.remove(file2)
# ms.refresh()
resSketch = ms.pageRow.SKETCH
if os.path.exists(resSketch):
l3 = mxdFile.listLayouts("Page_3")[0]
if not l3.mapSeries is None:
ms3 = l3.mapSeries
if ms3.enabled:
ms3.currentPageNumber = ms.getPageNumberFromName(name)
pageThree = cleanName + "t3"
file3 = os.path.join(outFolder, pageThree + ".pdf")
ms3.exportToPDF(file3, "CURRENT", resolution=300)
pdfDoc.appendPages(file3)
os.remove(file3)
del file3, resSketch
else:
pass
#Checks for existence of Sketch PDF & appends it to new PDF
commSketch = ms.pageRow.COMMERCIAL_SKETCH
if os.path.exists(commSketch):
pdfDoc.appendPages(str(commSketch))
else:
pass
pdfDoc.saveAndClose()
except arcpy.ExecuteError:
# Geoprocessor threw an error
arcpy.AddError(arcpy.GetMessages(2))
print("Execute Error:", arcpy.ExecuteError)
except Exception as e:
tb = sys.exc_info()[2]
print("Failed at Line %i \n" % tb.tb_lineno)
print("Error: {} \n".format(e))
finally:
del mxdFile, pdfDoc
return False
... View more
02-17-2020
08:52 AM
|
0
|
2
|
1642
|
|
POST
|
For my organization, we are a mid-size county and we host the older version of story maps so that we can give them a custom URL, insert Google Analytics, and do any custom coding to tweak colors / themes / styling etc. on the story maps. Because of the nature of our website provider, they cannot do URL re-directs, so we need to be able to assign our own URLs, which is a big reason.
... View more
02-14-2020
06:15 AM
|
2
|
0
|
3150
|
|
POST
|
I know they'd like it to. ESRI came to visit us to talk about Enterprise implementation, and they advised against this account following the 3 month SOP. Said it would cause all sorts of issues, which is part of why I am asking this question.
... View more
12-17-2019
10:00 AM
|
0
|
0
|
3599
|
|
POST
|
I'm looking for info on being able to change the Admin ArcGIS account setup when we installed ArcGIS Server & Web Adapter. I took over for my predecessor and I'd like to update the account to a more secure password. This is at the behest of our IT Department, since this account doesn't follow the standard 3 month password reset procedures. I've heard that this affects multiple things and I want to make sure that I am taking care of everything and not breaking connections, as I have several services consumed by the public. Thus far, I've read that changing the Administrator Account password will result in the following: All services will be restarted when the account is changed The Web Adaptor will possibly need reconfigured (not sure how yet) Is there anything else I need to be aware of that this will affect? We have an enterprise license, but are not actually fully set up, so we only have Server & the Web Adaptor at this time. Edit: The goal is to move to a full enterprise setup next year, approval pending.
... View more
12-17-2019
09:48 AM
|
1
|
4
|
3952
|
|
POST
|
Great, thanks, that's what I thought. Thank you for confirming!
... View more
12-04-2019
05:37 AM
|
0
|
0
|
3150
|
|
POST
|
I'm thinking the answer to this question is no, but I wanted a solid answer. I just want to know if you can self-host the new ArcGIS StoryMap (with the Classics, you downloaded the source code and inserted your app ID, so you could give it a custom URL, among other things.) So far, I have not found a blog, article, question, or source code that gives me this option. I tried asking ESRI chat, and they keep giving me links to the self-hosting the classics blogs from 2017, BEFORE ArcGIS StoryMap existed. Is this an option yet?
... View more
12-03-2019
01:14 PM
|
1
|
13
|
4298
|
|
POST
|
I have error logs on my server that show that an attempt to access several services that are no longer available. The logs all show "Error getting service" & "Unable to process request. Service <NAME> not found." I have gone through our applications & they all have had the new services imputed to replace the retired ones. Is there a way to identify who / what is trying to request rest access to old services?
... View more
10-16-2019
01:19 PM
|
0
|
0
|
688
|
|
POST
|
I sometimes had success with ending the Python process in Windows Task Manager
... View more
10-10-2019
08:16 AM
|
0
|
0
|
3527
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 06-28-2021 01:11 PM | |
| 2 | 02-24-2025 08:55 AM | |
| 1 | 07-08-2024 01:49 PM | |
| 1 | 01-24-2023 08:40 AM | |
| 1 | 02-13-2023 05:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-22-2025
11:15 AM
|