I'm running a fairly large script in batch. I've tried it two times now, at it crashes at about 4 hours in and chrashes maybe 20 min into the second batch, giving me the dreaded 99998 error. I've tried to restart both the computer and ArcMap.
ExecuteError: ERROR 999998: Unexpected Error.
I expect it might have something to do with memory, but I had open the task manager while running the script and it only used about ~30 % of the processor and ~30 % memory.
Im not really sure about this, but could it be a problem with arcpy.MakeFeatureLayer_management() or the making of temporary datasets, which I dont delete? An example would be like this:
outCon = Con(viewshed, 1, 0, "value = 0")
I don't delete outCon anywhere, as I thought they might only be temporary.
How would I proceed with that?