Unexpected error 999998 when using the DensifySamplingNetwork_ga arcpy function

355
1
01-07-2019 11:59 AM
EliseosMucaki
New Contributor III

Hello, I have a Kriging layer file, and on this file I tried to use the DensifySamplingNetwork_ga function in Arcpy. But I got an error:

Runtime error  Traceback (most recent call last):   File "<string>", line 1, in <module>   File "d:\arcgis 10.4.1\desktop10.4\arcpy\arcpy\ga.py", line 888, in DensifySamplingNetwork     raise e ExecuteError: ERROR 999998: Unexpected Error. Failed to execute (DensifySamplingNetwork).

I just ran the following commands:

import arcpy

arcpy.CheckOutExtension("GeoStats")

arcpy.DensifySamplingNetwork_ga("D:\test\KrigingLayer.lyr", 1, "D:\test\Densify_1_200", "QUARTILE_THRESHOLD_UPPER", 200)

I can succeed on Windows 8 with ArcGIS 10.4.1, but the above error occurs on Windows 7 and 10 with ArcGIS 10.4.1 and 10.6.1, which is confusing. I'm attaching my Kriging layer file below.

Could someone please help me with this issue? Thank you!

0 Kudos
1 Reply