[GIS] The name contains invalid characters

arcpypython

I'm having a problem with the following script. When listing parameters that are optional I've used the "" before, so I can't figure out why this isn't working.

import arcpy
import os

arcpy.env.overwriteOutput = True

path = "C:/Data_new/Temp/Default.gdb"
name = "point_shapefile.shp"
type = "POINT"

m = "DISABLED"
z = "DISABLED"
prjFile = "C:/Program Files/ArcGIS/Desktop10.0/Coordinate Systems/Projected Coordinate Systems" + \
      "/State Plane/NAD 1983 (US Feet)/NAD 1983 StatePlane North Carolina FIPS 3200 (US Feet).prj"
reference = arcpy.SpatialReference(prjFile)

arcpy.CreateFeatureclass_management(path, name, type, "", m, z, reference)

Best Answer

Lose the .shp in name, since your workspace is a geodatabase -- no file extension required.

Alternatively, change path to a regular folder instead of a geodatabase.