I am currently building a simulation using arcpy in ArcGIS Pro to analyze randomly generated points that intersect with preset line transects. The arcpy.CreateRandomPoints_management() function works as expected, but when I run the arcpy.geoanalytics.OverlayLayers() function in python, the function fails and I get the error "Unable to get geoanalytics URL". However, when I run overlay layers using the geoprocessing toolbox using the exact same parameters I do not get any errors. I tried to google this error but have not found any related information. I have provided the code below:
import arcpy randomName = "pythonRandomPoints_test" overlayName = "layer_test" number_of_points_or_field = 60000 arcpy.CreateRandomPoints_management("C:/Users/User/Documents/ArcGIS/Projects/Default.gdb", randomName, "shp_file", "", number_of_points_or_field, "", "POINT") try: arcpy.geoanalytics.OverlayLayers('transects_t', randomName, overlayName, "INTERSECT") except arcpy.ExecuteError: print(arcpy.GetMessages()) #Start Time: Wednesday, July 29, 2020 14:28:09 #Running script Overlay Layers... #Unable to get geoanalytics URL. #Completed script Overlay Layers... #Failed to execute (OverlayLayers). #Failed at Wednesday, July 29, 2020 14:28:10 (Elapsed Time: 0.87 seconds)
Solved! Go to Solution.
Hi Sarah Ambrose, sorry for the late reply. I checked and do not have an ArcGIS Enterprise deployment set up at all. I will see if I can get permissions to set this all up with a GeoAnalytics server. I must have overlooked these steps when I started using the GeoAnalytics server tools, thank you for the help.