Hello Davin,
Here is a snippet of code from the script before the failure happens:
savePoint = os.path.join(outgdb, "SelectedPoint")
# Create a new feature set with same schema as Facilities parameter in
# Generate Service Areas tool.
facilities = arcpy.GetParameter(0)
# Set limit on number of facilities entered - 1
maxFacilities = 1
fac_count = arcpy.GetCount_management(facilities)
fac_str = str(fac_count)
fac_int = int(fac_str)
'''
* Title: GenerateServiceAreas_Workflow.py
* Author: Esri
* Date: 2019
* Code / Type version: 10.7
* Code adapted from: ArcToolbox Script / ArcMap Search
'''
if fac_int > maxFacilities:
arcpy.Delete_management(facilities)
arcpy.AddIDMessage("ERROR", 30096, "Facilities", maxFacilities)
sys.exit(0)
elif facilities == '#' or not facilities:
arcpy.Delete_management(facilities)
arcpy.AddMessage("ERROR. Select a point on the map.")
sys.exit(0)
else:
pass
'''(Version 10.7) [Source code].
"ArcMap Search: Generate Service Areas (Network Analyst)'''
# fails at the following line of code
# ExecuteError: ERROR 000210: Cannot create output: pt_out = arcpy.CopyFeatures_management(facilities, savePoint)
pt_out = arcpy.CopyFeatures_management(facilities, savePoint)
Facilities (arcpy.getParameter(0)) is a Feature set, point layer that is created on the map by the user.