|
POST
|
From How To: Calculate geometry in ArcGIS Pro , the first sentence "The Calculate Geometry interface of Field Calculation in ArcMap does not exist in ArcGIS Pro" is extremely misleading, as when someone "Googles" https://www.google.com/search?q=arcgis+pro+calculate+field&rlz=1C1GGRV_enUS748US748&oq=arcgis+pro+calculate+field&aqs=ch… it's among the top hits.
... View more
08-08-2018
04:39 AM
|
0
|
2
|
1346
|
|
POST
|
What version of Pro, and what format is the data in (SDE, FGDB, what version), and what is the field type (text, float)? I cannot repro your first issue in any environment, a screen recording of your workflow might help. On that column resizing thing, totally sympathetic. For folks that spend a lot of time in the Attribute Table, this is one of the most frustrating Pro bugs. Kory Kramer, despite deliberately doing lots of things wrong, I am able to repro the "calc field save disabled" error the OP is experiencing in 2.2., FGDB, all field types. However, on a simulated "crash", upon recovery of the project, the calculated values persist, so I'm wondering if field calculator "edits" are not really edits, and are committed instantly, which raises another problem: there is no way to back out of a mis-calculated field operation.
... View more
08-08-2018
04:36 AM
|
0
|
1
|
3866
|
|
POST
|
I like your script better, but in a pinch, this will work (Pro): 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 = "GRSM_EXOTICS"
# 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 = "1.2.3.4"
PORT = "25"
FROM = "[email protected]"
MAILDOMAIN = '@clown.com'
# Data Steward getting the email. Needs to be their email address...without @nps.gov at the end
userList=["the_joker"]
# Define a seperate email list if fail, data steward won't know what error message means
userListFail = ["sasquatch"]
# get a list of usernames from the list of named tuples returned from ListUsers
userNames = [u for u in userList]
userNamesFail = [u for u in userListFail]
# take the userNames list and make email addresses by appending the appropriate suffix.
emailList = [name + MAILDOMAIN for name in userNames]
emailListFail = [name + MAILDOMAIN for name in userNamesFail]
TO = emailList
TOFail = emailListFail
# Grab date for the email
DATE = d
# Use X Drive for testing, once script is working, change to full UNC path IAW File and Folder naming protocol
# e.g. \\\\some_server\COMMON\RMS\Fisheries_Management\Angler_Creel\Data\Tabular\Archive\\
OutFolder = "\\\\some_server\COMMON\Veg\Exotic_Plants\EXOTICS_RESTON_BACKUPS\\"
# First letters need to indicate protocol needs to be same name as SDE Feature Class
# Don't forget underscore at end of feature class name!
OutName = NAME+"_"+time.strftime("%Y%m%d%H%M%S")+"_ARCHIVE.gdb"
GDB = OutFolder+"\\"+OutName
arcpy.env.configKeyword = "DEFAULTS"
arcpy.CreateFileGDB_management(OutFolder, OutName)
#This needs to be the full path to the SDE connection file, which must be in the same folder
# AFter testing and moving to final folder, needs to be UNC path
# e.g \\\\some_server\COMMON\RMS\Fisheries_Management\Angler_Creel\Data\Tabular\Archive\\RESTON BATS.sde
arcpy.env.workspace = "\\\\some_server\COMMON\Veg\Exotic_Plants\EXOTICS_RESTON_BACKUPS\\RESTON_EXOTICS.sde"
# Converts the SDE data, which will always start with [DBNAME].[SCHEMA]
arcpy.FeatureClassToFeatureClass_conversion("EXOTICS.DBO.GRSM_EXOTICS_SITE_POINT",GDB, "GRSM_EXOTICS_SITE_POINT", "", "", "DEFAULTS")
arcpy.FeatureClassToFeatureClass_conversion("EXOTICS.DBO.GRSM_EXOTICS_SITE_POLY",GDB, "GRSM_EXOTICS_SITE_POLY", "", "", "DEFAULTS")
arcpy.Compact_management(GDB)
# Write nothing to log if success.
endtime = datetime.datetime.now()
log.write(" Completed successfully in "
+ str(endtime - starttime) + "\n")
log.write("\n")
log.close()
#Define email message if success
SUBJECT = "Notification of Successful Archive of "+NAME
MSG = NAME + " was archived at "+ GDB +" at "+ str(DATE)
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)
# Something went 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 Archive of "+NAME
MSG = "Did Not archive "+NAME +" at "+ str(DATE)+ "; " +pymsg + "; " + msgs
print (MSG)
print (emailListFail)
# Send an email notifying steward of unsuccessful 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, TOFail, 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
08-07-2018
09:34 AM
|
0
|
0
|
8728
|
|
POST
|
Old Software: Can move mxd. Stuff doesn't stop working. Functioning; New software. Can move aprx. Stuff stops working. Bug. It's that simple.
... View more
08-07-2018
04:06 AM
|
8
|
1
|
4999
|
|
POST
|
What happens when: You publish to the hosting server; or When you set up the join, etc..in Arc Map, import the Map into Pro, and then publish.
... View more
08-06-2018
06:41 AM
|
0
|
2
|
2980
|
|
POST
|
You'll have to provide many, many more details about your specific environment. What version of ArcGIS Server? Is the data a FGDB and stored in the hosting server when you publish? Is it coming from SDE? What version? What brand and version of SQL if SDE? What version of windows is the server running on? How exactly is the join created? For the result, are the missing layers symbolized with a join field? Probably still won't get your question answered on Geonet, but Tech Support will ask the same exact questions when you call them.
... View more
08-06-2018
05:08 AM
|
1
|
4
|
2980
|
|
POST
|
well....sort of "Dev". It's a server that supports a workgroup that spends most of the summer elsewhere.....they'll never know!
... View more
08-05-2018
12:39 PM
|
0
|
0
|
1896
|
|
POST
|
Yes, I foolishly uninstalled the 10.5.1 WA and attempted to install the 10.6.1 WA without checking to see if IIS would restart, something I know to check. Installing https://support.microsoft.com/en-us/help/4338831/july172018kb4338831osbuildpreviewofmonthlyrollup allowed me to proceed with the install. This was on production, not development. I'm so used to ArcGIS server upgrade working flawlessly...but there is a complicated arrangement of Portals and Wed Adaptors on our dev so.....take away my parking spot!
... View more
08-05-2018
12:37 PM
|
0
|
1
|
1896
|
|
POST
|
I fondly recall the days of setting up GIS images for Virtual Computing Lab......if only I had a university IT budget....
... View more
08-04-2018
03:21 PM
|
0
|
0
|
2906
|
|
POST
|
Weird. Cleared cache and it reloaded. Probably because you're using Spyder as the default editor. Our position is to deploy the software as advertised, then users can customize at will. But few, if any, are going to be using Spyder.
... View more
08-04-2018
02:59 PM
|
0
|
2
|
2906
|
|
POST
|
...and you're on IIS and you have Windows Updates managed "for you". There was known quality issue with a Windows Update that blows up IIS: It can't restart. As upgrading ArcGIS Server requires a reinstall of the Web Adaptor, which requires an IIS restart, you're stuff out of luck if you did try it. Fortunately, there is a sort of fix. https://support.microsoft.com/en-us/help/4345424/improvements-and-fixes-windows-8-1-and-server-2012-r2 Microsoft Update Catalog See these threads for lots of troubleshooting and speculation: July 2018 update KB4338815 and KB4338824 causes issues within World Wide Web Publishing Service on Windows Server 2012 R… https://www.reddit.com/r/sysadmin/comments/8xfdyd/patch_tuesday_megathread_20180710/ IISReset Issues after July 2018 Patches IISRESET results in W3SVC stuck in stopping status after July 2018 patches : The Official Microsoft IIS Forums My 2 cents, it'd be great if the WA install had some pre-install testing that could be run, so if any IIS stability issues are detected, it would recommend not uninstalling your current WA. 6 hours of my life I'll never get back, thanks M$........
... View more
08-04-2018
02:52 PM
|
3
|
5
|
3464
|
|
POST
|
Lol it is....this is what you posted...if Pro is doing THAT, you have bigger problems than I do....
... View more
08-04-2018
02:44 PM
|
0
|
4
|
2906
|
|
POST
|
08-04-2018
12:33 PM
|
0
|
6
|
3544
|
|
POST
|
I wouldn't characterize it as "reluctant"...We JUST got the install script to the point where Pro auto deployment will complete an install without requiring a call to TS. Once we start adding "Power Python" to the mix, where most folks, the most they'll ever do in Py is change a variable or use it to clip 100 rasters with the same polygon, IMHO, for software that is 4 years old ....paraphrasing another disgruntled Pro customer "I didn't break it so I'm not going to fix it". Corporate GIS deployments are pretty locked down, with months of "approvals" just about what folder it's going to get installed in. They do not want to hear that someone has to administratively log into 3000 computers and further tweak python to get it to work.
... View more
08-04-2018
12:13 PM
|
0
|
7
|
3544
|
|
POST
|
This might shed some light: So I imported your schema XML with data into a new FGDB, and got this when compressing it: So I eat my words, it may BE a data issue after all. Still, I'd love to know what it is......
... View more
08-03-2018
03:28 PM
|
0
|
0
|
4349
|
| 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
|