Thank you for the reply. I tried setting the value of the output to 'output_featureclass' and I got the same error. ERROR 000210: Cannot create output \\MyDrive\ArcGIS\Default.gdb\output_featureclass.shp.shpERROR 000354: The name contains invalid charactersFailed to execute (Intersect).Here is the full code:# Import arcpy module
import arcpy
from arcpy import env
try:
env.workspace = "\\\\MyDrive\\ArcGIS\\Default.gdb"
if arcpy.Exists(dbo_View1):
arcpy.Delete_management(dbo_View1)
if arcpy.Exists(dbo_GeocodeAddresses3):
arcpy.Delete_management(dbo_GeocodeAddresses3)
# Local variables:
dbo_CDM_ARCCHANCERY = "Database Connections\\Chancery.odc\\dbo.CDM_ARCCHANCERY"
NewAASD_Streets = "\\\\MyDrive\Transportation\\ArcGIS ver 10\\Locators\\NewAASD_Streets"
elembound_shp = "\\\\MyDrive\Transportation\\ArcGIS ver 10\\Boundaries\\elembound.shp"
highbound_shp = "\\\\MyDrive\Transportation\\ArcGIS ver 10\\Boundaries\\highbound.shp"
middlebound_shp = "\\\\MyDrive\Transportation\\ArcGIS ver 10\\Boundaries\\middlebound.shp"
arc__VERSION_dbo_DEFAULT_ = "Database Servers\\MyServer_ARC.gds\\arc (VERSION:dbo.DEFAULT)"
dbo_View1 = "dbo_View1"
dbo_GeocodeAddresses3 = "\\\\MyDrive\\ArcGIS\\Default.gdb\\dbo_GeocodeAddresses3.shp"
dbo_GeocodeAddresses3_Inters = 'output_featureclass'
# Process: Make Table View
arcpy.MakeTableView_management(dbo_CDM_ARCCHANCERY, dbo_View1, "", "", "Id Id VISIBLE NONE;StudentId StudentId VISIBLE NONE;'Last Name' 'Last Name' VISIBLE NONE;'First Name' 'First Name' VISIBLE NONE;'Middle Name' 'Middle Name' VISIBLE NONE;School School VISIBLE NONE;'School #' 'School #' VISIBLE NONE;'Street Number' 'Street Number' VISIBLE NONE;'Street Direction' 'Street Direction' VISIBLE NONE;Street Street VISIBLE NONE;'Street Type' 'Street Type' VISIBLE NONE;Apt Apt VISIBLE NONE;City City VISIBLE NONE;State State VISIBLE NONE;ZIP ZIP VISIBLE NONE;'Full Address' 'Full Address' VISIBLE NONE;DOB DOB VISIBLE NONE;Gender Gender VISIBLE NONE;Grade Grade VISIBLE NONE;Ethnicity Ethnicity VISIBLE NONE;LunchStatus LunchStatus VISIBLE NONE;PrivateSchool PrivateSchool VISIBLE NONE")
# Process: Geocode Addresses
arcpy.GeocodeAddresses_geocoding(dbo_View1, NewAASD_Streets, "Street 'Full Address' VISIBLE NONE;ZIP ZIP VISIBLE NONE", dbo_GeocodeAddresses3, "STATIC")
# Process: Intersect
arcpy.Intersect_analysis([dbo_GeocodeAddresses3, elembound_shp, highbound_shp, middlebound_shp], dbo_GeocodeAddresses3_Inters, "ALL", "", "INPUT")
# Process: Table to Table
arcpy.TableToTable_conversion(#Removed because of length#)
# Cleanup temporary tables
if arcpy.Exists(dbo_View1):
arcpy.Delete_management(dbo_View1)
if arcpy.Exists(dbo_GeocodeAddresses3):
arcpy.Delete_management(dbo_GeocodeAddresses3)
except Exception, e:
#If an error occurred, print line number and error message
import traceback, sys
tb = sys.exc_info()[2]
print "Line %i" % tb.tb_lineno
print e.message