|
DOC
|
Same error on multiple different computers, tried over two dozen hosted feature services. Fyi I have installed the https://developers.arcgis.com/python/guide/install-and-set-up/#Step:-2-Install-the-arcgis-package....is that somehow breaking the rest of the python functionality that came with Pro? Running script DownloadService... Generating Token Copying features with ObjectIDs from 0 to 26098 Failed script DownloadService... Traceback (most recent call last): File "C:\PY_SCRIPTS\ARCHIVE\Download Service.py", line 16, in <module> arcpy.GetParameterAsText(8), arcpy.GetParameterAsText(9), arcpy.GetParameterAsText(10)) File "C:\PY_SCRIPTS\ARCHIVE\DownloadServicewithAttachments_3x.py", line 537, in downloadservice3x addDomainsHosted(outputFC) File "C:\PY_SCRIPTS\ARCHIVE\DownloadServicewithAttachments_3x.py", line 51, in addDomainsHosted data = json.loads(json_acceptable_string) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\json\__init__.py", line 319, in loads return _default_decoder.decode(s) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\json\decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx)json.decoder.JSONDecodeError: Expecting ',' delimiter: line 892 column 71 (char 24998) Failed to execute (DownloadService).
... View more
01-03-2018
12:58 PM
|
0
|
0
|
15648
|
|
POST
|
This appears to be related where "Getty Images" owns the image placed over the ad.
... View more
01-03-2018
12:15 PM
|
0
|
0
|
2608
|
|
POST
|
LOL. They keep getting better....not photo shopping these! I'll message you offline with the URL's of where I encounter these....
... View more
01-03-2018
11:37 AM
|
1
|
2
|
2608
|
|
POST
|
I'm able to verify the path is valid in the following (sorry for the formatting Geonet toolbars don't work in IE): import arcpy, sys, traceback from arcpy import env import time, os from subprocess import call arcpy.CheckOutExtension("Foundation") arcpy.CheckOutExtension("Spatial") arcpy.CheckOutExtension("Network") OutFolder = "C:\\GDB\\OUTPUT\\" OutName = "TEST_"+time.strftime("%Y%m%d%H%M%S")+".gdb" GDB = OutFolder+"\\"+OutName if os.path.exists("C:\\GDB\\TEST.gdb"): arcpy.Delete_management("C:\\GDB\\TEST.gdb") else: print ("Nothing to Delete") arcpy.env.configKeyword = "DEFAULTS" arcpy.CreateFileGDB_management(OutFolder, OutName) arcpy.env.workspace = "C:\\GDB\\RESTON DB.sde" arcpy.ExtractData_production("TEST.DBO.Boundaries_And_AOIs",GDB,"DO_NOT_REUSE","","","") arcpy.ExtractData_production("TEST.DBO.Air_Photo_Footprints",GDB,"DO_NOT_REUSE","","","") arcpy.ExtractData_production("TEST.DBO.Elevation",GDB,"DO_NOT_REUSE","","","") arcpy.ExtractData_production("TEST.DBO.GridsAndGrats",GDB,"DO_NOT_REUSE","","","") arcpy.Compact_management(GDB) if os.path.exists("C:\\GDB\\TEST.gdb"): arcpy.Delete_management("C:\\GDB\\TEST.gdb") else: print ("Nothing to Delete") arcpy.Copy_management(GDB, "C:\\GDB\\TEST.gdb", "")
... View more
01-03-2018
08:22 AM
|
0
|
1
|
630
|
|
POST
|
I would love to hear an explanation as to why not being able to connect to the root of a network share is considered an "improvement" when literally all organizations organize their common GIS data....under a network share Esri is allegedly responsive to the "ideas" site, but I can't find the idea where customers were begging to not be able to connect to the root of a network share.
... View more
01-03-2018
05:38 AM
|
3
|
0
|
3496
|
|
IDEA
|
It'd be nice to see this in Pro. I accomplish this by converting a scale bar to graphic then rotating, then hope I don't change the scale.
... View more
01-02-2018
12:55 PM
|
0
|
0
|
6282
|
|
IDEA
|
This was (is) a pretty important tool to have in ArcMap, serving a variety of purposes such as a yearly North Drift map for a large geographic area, or auto-rotating a large number of points in a production mapping / map series workflow (again over a large geographic area).
... View more
01-02-2018
11:12 AM
|
20
|
2
|
2830
|
|
POST
|
Vincent Launstorfer this may be closed to the map collars I describe. https://www.usgs.gov/news/new-gis-ready-topographic-map-style-template-released However, you'd have to do it in Arc and import the map to Pro, as the USGS is not planning on updating the tool(s) to work in Pro.
... View more
01-02-2018
09:56 AM
|
0
|
0
|
3771
|
|
POST
|
Craig Williams the Align Marker to Stroke Or Fill does not replicate the behavior of representation symbology. The tool gets applied to the entire dataset in a one-size-fit-all approach, and only allows one line feature as input, whereas I'm using as many as 4 different road line representations (public road, private road, trail, road we can't acknowledge exists....) cartographically....representation symbology allows a cartographer precise refinement of each individual symbol. Additionally, I may need to move a symbol placement up to several map units away from its true location, as I exemplified with the second part of my previous example. I'm not able to find the Pro symbology property or GP tool that allows this degree of cartographic control. I would love to see a demonstration how the ArcMap representation functionality is accomplished in Pro, are you able to post a screen recording showing this? I also disagree with this "...we've found that a large number of organizations use derived data and edit the data to provide custom placement of symbols. From a workflow standpoint, this only differs from editing graphics in that you're editing features now instead." Who willingly maintains two divergent copies of the same data? What? That's why representation was added to ArcMap in the first place, so one could symbolize one dataset many different ways.
... View more
01-02-2018
09:53 AM
|
2
|
1
|
2805
|
|
POST
|
You can overwrite the entire FS using this (https://blogs.esri.com/esri/arcgis/2017/03/14/updating-your-hosted-feature-services-with-arcgis-pro-and-the-arcgis-api-for-python/) which is more "friendly" to error handling, or this (https://developers.arcgis.com/python/sample-notebooks/updating-features-in-a-feature-layer/) which would involve a little more complexity, and does not handle data deltas. import sys, string, os, arcpy, calendar, datetime, traceback,smtplib
import arcpy
from arcpy import env
from arcgis.gis import GIS
from subprocess import call
# Set the name of the feature service. This will control many variable in this script
NAME = "HFS_NAME"
# Define log setting
try:
d = datetime.datetime.now()
log = open("C:\\PYTHON_LOGS\LOG."+NAME+".txt","a")
log.write("----------------------------" + "\n")
log.write("----------------------------" + "\n")
log.write("Log: " + str(d) + "\n")
log.write("\n")
# Start process...
starttime = datetime.datetime.now()
log.write("Begin process:\n")
log.write(" Process started at " + str(starttime) + "\n")
log.write("\n")
### Start setting variables
# Mail Server Settings
SERVER = "mail_server"
PORT = "25"
FROM = "sasquatch"
MAILDOMAIN = '@big.foot'
# Data Steward getting the email. Needs to be their email address...without @big_foot at the end
userList=["is_real"]
# get a list of usernames from the list of named tuples returned from ListUsers
userNames = [u for u in userList]
# take the userNames list and make email addresses by appending the appropriate suffix.
emailList = [name + MAILDOMAIN for name in userNames]
TO = emailList
# Grab date for the email
DATE = d
#Delete any left over SD files from failed previous run
sdfilename = NAME+".sd"
sddraftfilename = NAME+".sddraft"
if os.path.exists(sdfilename): os.remove(sdfilename)
if os.path.exists(sddraftfilename):os.remove(sddraftfilename)
# Set the path to the ArcGIS Pro project
prjPath = r"C:\PRODUCTION\HFS_NAME.aprx"
# Update the following variables to match:
# Feature service/SD name in arcgis.com, user/password of the owner account
sd_fs_name = NAME
portal = "http://www.arcgis.com" # Can also reference a local portal
user = "users"
password = "pass"
# Set sharing options
shrOrg = True
shrEveryone = True
shrGroups = "some group id "
### End setting variables
# Local paths to create temporary content
relPath = sys.path[0]
sddraft = os.path.join(relPath, NAME+".sddraft")
sd = os.path.join(relPath, NAME+".sd")
# Create a new SDDraft and stage to SD
print("Creating SD file")
arcpy.env.overwriteOutput = True
prj = arcpy.mp.ArcGISProject(prjPath)
mp = prj.listMaps()[0]
arcpy.mp.CreateWebLayerSDDraft(mp, sddraft, sd_fs_name, 'MY_HOSTED_SERVICES', 'FEATURE_ACCESS','', True, True)
arcpy.StageService_server(sddraft, sd)
print("Connecting to {}".format(portal))
gis = GIS(portal, user, password)
# Find the SD, update it, publish /w overwrite and set sharing and metadata
print("Search for original SD on portal...")
#sdItem = gis.content.search("title:{} AND owner:{}".format(sd_fs_name, user), item_type="Service Definition")[0]
#sdItem = gis.content.search(query="title:"+ sd_fs_name + " AND owner: " + user)[0]
#sdItem = gis.content.search("id:som sd id")
sdItem = gis.content.search("title:HFS_NAME AND owner:user AND id:some sd id", item_type="Service Definition")[0]
print("Found SD: {}, ID: {} \n Uploading and overwriting...".format(sdItem.title, sdItem.id))
sdItem.update(data=sd)
print("Overwriting existing feature service...")
fs = sdItem.publish(overwrite=True)
if shrOrg or shrEveryone or shrGroups:
print("Setting sharing options...")
fs.share(org=shrOrg, everyone=shrEveryone, groups=shrGroups)
print("Finished updating: {} - ID: {}".format(fs.title, fs.id))
# Clean up SD files
os.remove(sd)
os.remove(sddraft)
# Write nothing to log if success.
endtime = datetime.datetime.now()
log.write(" Completed successfully in "
+ str(endtime - starttime) + "\n")
log.write("\n")
log.close()
print('done')
# Something with wrong
except:
# Get the traceback object
tb = sys.exc_info()[2]
tbinfo = traceback.format_tb(tb)[0]
# Concatenate information together concerning
# the error into a message string
pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])
msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"
# Return python error messages for use in
# script tool or Python Window
arcpy.AddError(pymsg)
arcpy.AddError(msgs)
# Print Python error messages for use in
# Python / Python Window
log.write("" + pymsg + "\n")
log.write("" + msgs + "")
log.close()
# Define email message if something went wrong
SUBJECT = "Notification of Un-Successful AGOL Update of "+NAME
MSG = "Did Not Update: {} - ID: {} at "+ str(DATE)+ "; " +pymsg + "; " + msgs
print (MSG)
print (emailList)
# Send an email notifying steward of successful archive
#MESSAGE = "\ From: %s To: %s Subject: %s %s" % (FROM, ", ".join(TO), SUBJECT, MSG)
MESSAGE = "Subject: %s\n\n%s" % (SUBJECT, MSG)
try:
try:
print("Connecting to Server...")
server = smtplib.SMTP(SERVER,PORT)
try:
print("Login...")
try:
print("Sending mail...")
server.sendmail(FROM, TO, MESSAGE)
except Exception as e:
print("Send Error Mail\n" + e.message)
except Exception as e:
print("Error Authentication Server: check the credentials \n" + e.message)
except Exception as e:
print("Error Connecting to Server : check the URL of the server and communications port ( 25 and ' the default ) \n" + e.message)
print("Quit.")
server.quit()
except Exception as e:
print (e.message)
... View more
01-02-2018
06:15 AM
|
2
|
2
|
5083
|
|
POST
|
Are you using this method? https://community.esri.com/groups/survey123/blog/2016/12/14/migrating-data-from-the-survey-feature-service-to-an-enterprise-geodatabase FYI, ESRI tech support will not support the above method (despite ESRI publishing it).
... View more
01-02-2018
04:28 AM
|
1
|
0
|
1002
|
|
IDEA
|
In ArcGIS Pro 2.0.1 when creating a new project from a template, and selecting a template from "Portal", currently ALL groups the user is a member of are displayed. The group list should ONLY show groups the user is a member of AND contain a template file. For users whom are members of many groups the quest for finding what group contains the template they need is problematic.
... View more
12-31-2017
10:06 AM
|
2
|
3
|
1609
|
|
POST
|
"investigating" the SQL lite files does not reveal anything interesting, what they do, or why such an excessive number of them is generated.
... View more
12-30-2017
01:09 PM
|
0
|
0
|
4436
|
|
POST
|
"One comment I got was, "you can disable indexing." Imagine if you just bought a new car: "The tires are out of round and it vibrates violently at highway speeds" Dealer: "Don't drive it on the highway"
... View more
12-30-2017
12:52 PM
|
0
|
3
|
4436
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-17-2022 12:19 PM | |
| 1 | 03-14-2019 06:24 AM | |
| 1 | 07-12-2018 09:29 AM | |
| 1 | 06-27-2019 12:08 PM | |
| 2 | 09-23-2019 11:03 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-26-2026
07:12 AM
|