Hello,
The last line of my script produces an error in my script when a network filesystem is provided for "ow_space," but the script works fine when a local filesystem is provided instead. Note that "ow_space" retrieves parameter 0, which is set to "workspace" and not "folder" since I want this parameter to also accept a file geodatabase (which is working in the script). The error message is nonspecific and unhelpful. How can I get arcpy.CreateFeatureclass_management to work regardless of whether ow_space is a network location or a local directory? e.g. \\JLLORENS\Share\GIS
Below is the code in question:
Spoilerimport arcpy
from arcpy import env
from arcpy.sa import *
import os
ow_space = arcpy.GetParameterAsText(0)
in_WSheds = arcpy.GetParameterAsText(1)
file_name = arcpy.GetParameterAsText(2)
vector_extension_output = '.shp'
arcpy.CreateFeatureclass_management(ow_space, ('%s_Longest_Flowpaths_Vector%s' % (file_name, vector_extension_output)), 'POLYLINE', spatial_reference = (arcpy.Describe(in_WSheds).spatialReference))