<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error creating output feature class when reprojecting shp files in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/error-creating-output-feature-class-when/m-p/1658938#M99622</link>
    <description>&lt;P&gt;Can you confirm that the output does not have any special characters or spaces in the output name..?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Oct 2025 00:14:12 GMT</pubDate>
    <dc:creator>BrendanNewell</dc:creator>
    <dc:date>2025-10-20T00:14:12Z</dc:date>
    <item>
      <title>Error creating output feature class when reprojecting shp files</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-creating-output-feature-class-when/m-p/1658899#M99619</link>
      <description>&lt;P&gt;I'm trying to reproject shapefiles and I keep getting stuck with this error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ExecuteError: ERROR 000208: Error creating output feature class
Failed to execute (Project).&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A title="All code" href="https://imgur.com/a/2cfXVox" target="_blank" rel="noopener"&gt;https://imgur.com/a/2cfXVox&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Here is all of my code.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
from arcpy import env
env.overwriteOutput = True
env.workspace = r"D:\GEOG3530\Ex4\DataEX4"

# List feature classes and their coordinate systems in given folder
folderFiles = arcpy.ListFeatureClasses()
for fc in folderFiles:
    fcdesc = arcpy.Describe(fc)
    print(str(fcdesc.basename) + " is in " + str(fcdesc.spatialReference.name))

for fc in folderFiles:
    fcdesc = arcpy.Describe(fc)
    infc = fc
    print(infc)
    outfc = "D:/GEOG3530/Ex4/Ex4proj/Ex4proj.gdb/Results/" + fcdesc.basename
    print(outfc)
    sref = arcpy.SpatialReference('USA Contiguous Lambert Conformal Conic')
    print(sref)
    arcpy.management.Project(infc, outfc, sref)&lt;/LI-CODE&gt;&lt;P&gt;list feature class code block output:&lt;/P&gt;&lt;PRE&gt;CA_Cities_Selection is in GCS_WGS_1984
CA_Earthquakes is in GCS_WGS_1984
CA_Outline is in GCS_WGS_1984&lt;/PRE&gt;&lt;P&gt;for loop output before error occurs:&lt;/P&gt;&lt;PRE&gt;CA_Cities_Selection.shp
D:/GEOG3530/Ex4/Ex4proj/Ex4proj.gdb/Results/CA_Cities_Selection
&amp;lt;geoprocessing spatial reference object object at 0x000001BFCC5A3E70&amp;gt;&lt;/PRE&gt;&lt;P&gt;And here is the full error message&lt;/P&gt;&lt;LI-CODE lang="python"&gt;---------------------------------------------------------------------------
ExecuteError                              Traceback (most recent call last)
Cell In[27], line 9
      7 sref = arcpy.SpatialReference('USA Contiguous Lambert Conformal Conic')
      8 print(sref)
----&amp;gt; 9 arcpy.management.Project(infc, outfc, sref)

File ~\AppData\Local\Programs\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py:20421, in Project(in_dataset, out_dataset, out_coor_system, transform_method, in_coor_system, preserve_shape, max_deviation, vertical)
  20419     return retval
  20420 except Exception as e:
&amp;gt; 20421     raise e

File ~\AppData\Local\Programs\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py:20403, in Project(in_dataset, out_dataset, out_coor_system, transform_method, in_coor_system, preserve_shape, max_deviation, vertical)
  20399 from arcpy.arcobjects.arcobjectconversion import convertArcObjectToPythonObject
  20401 try:
  20402     retval = convertArcObjectToPythonObject(
&amp;gt; 20403         gp.Project_management(
  20404             *gp_fixargs(
  20405                 (
  20406                     in_dataset,
  20407                     out_dataset,
  20408                     out_coor_system,
  20409                     transform_method,
  20410                     in_coor_system,
  20411                     preserve_shape,
  20412                     max_deviation,
  20413                     vertical,
  20414                 ),
  20415                 True,
  20416             )
  20417         )
  20418     )
  20419     return retval
  20420 except Exception as e:

File ~\AppData\Local\Programs\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py:532, in Geoprocessor.__getattr__.&amp;lt;locals&amp;gt;.&amp;lt;lambda&amp;gt;(*args)
    530 val = getattr(self._gp, attr)
    531 if callable(val):
--&amp;gt; 532     return lambda *args: val(*gp_fixargs(args, True))
    533 else:
    534     return convertArcObjectToPythonObject(val)

ExecuteError: ERROR 000208: Error creating output feature class
Failed to execute (Project).&lt;/LI-CODE&gt;&lt;P&gt;I initially thought the problem was backslashes in the file path, but I switched those to forward slashes and it didn't fix it. I don't really understand how to read the error messages yet because I'm new to coding completely.&amp;nbsp;&lt;/P&gt;&lt;P&gt;At one point I also go this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ExecuteError: 000354: The name contains invalid characters.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not really sure what I'm missing here. I appreciate all help, thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Oct 2025 18:17:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-creating-output-feature-class-when/m-p/1658899#M99619</guid>
      <dc:creator>LiamTyler</dc:creator>
      <dc:date>2025-10-18T18:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating output feature class when reprojecting shp files</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-creating-output-feature-class-when/m-p/1658900#M99620</link>
      <description>&lt;P&gt;Try adding a ValidateTableName into your code and dump the /Result/ section of your output environment path&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/working-with-geodatabases.htm" target="_blank"&gt;Validating table and field names in Python—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Oct 2025 19:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-creating-output-feature-class-when/m-p/1658900#M99620</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-10-18T19:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating output feature class when reprojecting shp files</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-creating-output-feature-class-when/m-p/1658938#M99622</link>
      <description>&lt;P&gt;Can you confirm that the output does not have any special characters or spaces in the output name..?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 00:14:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-creating-output-feature-class-when/m-p/1658938#M99622</guid>
      <dc:creator>BrendanNewell</dc:creator>
      <dc:date>2025-10-20T00:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating output feature class when reprojecting shp files</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-creating-output-feature-class-when/m-p/1658949#M99623</link>
      <description>&lt;P&gt;In your code the var outfc&amp;nbsp; have a feature dataset named Results.&lt;/P&gt;&lt;P&gt;Does it exists?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 04:12:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-creating-output-feature-class-when/m-p/1658949#M99623</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2025-10-20T04:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating output feature class when reprojecting shp files</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-creating-output-feature-class-when/m-p/1659054#M99630</link>
      <description>&lt;P&gt;With a little help from the internet, I "wrote" this script that defines input folder/output file geodatabase location, sets the output spatial reference, lists the shapefiles in the folder with their coordinate system and projects them to USA Continuous Lambert Conformal Conic.&amp;nbsp; You'll need to change the input_folder and output_gdb but it "should" work:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;# Define input folder and output geodatabase&lt;/P&gt;&lt;P&gt;input_folder = r"C:\temp\shapefiles"&lt;/P&gt;&lt;P&gt;output_gdb = r"C:\temp\shapefiles\test.gdb"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Set the spatial reference (e.g., WGS 1984, EPSG:4326)&lt;/P&gt;&lt;P&gt;spatial_ref = arcpy.SpatialReference(102004)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# List feature classes and their coordinate systems in given folder&lt;/P&gt;&lt;P&gt;folderFiles = arcpy.ListFeatureClasses()&lt;/P&gt;&lt;P&gt;for fc in folderFiles:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcdesc = arcpy.Describe(fc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(str(fcdesc.basename) + " is in " + str(fcdesc.spatialReference.name))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Loop through all shapefiles in the input folder&lt;/P&gt;&lt;P&gt;for file_name in os.listdir(input_folder):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if file_name.endswith(".shp"):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input_shapefile = os.path.join(input_folder, file_name)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output_feature_class = os.path.join(output_gdb, os.path.splitext(file_name)[0])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Project the shapefile into the file geodatabase&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Project_management(input_shapefile, output_feature_class, spatial_ref)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(f"Projected {file_name} to {output_feature_class}")&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 15:39:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-creating-output-feature-class-when/m-p/1659054#M99630</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2025-10-20T15:39:54Z</dc:date>
    </item>
  </channel>
</rss>

