<?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: MakeFeatureLayer works in ArcMap, fails in ArcPy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424911#M33364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If a machine with ArcGIS for Server can connect, but machines with only ArcGIS for Desktop (minus 64-bit Background Geoprocessing) cannot connect, it makes me think there is a 32-/64-bit issue involved somewhere.&amp;nbsp; What would be an interesting experiment is to install 64-bit Background Geoprocessing on one of the ArcGIS for Desktop machines and then force the script to run using the 64-bit Python interpreter instead of the 32-bit one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2015 18:40:45 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2015-08-21T18:40:45Z</dc:date>
    <item>
      <title>MakeFeatureLayer works in ArcMap, fails in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424904#M33357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an ArcPy script that worked with ArcGIS Desktop 10.1, but after upgrading to 10.3, it fails trying to MakeFeatureLayer:&amp;nbsp; error 000732, "Dataset ... does not exist or is not supported").&amp;nbsp; I'm 100% sure the dataset exists and the path is correct.&amp;nbsp; Executing the command manually from the Python CLI results in the same error, &lt;EM&gt;but&lt;/EM&gt; from within ArcMap or ArcCatalog it succeeds; I see the same behavior on several different machines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Has this occurred for anyone before?&amp;nbsp; Where else can I look to determine the source of the problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:&amp;nbsp; Oddly enough, running the command and/or script from Python on our GP server (not ArcGIS Server; it runs regular maintenance GP tasks) &lt;EM&gt;does&lt;/EM&gt; work, even though as far as I'm aware the software is set up almost identically.&amp;nbsp; Of course the server has more memory, but would that make a difference for something like creating a feature layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 18:58:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424904#M33357</guid>
      <dc:creator>BrandonNelson1</dc:creator>
      <dc:date>2015-08-20T18:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: MakeFeatureLayer works in ArcMap, fails in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424905#M33358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have 64-bit Background Geoprocessing installed?&amp;nbsp; Do you have other ArcGIS products installed, like ArcGIS Engine, on the machine that generates the error from the CLI?&amp;nbsp; What type of data store is it?&amp;nbsp; File geodatabase, Personal geodatabase, shapefile, SDE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I not-to-uncommonly run into users that have ArcPy code break after they install 64-bit Background Geoprocesisng or ArcGIS Engine because the default Python interpreter gets changed from 32-bit to 64-bit versions.&amp;nbsp; Changing the default file type association or having the user call the script using a specific Python interpreter usually solves the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 19:45:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424905#M33358</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-08-20T19:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: MakeFeatureLayer works in ArcMap, fails in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424906#M33359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; I hope this sheds some more light on the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other ArcGIS software packages installed are the Data Reviewer and Production Mapping extensions, and ArcGIS Pro.&amp;nbsp; I'm accessing feature classes from an SDE database; I copied them to a file geodatabase and did not receive an error.&amp;nbsp; (This isn't viable as a long-term solution, however, since the script needs to use the data in SDE.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ArcMap and standalone Python binaries are version 2.7.8, 32-bit (verified with `sys.version' and `platform.architecture()'); the only 64-bit version I can find is a Python 3 DLL in the Pro folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At your suggestion, I also tried running Python with the full path to the executable, but the error still occurs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 20:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424906#M33359</guid>
      <dc:creator>BrandonNelson1</dc:creator>
      <dc:date>2015-08-20T20:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: MakeFeatureLayer works in ArcMap, fails in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424907#M33360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's your backend DBMS?&amp;nbsp; Oracle, SQL Server, Postgresql, etc....&amp;nbsp; What are the SDE connection file parameters?&amp;nbsp; Where is the SDE connection file stored, under 'Database Connections?' &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 21:07:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424907#M33360</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-08-20T21:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: MakeFeatureLayer works in ArcMap, fails in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424908#M33361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever disable background geoprocessing in v10.3 as I believe it is enabled by default?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 21:37:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424908#M33361</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-08-20T21:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: MakeFeatureLayer works in ArcMap, fails in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424909#M33362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Background GP is disabled.&amp;nbsp; We've had other issues that were caused and/or exacerbated by it so now that's one of the first things I do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 12:07:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424909#M33362</guid>
      <dc:creator>BrandonNelson1</dc:creator>
      <dc:date>2015-08-21T12:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: MakeFeatureLayer works in ArcMap, fails in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424910#M33363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL Server 2012, 64-bit.&amp;nbsp; I've tried both OS authentication and Database authentication with the admin account.&amp;nbsp; The connection file is stored in "Database Connections," but I still got the same results copying it to C: root.&amp;nbsp; We're still testing on more systems here, but so far it seems that server is the only one able to connect through ArcPy (fortunately it &lt;EM&gt;is&lt;/EM&gt; able! :-).&amp;nbsp; Our other server with ArcPy is outward-facing, and has no access to the SDE server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 12:44:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424910#M33363</guid>
      <dc:creator>BrandonNelson1</dc:creator>
      <dc:date>2015-08-21T12:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: MakeFeatureLayer works in ArcMap, fails in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424911#M33364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If a machine with ArcGIS for Server can connect, but machines with only ArcGIS for Desktop (minus 64-bit Background Geoprocessing) cannot connect, it makes me think there is a 32-/64-bit issue involved somewhere.&amp;nbsp; What would be an interesting experiment is to install 64-bit Background Geoprocessing on one of the ArcGIS for Desktop machines and then force the script to run using the 64-bit Python interpreter instead of the 32-bit one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 18:40:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424911#M33364</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-08-21T18:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: MakeFeatureLayer works in ArcMap, fails in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424912#M33365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it's worth investigating, though I don't think the server has 64-bit installed either.&amp;nbsp; Does ArcPy even consider the Background Processing setting?&amp;nbsp; I thought it was basically independent from ArcMap/Catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to clarify, though, the "server" is actually running ArcGIS &lt;EM&gt;for Desktop&lt;/EM&gt;, it's only a server in the sense that it regularly operates with little to no user interaction.&amp;nbsp; It mostly runs maintenance tasks (daily data refresh, scheduled reports, etc).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 18:56:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424912#M33365</guid>
      <dc:creator>BrandonNelson1</dc:creator>
      <dc:date>2015-08-21T18:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: MakeFeatureLayer works in ArcMap, fails in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424913#M33366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, I misunderstood.&amp;nbsp; I thought you meant ArcGIS for Server, which has been 64-bit only for several versions now.&amp;nbsp; In your case, I am not sure what to suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 19:00:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424913#M33366</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-08-21T19:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: MakeFeatureLayer works in ArcMap, fails in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424914#M33367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for trying, though.&amp;nbsp; If we get it figured out I'll add our solution here in case anyone else runs into this. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 12:46:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makefeaturelayer-works-in-arcmap-fails-in-arcpy/m-p/424914#M33367</guid>
      <dc:creator>BrandonNelson1</dc:creator>
      <dc:date>2015-08-24T12:46:38Z</dc:date>
    </item>
  </channel>
</rss>

