AnsweredAssumed Answered

Arcpy Overlay Layers "Unable to get geoanalytics URL." Error

Question asked by matthewpoppleton_TrentUniversity on Jul 29, 2020
Latest reply on Jul 29, 2020 by SAmbrose-esristaff

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


except arcpy.ExecuteError:

#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)