<?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 fails with lyr file in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/makefeaturelayer-fails-with-lyr-file/m-p/109701#M3756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris, thanks for the reply. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything is done (creating featurelayers and lyr files) using the same version of ArcGIS, in fact it is all done within the same script. I was mainly trying to see if anyone else had run into this problem (it's easy enough to test) and if so I might submit it as a bug. If nothing else a better error message would be useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can work around the problem as you suggest but would prefer to find a way to get the lyr file with the join to work properly with MakeFeatureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Sep 2010 12:52:03 GMT</pubDate>
    <dc:creator>StevePeaslee</dc:creator>
    <dc:date>2010-09-16T12:52:03Z</dc:date>
    <item>
      <title>MakeFeatureLayer fails with lyr file</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/makefeaturelayer-fails-with-lyr-file/m-p/109699#M3754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a layer (.lyr) file created using a shapefile joined to a MS Access table (registered with OBJECTID). The layer file works fine in ArcMap when using the Add Data button but fails with a useless error message when using MakeFeatureLayer (tool or script). This behavior occurs under 9.2 and 9.3.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No problems occur when the layer file is created using join between a gdb featureclass and table. Has anyone else gotten this to work? Converting the shapefile to a gdb featureclass is not an option. I need to be able to work with the data as is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Sep 2010 10:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/makefeaturelayer-fails-with-lyr-file/m-p/109699#M3754</guid>
      <dc:creator>StevePeaslee</dc:creator>
      <dc:date>2010-09-11T10:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: MakeFeatureLayer fails with lyr file</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/makefeaturelayer-fails-with-lyr-file/m-p/109700#M3755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What ArcMap version was the .lyr file created with? Generally, the .lyr files are version-sensitive and not backwards compatible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other than that, I'm not sure why it wouldn't work... It's not a composite layer (made up from more than one GIS layer), right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could just recreate anew it your script (MakeFeatureLayer, AddJoin)... That's what I do (rather than using a .lyr as the data source).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 15:19:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/makefeaturelayer-fails-with-lyr-file/m-p/109700#M3755</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2010-09-13T15:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: MakeFeatureLayer fails with lyr file</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/makefeaturelayer-fails-with-lyr-file/m-p/109701#M3756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris, thanks for the reply. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything is done (creating featurelayers and lyr files) using the same version of ArcGIS, in fact it is all done within the same script. I was mainly trying to see if anyone else had run into this problem (it's easy enough to test) and if so I might submit it as a bug. If nothing else a better error message would be useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can work around the problem as you suggest but would prefer to find a way to get the lyr file with the join to work properly with MakeFeatureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 12:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/makefeaturelayer-fails-with-lyr-file/m-p/109701#M3756</guid>
      <dc:creator>StevePeaslee</dc:creator>
      <dc:date>2010-09-16T12:52:03Z</dc:date>
    </item>
  </channel>
</rss>

