|
POST
|
Hi @DJB,
Try the following:
from arcgis.gis import server
# Stand-alone ArcGIS Server instance specify Primary Site Admin (i.e. siteadmin)
# Federated ArcGIS Server instance specify Portal Admin (i.e. portaladmin)
agsServer= server.Server(url="https://ags.esri.com/server", username='portaladmin', password='*******')
# Stop services
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
11-25-2024
01:05 PM
|
2
|
1
|
2249
|
|
POST
|
Hi @myESRIUName take a look at the Copy Web Maps tool that's included with these tools. The script will give you the logic to copy the web map, and also how to update the URLs.
... View more
11-25-2024
05:37 AM
|
0
|
1
|
3281
|
|
POST
|
@CW-GIS you can use the Append tool and perform an upsert by specifying match fields.
... View more
11-25-2024
03:57 AM
|
2
|
0
|
2068
|
|
POST
|
Hi @KendallJames73,
Hosted feature layer views could be an option, but if it's not feasible to have hosted feature services, you could create a spatial view if the data is stored in an Enterprise Geodatabase.
... View more
11-22-2024
06:03 AM
|
0
|
1
|
1266
|
|
POST
|
I would recommend using a local server that has ArcGIS Pro to execute your scripts. You can then leverage the smtplib module and send e-mails/texts.
... View more
11-21-2024
10:48 AM
|
0
|
1
|
1523
|
|
DOC
|
@DJB I think this is a False warning. The Folder.add() method the message references should be used for adding a new Folder, not an item. This can be safely ignored.
... View more
11-21-2024
10:46 AM
|
0
|
0
|
17568
|
|
POST
|
Unfortunately, you won't be able to send an e-mail using smtplib in AGOL Notebooks.
... View more
11-21-2024
07:42 AM
|
0
|
0
|
1550
|
|
POST
|
Hi @PanGIS, are you also sharing the Map Image Layer to the Org and Groups?
... View more
11-20-2024
05:17 AM
|
0
|
0
|
1287
|
|
DOC
|
@TomShewring this should not occur if you're running command prompt as a named user in Portal, and you have Portal's URL added to the Local Intranet (i.e. Start > Internet Options > Security tab > Local Intranet > Sites > Advanced > specify the portal URL (minus the web adaptor) > Add):
JakeSkinner_0-1732107076433.png
... View more
11-20-2024
04:51 AM
|
0
|
0
|
24930
|
|
POST
|
Try the following:
try:
feature_layer.edit_features(adds = sdf.to_featureset(), field_mapping=field_mapping)
except Exception as e:
print(e)
arcpy.AddError(str(e))
... View more
11-20-2024
04:43 AM
|
0
|
0
|
3377
|
|
POST
|
Hi @JACooper, I've seen issues where feature services been somewhat 'corrupted'. As a test, try publishing the data as a new service, and try overwriting the new service to see if that works. If it works, something is most likely corrupt with the service.
... View more
11-19-2024
01:25 PM
|
2
|
2
|
7834
|
|
POST
|
Hi @MonicaBeaton, you should still be able to access Portal through the following URL (https://machinename.domain.com:7443/arcgis/home). Starting at Enterprise 11.4, you can now update your Organization's URL:
https://enterprise.arcgis.com/en/portal/latest/administer/windows/update-the-organization-url.htm
If possible, I would recommend upgrading to 11.4.
... View more
11-19-2024
11:47 AM
|
1
|
0
|
1887
|
|
POST
|
@ChallagundlaSindhuraITS yes, you can use AGOL Notebooks to host the script. Below is an example on how to send an e-mail.
from arcgis.gis import GIS
# Variables
username = 'jskinner_rats'
password = '********'
# Connect to AGOL
gis = GIS('https://www.arcgis.com', username, password)
# Create list of users to send e-mail to
userList = []
user = gis.users.get('jskinner_rats')
userList.append(user)
# Construct message and send
messageSubject = 'This is a test message from AGOL'
messageMessage = 'This is the plain text message that we are sending.'
gis.users.send_notification(userList, subject = messageSubject, message = messageMessage, type = 'email')
... View more
11-19-2024
09:35 AM
|
1
|
4
|
1595
|
|
DOC
|
@TomShewring try removing the username/password variables from the following lines:
JakeSkinner_0-1732037379063.png
These should not be needed if you Windows Authentication is enabled. It will use the window's account that's signed into the server.
... View more
11-19-2024
09:30 AM
|
0
|
0
|
24973
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-08-2026 12:27 PM | |
| 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 |
Tuesday
|