|
POST
|
Thanks Leslie- After I posted it I started poking around and realized there is a time window associated with it.
... View more
01-20-2021
01:21 PM
|
1
|
0
|
1424
|
|
POST
|
I've watched my number go from 18 down to 16 in a couple of days. What does that number refer to? JoeBorgione_0-1611176871575.png
... View more
01-20-2021
01:08 PM
|
0
|
3
|
1433
|
|
POST
|
Just a WAG (wild a$$ guess) but if your data is in a file geodatabase, try running check geometry, followed by a repair geometry as needed.
... View more
01-20-2021
07:10 AM
|
0
|
1
|
1771
|
|
POST
|
Where is this published: to your portal or AGOL? Is the ID number that it changes it to the correct table? Can you edit the rule once it's published? (I don't think you can....)
... View more
01-19-2021
10:56 AM
|
0
|
2
|
6444
|
|
POST
|
Something occurred to me: What style of metadata did you create the metadata in? I wonder if your colleagues cannot see it because they have their metadata set to a different style....
... View more
01-15-2021
09:02 AM
|
1
|
1
|
1773
|
|
POST
|
You'd probably want to ask Google how they did it. Are you using ESRI's Network analyst with which to develop a route?
... View more
01-15-2021
07:45 AM
|
0
|
0
|
1351
|
|
POST
|
However when I forward a file gdb to my colleagues... Not sure what you mean by this. The meta data should follow the feature class it was assigned to.
... View more
01-15-2021
07:42 AM
|
0
|
0
|
1776
|
|
POST
|
Shouldn't matter if you're in ArcMap or Pro; a query is a query. I don't know how your data is attributed, but in my data I can make a selection on the Sections such that: TOWN_RANGE = 1S3Wand (SECTION_NU = 17 or SECTION_NU = 16 or SECTION_NU = 9)
... View more
01-14-2021
07:21 AM
|
0
|
0
|
3612
|
|
POST
|
I'll give it a second try then; maybe it's 2.6 thing. I'm late in updating...
... View more
01-13-2021
02:07 PM
|
0
|
0
|
2173
|
|
POST
|
Are you running the scheduled task on a pc or some sort of server? I've never been able to get Task Scheduler to work on a PC; for me the code was bullet proof but the failure is in task schedular. Looking at one of your scripts, everybody has their own style of doing things. I would run it as one script and make each of the individual scripts a def() that is called by main(). I don't see anything wrong with your code per se. Below is what we use as a basic template for our python scripts. Each geoprocessing def() has only one except to one try. We print to the log file no matter what happens, success or failure. #TEMPLATE to send error emails automatically
#TEMPLATE to insure correct error trapping automatically
#SEE END OF SCRIPT FOR STARTING POINT CODE
# <<<<<<<<< CONFIG SETTINGS TO BE ENTERED BY TEMPLATE USER
# sample imports
import arcpy
import sys
import os
import smtplib
# sample script level variables/paths <<<<<<<<<<<HERE
samplePath = r"\\somePath\arcgisresources\common\geocode\backupLoc"
samplePath2 = r"\\somePath\arcgisresources\common\geocode"
# sample init HERE
arcpy.env.overwriteOutput = True
def sendEmail(errMessage): # if errors send email
from_addr = "[email protected]"
to_addr = ["[email protected]", "[email protected]"] # <<<<< ENTER CUSTOMER EMAIL HERE
subject = "Errors: ERROR DESCRIPTION HERE" # <<<<<<< ERROR DESC HERE
msg_text = errMessage
msg = "From: %s\nTo: %s\nSubject: %s\n\n%s" % (from_addr, to_addr, subject, msg_text)
server = "SomeEmailServer.org"
server = smtplib.SMTP(server)
server.sendmail(from_addr, to_addr, msg)
server.quit()
# FUNCTIONS HERE
def functionName(parameter1, parameter2, etc):
try:
#<<<<<<<<LOGIC HERE
print "Success: DESCRIPTION HERE will display in log file"
except Exception as err:
print err
sendEmail(err)
# MAIN FUNCTION HERE
def main():
# start log file HERE
logFile = r"E:\scripts\locators_recreate_publish\logs\locators recreate publish.log" #<<<<<<<<<< INSERT LOG FILE PATH HERE
logoutput = open(logFile,'w')
beginTime = time.strftime('%Y-%m-%d %H:%M:%S')
logoutput.write("Began at # " + beginTime + "\n")
sys.stdout = logoutput #<<<< POINTS ERROR MESSAGES TO BE RECORDED IN LOG FILE, NOT TO THE PYTHON DEBUG SCREEN
# paths variables <<<<<<<<<<<<HERE
samplePathFOR_DEF_MAIN = r"\\somePath\arcgisresources\common\geocode\backupLoc"
samplePath2FOR_DEF_MAIN = r"\\somePath\arcgisresources\common\geocode"
# SCRIPT LOGIC <<<<<<<<<<<HERE
functionName(parameter1, parameter2, etc)
functionName(parameter1, parameter2, etc)
# close log file HERE
logoutput.write("Ended at # " + time.strftime('%Y-%m-%d %H:%M:%S') + "\n")
logoutput.close()
###end def main
# script start HERE, points python.exe etc to use the def main as a starting point
if __name__ == '__main__': #if def main exists, call it
main() #calls def main
... View more
01-13-2021
12:02 PM
|
0
|
0
|
5926
|
|
POST
|
perhaps you could post your code up. It would be nice to capture the error if there is one in your try/except block. (See https://community.esri.com/t5/community-help-documents/how-to-write-a-good-question-that-will-generate-responses/tac-p/1014703#M86 on how to post your python code)
... View more
01-13-2021
10:43 AM
|
0
|
0
|
5941
|
|
POST
|
Yeah... I don't even look closely at the plat pdf, I just export 'em to a tif. The line work I've encountered so far has all be black and white, but the firms like to toss in their colorful logo (marketing, marketing, marketing) and that seems to do it.
... View more
01-13-2021
09:40 AM
|
0
|
0
|
2854
|
|
POST
|
This thread popped up in my activity log today. You can do the same calculation in pro as I described above or use the int() function : JoeBorgione_0-1610558667758.png JoeBorgione_1-1610558737351.png I guess the int() function would have worked originally too....
... View more
01-13-2021
09:26 AM
|
3
|
0
|
13997
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-11-2018 07:12 AM | |
| 1 | 05-17-2021 11:18 AM | |
| 1 | 06-29-2021 11:42 AM | |
| 1 | 07-05-2012 07:49 AM | |
| 1 | 09-03-2016 06:16 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-19-2026
11:56 AM
|