<?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: Will arcpy.MakeFeatureLayer_management work with a personal geodatabase? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221667#M17126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a gdb in the same folder. In AcCatalog I copied the feature class into it. I changed the code to point at it in the gdb instead of the mdb:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.MakeFeatureLayer_management('d:/swb/swb_data.gdb/precip_sites_yr', 'test')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it runs without a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am only running it as a stand-alone script, saved as a python script, and executing it from Idle python editor. I need to do this to do other analyses outside of ArcMap. The full error message for the mdb printed above is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "D:/code/python/layer_test.py", line 7, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeFeatureLayer_management('D:/SWB/SWB_grid_builder_eq_area2.mdb/precip_sites_yr', 'test')&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 6043, in MakeFeatureLayer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/P&gt;&lt;P&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/P&gt;&lt;P&gt;ERROR 000732: Input Features: Dataset D:/SWB/SWB_grid_builder_eq_area2.mdb/precip_sites_yr does not exist or is not supported&lt;/P&gt;&lt;P&gt;Failed to execute (MakeFeatureLayer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked it over and over. The FC exists and is just fine. The script worked in 10.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 20:26:20 GMT</pubDate>
    <dc:creator>DerekRyter</dc:creator>
    <dc:date>2015-04-15T20:26:20Z</dc:date>
    <item>
      <title>Will arcpy.MakeFeatureLayer_management work with a personal geodatabase?</title>
      <link>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221664#M17123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working in 10.2.2 and running this stand alone in Idle.&lt;/P&gt;&lt;P&gt;The script is very simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;arcpy.MakeFeatureLayer_management('D:/SWB/SWB_grid_builder_eq_area2.mdb/precip_sites_yr', 'test')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The feature class is just fine and works in ArcMap. I even created a new mdb and new FC to make sure that it is the right version.&lt;/P&gt;&lt;P&gt;It works ok with gdb feature classes, but when I point it at an mdb as above it gives me: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 000732: Input Features: Dataset D:/SWB/SWB_grid_builder_eq_area2.mdb/precip_sites_yr does not exist or is not supportedFailed to execute (MakeFeatureLayer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody know what is going on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 19:13:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221664#M17123</guid>
      <dc:creator>DerekRyter</dc:creator>
      <dc:date>2015-04-15T19:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Will arcpy.MakeFeatureLayer_management work with a personal geodatabase?</title>
      <link>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221665#M17124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Derek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try running the Make Feature Layer through the geoprocessing tool dialog in arcmap? If that fails then &lt;A href="http://support.esri.com/es/knowledgebase/techarticles/detail/35151"&gt;this &lt;/A&gt;article from Esri may be relevant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since your feature class appears to be working normally everywhere but within the geoprocessing environment, it may be a question of an invalid subtype, an issue with on-the-fly projection (is your data frame in an XY coordinate system that matches the feature class from which you want to make a feature layer?), or maybe turning off background geoprocessing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully one of these will work for you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 20:09:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221665#M17124</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2015-04-15T20:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Will arcpy.MakeFeatureLayer_management work with a personal geodatabase?</title>
      <link>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221666#M17125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Derek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function should work on a personal geodatabase feature class.&amp;nbsp; Have you tried any other MDBs?&amp;nbsp; I would recommend creating another, import a feature class and see if this is reproducible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 20:12:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221666#M17125</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2015-04-15T20:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Will arcpy.MakeFeatureLayer_management work with a personal geodatabase?</title>
      <link>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221667#M17126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a gdb in the same folder. In AcCatalog I copied the feature class into it. I changed the code to point at it in the gdb instead of the mdb:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.MakeFeatureLayer_management('d:/swb/swb_data.gdb/precip_sites_yr', 'test')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it runs without a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am only running it as a stand-alone script, saved as a python script, and executing it from Idle python editor. I need to do this to do other analyses outside of ArcMap. The full error message for the mdb printed above is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "D:/code/python/layer_test.py", line 7, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeFeatureLayer_management('D:/SWB/SWB_grid_builder_eq_area2.mdb/precip_sites_yr', 'test')&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 6043, in MakeFeatureLayer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/P&gt;&lt;P&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/P&gt;&lt;P&gt;ERROR 000732: Input Features: Dataset D:/SWB/SWB_grid_builder_eq_area2.mdb/precip_sites_yr does not exist or is not supported&lt;/P&gt;&lt;P&gt;Failed to execute (MakeFeatureLayer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked it over and over. The FC exists and is just fine. The script worked in 10.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 20:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221667#M17126</guid>
      <dc:creator>DerekRyter</dc:creator>
      <dc:date>2015-04-15T20:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Will arcpy.MakeFeatureLayer_management work with a personal geodatabase?</title>
      <link>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221668#M17127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've now tried it on five different MDBs and GDBs, and even a shape file. It worked on the GDBs and shape file but not on the MDBs. Is there something that needs to be done to the MDB or a different syntax?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 20:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221668#M17127</guid>
      <dc:creator>DerekRyter</dc:creator>
      <dc:date>2015-04-15T20:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Will arcpy.MakeFeatureLayer_management work with a personal geodatabase?</title>
      <link>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221669#M17128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you test this on another machine to see if the issue still occurs?&amp;nbsp; Also, what version of ArcGIS Desktop are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 11:01:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221669#M17128</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2015-04-16T11:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Will arcpy.MakeFeatureLayer_management work with a personal geodatabase?</title>
      <link>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221670#M17129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved it!! personal geodatabases are Access, which only works with 32-bit aps, you have to specify which python.exe you run. For making feature layers with feature classes in MDBs, you have to run the python script using&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.2\python.exe&lt;/P&gt;&lt;P&gt;not&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGISx6410.2\python.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem fixed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 18:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/will-arcpy-makefeaturelayer-management-work-with-a/m-p/221670#M17129</guid>
      <dc:creator>DerekRyter</dc:creator>
      <dc:date>2015-04-16T18:58:05Z</dc:date>
    </item>
  </channel>
</rss>

