PSU-CSAR / vb-bagis

Source code for BAGIS V3 ESRI Add-In
0 stars 1 forks source link

Set AOI to AOI downloaded from eBAGIS - surface.gdb is corrupted #53

Closed jdduh closed 5 years ago

jdduh commented 7 years ago

This is done in ArcGIS 10.4.1.

I got this error message when accessing the AOI downloaded from eBAGIS the first time.

image

Subsequently, when using the AOI utilities tool to set the AOI to any AOI, I got this error message.

image

After restarting ArcMap, the problem went away and everything is back to normal until the next time I set the AOI to an AOI that is freshly downloaded from eBAGIS.

jdduh commented 7 years ago

Here is the error message in a text file. set_aoi_utilities_error.txt

lbross commented 7 years ago

I have encountered the surface.gdb error before, even on AOI's that I work with every day. I don't think this has anything to do with eBAGIS. The subroutine that generated the error initially uses classes from the GeoAnalyst ArcObjects library which seems to work less reliably with each new version of ArcMap.

I found that we are not explicitly setting the outWorkspace in the rasterAnalysis environment. I will fix this and maybe it will help.

It seems that once the subroutine fails once, it continues to fail which is what generated the ongoing exception and crash. From the stacktrace you provided, I can add some error handling that will prevent the crash but I don't know how well BAGIS will continue to function avoiding the crash. It won't be able to access the dem info.

lbross commented 7 years ago

I have made and tested the changes outlined above. Let me know when you are ready for a new add-in.

lbross commented 6 years ago

I got this error message today. Restarted ArcMap and I was fine. This is a head scratcher.