|
DOC
|
@LouisDECOMBE for the script variables, you can update the previousInstance and newInstance. For the newDSID variable, simply specify this to the be the same as the previousDSID variable.
... View more
08-19-2024
04:19 AM
|
0
|
0
|
23956
|
|
DOC
|
@MichaelWestbrook I've seen sometimes if you don't tab out of each Web Map ID box, the GP tool won't pick up the IDs correctly. Try tabbing out of the New Web Map ID and re-run the tool again to see if it works.
... View more
08-09-2024
11:07 AM
|
0
|
0
|
38668
|
|
DOC
|
@MichaelWestbrook I found the issue, the validation code checks the web map for tables, if none exists, it produces this error. Redownload the tools, and it should work successfully now.
... View more
08-09-2024
08:13 AM
|
0
|
0
|
38696
|
|
POST
|
Hi @Clubdebambos, You could use the Copy Hosted Feature Services tool in the following toolset. You would just have to update the 'title' in the item_properties variable on line 67 so it does error trying to create a service with the same name. Ex:
... View more
08-08-2024
07:45 AM
|
1
|
1
|
4264
|
|
POST
|
@RichardHowe just an FYI, the Advanced Runtime for AGOL Notebooks contains arcpy. https://doc.arcgis.com/en/arcgis-online/create-maps/specify-the-runtime-of-a-notebook.htm#:~:text=the%20Advanced%20runtime%20contains%20all%20of%20the%20same%20libraries%20as%20well%20as%20ArcPy%20and%20some%20related%20libraries
... View more
08-05-2024
04:39 AM
|
0
|
1
|
3669
|
|
POST
|
@JoshDunsFCX check to make sure you have e-mail settings configured for Portal.
... View more
07-30-2024
07:02 PM
|
1
|
0
|
2960
|
|
DOC
|
@James_Shreeve I only see one date in the feature service, and it's a few weeks in the future: So you will need to change the below line from > to <, and it will generate an e-mail: Also, I found an issue with how group members are being returned, may be due to an update, but replace: # Get group members
allUsersGroup = gis.groups.get(allUsersGroupID)
userList = allUsersGroup.get_members() with the following: # Get group members
allUsersGroup = gis.groups.get(allUsersGroupID)
userList = allUsersGroup.get_members()['users']
for admin in allUsersGroup.get_members()['admins']:
userList.append(admin) and you should be good.
... View more
07-30-2024
06:59 PM
|
0
|
0
|
3575
|
|
DOC
|
@Kevin_MacLeod if you have GeoEvent, using that application would be the easiest. It would be too many steps to detail here, but if you contact Tech Support, they should be able to provide you assistance.
... View more
07-30-2024
06:39 PM
|
0
|
0
|
3580
|
|
DOC
|
@ahagopian_coj what version of ArcGIS API for Python are you running? Or, what version of Pro are you using when executing the above?
... View more
07-30-2024
06:31 PM
|
0
|
0
|
2769
|
|
POST
|
Hi @LaneDahl , Yes, the shapefile can be deleted after it's published. The data is copied to AGOL, and then a feature service is created, so there is no direct correlation between the two. Instead of working with shapefiles, I would recommend using geodatabase feature classes. Here is a good blog on the benefits.
... View more
07-26-2024
06:36 AM
|
0
|
0
|
1506
|
|
POST
|
Hi @WhitneyWeber, I've had sporadic results with the clone_items function. If you only have a handful of web maps/apps to clone, I would recommend using these tools.
... View more
07-26-2024
04:14 AM
|
1
|
0
|
2300
|
|
POST
|
@JasminePrater unfortunately, the only place I was able to find the Data Store ID (found in ArcGIS Server Admin > data > items > enterpriseDatabases) was by locating the service in the MSD file located at arcgisserver/directories/arcgissystem/arcgisinput/<service>/extracted/p30. This file can be extraced with 7-zip, and within is a JSON file that contains this value:
... View more
07-25-2024
11:08 AM
|
0
|
0
|
1573
|
|
DOC
|
Just an FYI, here is a way to do this with the ArcGIS API for Python. It also demonstrates how to iterate through all folders to stop those services as well. from arcgis.gis import server
# If federated server, connect using Portal credentials
# If stand-alone ArcGIS Server, connect using ArcGIS Server credentials
agsServer = server.Server(url="https://ags.esri.com/server", username='portaladmin', password='********')
serviceList = []
folderList = [folder for folder in agsServer.content.folders if folder != 'Hosted'
and folder != 'System' and folder != 'Utilities']
folderList.append('')
for folder in folderList:
for service in agsServer.services.list(folder):
service.stop()
... View more
07-25-2024
10:26 AM
|
0
|
0
|
2826
|
|
DOC
|
@James_Shreeve , Yes, you can dynamically use field values. The query results are returning all field values, so you could do something similar to below. The example is assigning an variable status with the value from a field called Status in the feature service, then using this in the e-mail message. # Query service and check if date field is within the last hour
print("Querying feature service")
queryResults = fLyr.query(where='1=1', out_fields="*", return_geometry=False)
for results in queryResults.features:
if results.attributes[dateField] != None:
status = results.attributes['Status']
emailMessage = f"Status is currently {status}"
createDate = results.attributes[dateField] / 1000
t = datetime.datetime.now() + timedelta(weeks=weeks_check)
t = time.mktime(t.timetuple())
if createDate > t:
# Send e-mail
print('Sending e-mail')
allUsersGroup.notify(users=userList, subject=emailSubject, message=emailMessage)
... View more
07-25-2024
06:43 AM
|
0
|
0
|
3657
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 4 | 05-07-2020 05:14 PM | |
| 1 | 03-25-2026 04:16 AM | |
| 1 | 03-16-2026 01:00 PM | |
| 1 | 12-22-2025 10:39 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|