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:
randomName = "pythonRandomPoints_test"
overlayName = "layer_test"
number_of_points_or_field = 60000
#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)