Hi Jeff,
Thanks very much for the suggestions. I tried:
1.
try:
XYEventsFL = ap.MakeXYEventLayer_management(CleanedIncidentsPath, "Longitude", "Latitude",XYEventsTemp, WGS84, "")
except (ValueError, SystemError, TypeError):
pass
2.
try:
XYEventsFL = ap.MakeXYEventLayer_management(CleanedIncidentsPath, "Longitude", "Latitude",XYEventsTemp, WGS84, "")
except ValueError, SystemError, TypeError:
pass
3.
try:
XYEventsFL = ap.MakeXYEventLayer_management(CleanedIncidentsPath, "Longitude", "Latitude",XYEventsTemp, WGS84, "")
except ValueError, SystemError:
pass
4.
try:
XYEventsFL = ap.MakeXYEventLayer_management(CleanedIncidentsPath, "Longitude", "Latitude",XYEventsTemp, WGS84, "")
except (ValueError, SystemError):
pass
5.
try:
XYEventsFL = ap.MakeXYEventLayer_management(CleanedIncidentsPath, "Longitude", "Latitude",XYEventsTemp, WGS84, "")
except Exception:
pass
but unfortunately none of the above have prevented the errors from running. It appears that an error is triggered for each row in the csv table being used to make the XY Event layer and is quite extensive (greater than 80,000 records in some cases)
I have noticed when I run the code thru IPython in the 10.8 version or thru Jupyter notebook in the 10.8 version the error is not triggered….
It seems really surprising to me that even Exception did not work….I feel I may be grasping at straws in light of this seeming override command not having any effect but do you by chance have any other thoughts? Perhaps I did not write the code correctly?
Thanks very much for the help!
Sophia