<?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 Feature Class to Geodatabase error--ArcGIS Pro in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/feature-class-to-geodatabase-error-arcgis-pro/m-p/813000#M33603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using ArcGIS Pro I built a model to create a file geodatabase&amp;nbsp;and import shapefiles to it. When run in Model Builder, it completes successfully. Then I exported the model to a Python script and ran it from a command prompt. It went through the motions but instead of importing the shapefiles, it merely copied the shapefiles to the folder where the&amp;nbsp;newly-created fgdb&amp;nbsp;is located, leaving the&amp;nbsp;fgdb empty. #Anyone have an idea what went wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the Python script generated by ArcGIS Pro. I have&amp;nbsp;changed the&amp;nbsp;actual folder and file names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# -*- coding: utf-8 -*-&lt;BR /&gt;"""Generated by ArcGIS ModelBuilder on: 2019-09-02 11:10:24&lt;BR /&gt;All ModelBuilder functionality may not be exported. Edits may be required for equivalency with the original model.&lt;BR /&gt;"""&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# To allow overwriting the outputs change the overwrite option to true.&lt;BR /&gt;arcpy.env.overwriteOutput = False&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Local variables:&lt;BR /&gt;AAA_shp = r"C:\XXX\database\ShapeFiles\AAA.shp"&lt;BR /&gt;BBB_shp = r"C:\XXX\database\ShapeFiles\BBB.shp"&lt;BR /&gt;CCC_shp = r"C:\XXX\database\ShapeFiles\CCC.shp"&lt;BR /&gt;DDD_shp = r"C:\XXX\database\ShapeFiles\DDD.shp"&lt;BR /&gt;database = r"C:\XXX\database"&lt;BR /&gt;YYYY_gdb = database&lt;BR /&gt;YYYY_gdb__2_ = YYYY_gdb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Process: Create File Geodatabase&lt;BR /&gt;arcpy.CreateFileGDB_management(out_folder_path=database, out_name="YYYY", out_version="CURRENT")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Process: Feature Class To Geodatabase&lt;BR /&gt;arcpy.FeatureClassToGeodatabase_conversion(Input_Features=r"C:\XXX\database\ShapeFiles\AAA.shp;C:\XXX\database\ShapeFiles\BBB.shp;C:\XXX\database\ShapeFiles\CCC.shp;C:\XXX\database\ShapeFiles\DDD.shp", Output_Geodatabase=YYYY_gdb)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2019 02:23:15 GMT</pubDate>
    <dc:creator>JohnMcCoy2</dc:creator>
    <dc:date>2019-09-03T02:23:15Z</dc:date>
    <item>
      <title>Feature Class to Geodatabase error--ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-class-to-geodatabase-error-arcgis-pro/m-p/813000#M33603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using ArcGIS Pro I built a model to create a file geodatabase&amp;nbsp;and import shapefiles to it. When run in Model Builder, it completes successfully. Then I exported the model to a Python script and ran it from a command prompt. It went through the motions but instead of importing the shapefiles, it merely copied the shapefiles to the folder where the&amp;nbsp;newly-created fgdb&amp;nbsp;is located, leaving the&amp;nbsp;fgdb empty. #Anyone have an idea what went wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the Python script generated by ArcGIS Pro. I have&amp;nbsp;changed the&amp;nbsp;actual folder and file names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# -*- coding: utf-8 -*-&lt;BR /&gt;"""Generated by ArcGIS ModelBuilder on: 2019-09-02 11:10:24&lt;BR /&gt;All ModelBuilder functionality may not be exported. Edits may be required for equivalency with the original model.&lt;BR /&gt;"""&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# To allow overwriting the outputs change the overwrite option to true.&lt;BR /&gt;arcpy.env.overwriteOutput = False&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Local variables:&lt;BR /&gt;AAA_shp = r"C:\XXX\database\ShapeFiles\AAA.shp"&lt;BR /&gt;BBB_shp = r"C:\XXX\database\ShapeFiles\BBB.shp"&lt;BR /&gt;CCC_shp = r"C:\XXX\database\ShapeFiles\CCC.shp"&lt;BR /&gt;DDD_shp = r"C:\XXX\database\ShapeFiles\DDD.shp"&lt;BR /&gt;database = r"C:\XXX\database"&lt;BR /&gt;YYYY_gdb = database&lt;BR /&gt;YYYY_gdb__2_ = YYYY_gdb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Process: Create File Geodatabase&lt;BR /&gt;arcpy.CreateFileGDB_management(out_folder_path=database, out_name="YYYY", out_version="CURRENT")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Process: Feature Class To Geodatabase&lt;BR /&gt;arcpy.FeatureClassToGeodatabase_conversion(Input_Features=r"C:\XXX\database\ShapeFiles\AAA.shp;C:\XXX\database\ShapeFiles\BBB.shp;C:\XXX\database\ShapeFiles\CCC.shp;C:\XXX\database\ShapeFiles\DDD.shp", Output_Geodatabase=YYYY_gdb)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2019 02:23:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-class-to-geodatabase-error-arcgis-pro/m-p/813000#M33603</guid>
      <dc:creator>JohnMcCoy2</dc:creator>
      <dc:date>2019-09-03T02:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Class to Geodatabase error--ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-class-to-geodatabase-error-arcgis-pro/m-p/813001#M33604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A colleague found the problem to be an incorrect command in the Python script exported by Model Builder.&amp;nbsp; The script points to t&lt;SPAN style="font-size: 11.0pt;"&gt;he gdb folder but&amp;nbsp;needs to point to the gdb file in that folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incorrect:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;YYYY_gdb = database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;YYYY_gdb = "{}\\YYYY.gdb".format(database)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 16:47:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-class-to-geodatabase-error-arcgis-pro/m-p/813001#M33604</guid>
      <dc:creator>JohnMcCoy2</dc:creator>
      <dc:date>2019-09-04T16:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Class to Geodatabase error--ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-class-to-geodatabase-error-arcgis-pro/m-p/813002#M33605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take model builder to python with a grain of salt.&amp;nbsp; I've never heard of anyone executing it and not having at least one or two 'little issues'and that predates Pro....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 16:50:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-class-to-geodatabase-error-arcgis-pro/m-p/813002#M33605</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-09-04T16:50:35Z</dc:date>
    </item>
  </channel>
</rss>

