Problem with Intersect_analysis

Discussion created by aasdarcgis on Jan 9, 2013
Latest reply on Jan 17, 2013 by aasdarcgis

I have a script that is to geocode addresses from a database, intersect the results with three boundary files and do a tabletotable conversion on the results.  Below is the intersect statement I am using.

arcpy.Intersect_analysis([geocode_results, boundary1_shp, boundary2_shp, boundary3_shp], qResults, "ALL", "", "INPUT")

The statement is failing on qResults (e.g. creating the output of the intersect).  It seams that no matter what I put there (file path or variable name), the compiler is appending ".shp.shp" to the file name which causes an invalid file error. 

ERROR 000210: Cannot create output \\mydrive\ArcGIS\Default.gdb\qResults.shp.shp
ERROR 000354: The name contains invalid characters
Failed to execute (Intersect).

Any help, would be greatly appreciated.