AnsweredAssumed Answered

Unexpected error 999998 when using the DensifySamplingNetwork_ga arcpy function

Question asked by emucaki on Jan 7, 2019
Latest reply on Jan 7, 2019 by Dan_Patterson

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\", line 888, in DensifySamplingNetwork     raise e ExecuteError: ERROR 999998: Unexpected Error. Failed to execute (DensifySamplingNetwork).


I just ran the following commands:

import arcpy


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!