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
Friday
|
0
|
0
|
65
|
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
Friday
|
0
|
0
|
93
|
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
Thursday
|
1
|
1
|
93
|
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
Monday
|
0
|
1
|
80
|
POST
|
@JoshDunsFCX check to make sure you have e-mail settings configured for Portal.
... View more
2 weeks ago
|
1
|
0
|
61
|
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
2 weeks ago
|
0
|
0
|
96
|
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
2 weeks ago
|
0
|
0
|
101
|
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
2 weeks ago
|
0
|
0
|
115
|
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
2 weeks ago
|
0
|
0
|
117
|
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
2 weeks ago
|
0
|
0
|
43
|
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
2 weeks ago
|
0
|
0
|
43
|
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
2 weeks ago
|
0
|
0
|
172
|
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
2 weeks ago
|
0
|
0
|
178
|
DOC
|
@AbiDhakal make sure the Item_Dependency.py resides in the same directory as the Item Dependencies.tbx.
... View more
3 weeks ago
|
0
|
0
|
2075
|
Title | Kudos | Posted |
---|---|---|
14 | 01-02-2024 09:36 AM | |
1 | Thursday | |
1 | 2 weeks ago | |
1 | 4 weeks ago | |
1 | 07-11-2024 07:46 AM |
Online Status |
Offline
|
Date Last Visited |
Friday
|