POST
|
Seems like a great idea to test out during Shaken Fury! From the CUSEC side of things, the Shaken Fury Hub site is being used to provide a curated, central place to access information products related to the exercise. As of now, this site contains simulated power outage data (from DOE), GasBuddy status, SABER private Sector data, information from Safety Assessment teams, as well as linkages to all of the information shared by FEMA and CUSEC states. Note: Some of the content is publicly accessible, other content requires an ArcGIS Online User account and membership in the CUSEC Shaken Fury Group. You can request access here if you don't already have it. CUSEC (and DHS S&T who I'm supporting) is very interested in getting input from the community on how the Shaken Fury Hub, and the various information products contained within, work for folks. Please provide feedback in this theme, or by submitting feedback through this simple S123 form. Thanks! Erik Endrulat G&H International / DHS S&T Contract Support
... View more
06-04-2019
08:34 AM
|
1
|
0
|
862
|
POST
|
Should be available to anyone with ArcGIS Online, or at least anyone with edit permissions. Here's some info on how to access it : https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/create-custom-field-calculations-using-arcade-expressions/
... View more
04-08-2019
06:48 PM
|
0
|
0
|
2740
|
POST
|
Francis Hourigan - I noticed the same thing. It appears this function is only an option using the Arcade 'Calculate Field' utility.
... View more
03-27-2019
11:27 AM
|
1
|
2
|
2740
|
POST
|
Thanks Owen, yes, I can contact Esri Support on this. I realize that the first section in section 3 is a self-hosted WAB (that one comes up fine regardless of the organization you log in through. It's the third section beneath that that contains web maps which don't come up.
... View more
10-24-2017
10:36 AM
|
0
|
1
|
1301
|
POST
|
Owen- Yes, I confirmed that the members of the other org can open the webmap; however the issue is still if the webmap (or app) URL includes the org prefix then the user is asked to sign into the 'parent' organization, so the org prefix needs to be replaced or removed. Yes, the public story map is also shared to the private group. Here is the item: https://www.arcgis.com/apps/MapSeries/index.html?appid=9180084e4325488b8261facc1dc1aa3e An example of the private / group-shared content can be found on the 3rd tab (Phase 1: Planning), third section (Impacts, continued).
... View more
10-24-2017
09:38 AM
|
0
|
1
|
1301
|
POST
|
Yes, I can confirm that I am sharing the permissions of each of the component pieces (layers, webmaps and apps) to the same group. I believe that the same issue that i'm facing with the storymap in question is expressed in another way that you and probably other users run into all the time, that is, when sharing an app from your organization (e.g. http://ORG-A.maps.arcgis.com/apps/TimeAware/index.html?appid=463152eb76724f7587cdb59baa7a856a ) to a user in a different organization (let's say ORG-B), the user from the organization that you are sharing the item to will be requested to sign into ORG-A (which they won't have access to). In order to access, they would have to either change the URL to http://ORG-B.maps.arcgis... or http://www.arcgis.com/..). I think this same issue is behind the 'mixed-org' sharing problem I'm having with the storymap.
... View more
10-24-2017
07:22 AM
|
0
|
3
|
1301
|
POST
|
Thanks for the reply, Stephen. I'm not aware of any sharing property allowing for an item to be shared to any organization other than it's 'parent' organization. Is there a setting for that that i've somehow missed?
... View more
10-24-2017
07:02 AM
|
0
|
5
|
1301
|
POST
|
I run into an issue with a public storymap that contains private content (webmaps, apps, etc.) shared to a group. Viewers that are Members of the shared group, but not a member of the 'parent' organization for the webmap or app are unable to access. For example: Parent Storymap owned by organization X (Public-level sharing) Embedded webmap owned by organization X (Shared to 'private' group) Embedded webmap displays correctly for individual from org. X (member of private group) but not for individual from organization Y (also member of 'private' group) - no error displayed via the browser, just a blank screen with following error via Developer tools: {"error":{"code":403,"messageCode":"GWM_0003","message":"You do not have permissions to access this resource or perform this operation.","details":[]}} I searched through GeoNet, couldn't find any reports of something similar - I'm interested if anyone has any suggestions on how to resolve this! Thanks!
... View more
10-24-2017
06:09 AM
|
0
|
9
|
2197
|
POST
|
Hi Kelly, No, this issue seemed to resolve itself later the same day that I reported it. Still not sure what caused it, i'll contact tech support next time I run into this. Thanks, Erik
... View more
05-23-2017
07:02 AM
|
0
|
1
|
672
|
POST
|
I've encountered this error today on all feature services in my organization. I'm unable to access content on the item page, or from the REST service directly (where the error I get is "The requested service is not available."). Has anyone else had this problem?
... View more
05-18-2017
07:33 AM
|
0
|
3
|
1068
|
POST
|
Jeff: Yes, I have successfully run this script while ArcMap was not open, though the ArcGIS Connection globe is present in the taskbar and indicates that i'm signed into ArcGIS Online. I have not yet been able to run the task while logged out, I've also run into the problem where the script fails when run several consecutive times, I get this error: Executing: UploadServiceDefinition C:\Workspace\KYEM_Test\KYEM_TEST3.sd "My Hosted Services" KYEM_TEST3 # FROM_SERVICE_DEFINITION # STARTED OVERRIDE_DEFINITION SHARE_ONLINE PRIVATE NO_SHARE_ORGANIZATION #
Start Time: Thu Sep 19 08:41:03 2013
ERROR 001566: Service overwrite error: failed to delete the service.
ERROR: code:400, Item 'e18aae36f2874deba39e380611c59745' does not exist or is inaccessible., Bad syntax in request.
Failed to execute (UploadServiceDefinition). However, when attempted again it typically works, so this seems like a relatively minor problem that can be solved with a 'try until no error' loop. I'd definitely appreciate it if you let me know when you have more information, specifically about the sign-in issue. Thanks, Erik
... View more
09-19-2013
08:05 AM
|
0
|
0
|
1011
|
POST
|
Correction on previous post: I attempted to run the publishing script again today from within my python IDE (pyscripter) and it executed correctly without having signed into ArcGIS Online manually through Desktop. I hadn't changed anything in my script from last week before executing it, so it's possible that logging out and back in on the system may account for it working now. However, I confirmed that I am still unable to get it to work though a scheduled task. I logged the error to a text file, and the following was recorded: Executing: UploadServiceDefinition C:\Workspace\KYEM_Test\KYEM_TEST3.sd "My Hosted Services" KYEM_TEST3 # FROM_SERVICE_DEFINITION # STARTED OVERRIDE_DEFINITION SHARE_ONLINE PRIVATE NO_SHARE_ORGANIZATION #
Start Time: Mon Sep 16 14:06:05 2013
Failed to execute. Parameters are not valid.
ERROR 000732: Server: Dataset My Hosted Services does not exist or is not supported
WARNING 001404: You are not signed in to ArcGIS Online.
Failed to execute (UploadServiceDefinition).
Failed at Mon Sep 16 14:06:05 2013 (Elapsed Time: 0.02 seconds)
The script (only minor changes from Esri's sample):
import arcpy, os, sys
from datetime import datetime
import xml.dom.minidom as DOM
arcpy.env.overwriteOutput = True
# Define global variables from User Input
mapDoc = 'KYEM.mxd'
serviceName = 'KYEM'
shareLevel = 'PRIVATE' # Options: PUBLIC or PRIVATE
shareOrg = 'NO_SHARE_ORGANIZATION' # Options: SHARE_ORGANIZATION and NO_SHARE_ORGANIZATION
shareGroups = '' # Options: Valid groups that user is member of
tempPath = sys.path[0]
#SignInToPortal function does not work in 10.2
#for 10.1: uncomment below line to enable sign in
#for 10.2: (1): Sign in to arcgis desktop and check 'sign in automatically'
# (2): Schedule task to run publishFS.py script, using same user as in step 1
##arcpy.SignInToPortal_server('','','http://www.arcgis.com/')
sdDraft = tempPath+'/{}.sddraft'.format(serviceName)
newSDdraft = 'updatedDraft.sddraft'
try:
os.remove(serviceName+'.sd')
print 'SD already exists, overwriting..'
SD = os.path.join(tempPath, serviceName + '.sd')
print 'File removed and overwritten'
except OSError:
print 'No SD exists, writing one now.'
SD = os.path.join(tempPath, serviceName + '.sd')
try:
# create service definition draft
analysis = arcpy.mapping.CreateMapSDDraft(mapDoc, sdDraft, serviceName, 'MY_HOSTED_SERVICES')
# Read the contents of the original SDDraft into an xml parser
doc = DOM.parse(sdDraft)
# The follow 5 code pieces modify the SDDraft from a new MapService
# with caching capabilities to a FeatureService with Query,Create,
# Update,Delete,Uploads,Editing capabilities. The first two code
# pieces handle overwriting an existing service. The last three pieces
# change Map to Feature Service, disable caching and set appropriate
# capabilities. You can customize the capabilities by removing items.
# Note you cannot disable Query from a Feature Service.
tagsType = doc.getElementsByTagName('Type')
for tagType in tagsType:
if tagType.parentNode.tagName == 'SVCManifest':
if tagType.hasChildNodes():
tagType.firstChild.data = 'esriServiceDefinitionType_Replacement'
tagsState = doc.getElementsByTagName('State')
for tagState in tagsState:
if tagState.parentNode.tagName == 'SVCManifest':
if tagState.hasChildNodes():
tagState.firstChild.data = 'esriSDState_Published'
# Change service type from map service to feature service
typeNames = doc.getElementsByTagName('TypeName')
for typeName in typeNames:
if typeName.firstChild.data == 'MapServer':
typeName.firstChild.data = 'FeatureServer'
#Turn off caching
configProps = doc.getElementsByTagName('ConfigurationProperties')[0]
propArray = configProps.firstChild
propSets = propArray.childNodes
for propSet in propSets:
keyValues = propSet.childNodes
for keyValue in keyValues:
if keyValue.tagName == 'Key':
if keyValue.firstChild.data == 'isCached':
keyValue.nextSibling.firstChild.data = 'false'
#Turn on feature access capabilities
configProps = doc.getElementsByTagName('Info')[0]
propArray = configProps.firstChild
propSets = propArray.childNodes
for propSet in propSets:
keyValues = propSet.childNodes
for keyValue in keyValues:
if keyValue.tagName == 'Key':
if keyValue.firstChild.data == 'WebCapabilities':
keyValue.nextSibling.firstChild.data = 'Query,Create,Update,Delete,Uploads,Editing'
# Write the new draft to disk
f = open(newSDdraft, 'w')
doc.writexml( f )
f.close()
# Analyze the service
analysis = arcpy.mapping.AnalyzeForSD(newSDdraft)
if analysis['errors'] == {}:
# Stage the service
arcpy.StageService_server(newSDdraft, SD)
# Upload the service. The OVERRIDE_DEFINITION parameter allows you to override the
# sharing properties set in the service definition with new values.
arcpy.UploadServiceDefinition_server(SD, 'My Hosted Services', serviceName, '', '', '', '', 'OVERRIDE_DEFINITION','SHARE_ONLINE', shareLevel, shareOrg, shareGroups)
print 'Uploaded and overwrote service'
# Write messages to a Text File
txtFile = open(tempPath+'/{}-log.txt'.format(serviceName),"a")
txtFile.write (str(datetime.now()) + " | " + "Uploaded and overwrote service" + "\n")
txtFile.close()
else:
# If the sddraft analysis contained errors, display them and quit.
print analysis['errors']
# Write messages to a Text File
txtFile = open(tempPath+'/{}-log.txt'.format(serviceName),"a")
txtFile.write (str(datetime.now()) + " | " + analysis['errors'] + "\n")
txtFile.close()
except:
print arcpy.GetMessages()
# Write messages to a Text File
txtFile = open(tempPath+'/{}-log.txt'.format(serviceName),"a")
txtFile.write (str(datetime.now()) + " | Last Chance Message:" + arcpy.GetMessages() + "\n")
txtFile.close()
... View more
09-16-2013
01:23 PM
|
1
|
0
|
1011
|
POST
|
I get the error when running the python script, and the scheduled task fails (presumably from the same error but I haven't logged the errors yet).
... View more
09-16-2013
10:57 AM
|
0
|
0
|
1011
|
POST
|
I tried the approach you suggested but was unable to successfully publish the service as a scheduled task (or manually while not logged in through Desktop). I'm very interested in any other suggestions you or other folks may have that would enable running the update FS as a scheduled task. Thanks! Erik
... View more
09-12-2013
08:09 AM
|
0
|
0
|
1011
|
POST
|
Kevin, Great, thanks for weighing in on the changes in 10.2 regarding the SignIn function. Do you have a recommended workflow to update feature services using a scheduled task when a user isn't logged into the machine. Is that no longer possible? Thanks much, Erik
... View more
09-10-2013
08:22 AM
|
0
|
0
|
1112
|
Title | Kudos | Posted |
---|---|---|
1 | 09-16-2013 01:23 PM | |
1 | 06-04-2019 08:34 AM | |
1 | 03-27-2019 11:27 AM | |
22 | 03-13-2013 03:03 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|