<?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: ApplySymbologyFromLayer_management error: .LYR file made in 10.2 working with 10. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/applysymbologyfromlayer-management-error-lyr-file/m-p/470811#M36736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;An ArcGIS 10.2 layerfile can be read by ArcGIS 10.1&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Xander,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That was what I was trying to find out. If this is true then something else must cause the error. The add-in works in 10.2 and there the data types match. The symbology layer is the .lyr file and the other layer I make on-the-fly using arcpy. I will need to wait until I can debug on 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jelmer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2014 09:53:40 GMT</pubDate>
    <dc:creator>JelmerOosthoek</dc:creator>
    <dc:date>2014-03-03T09:53:40Z</dc:date>
    <item>
      <title>ApplySymbologyFromLayer_management error: .LYR file made in 10.2 working with 10.1?</title>
      <link>https://community.esri.com/t5/python-questions/applysymbologyfromlayer-management-error-lyr-file/m-p/470809#M36734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working on a python add-in which includes a .LYR file with specific symbology. I use ApplySymbologyFromLayer_management to load a shapefile with this .LYR symbology in the ArcMap TOC. This works perfectly on my own testing PC with ArcGIS 10.2. But when I ask a test user to try the add-in on ArcGIS 10.1 the following error is returned:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000968: The symbol layer does not match the input layer&lt;BR /&gt;Failed to execute (ApplySymbologyFromLayer).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't easily debug this problem on the test user system and therefore, as a first step, I would like to find out if a .LYR file made in 10.2 should be backwards compatible with 10.1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 18:27:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/applysymbologyfromlayer-management-error-lyr-file/m-p/470809#M36734</guid>
      <dc:creator>JelmerOosthoek</dc:creator>
      <dc:date>2014-02-28T18:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer_management error: .LYR file made in 10.2 working with 10.</title>
      <link>https://community.esri.com/t5/python-questions/applysymbologyfromlayer-management-error-lyr-file/m-p/470810#M36735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jelmer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error "&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00vp0000000q000968"&gt;000968 : The symbol layer does not match the input layer&lt;/A&gt;&lt;SPAN&gt;" specifically states:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;The symbol layer must be the same type as the input layer: feature layer, raster layer, network analysis layer, or TIN layer. For feature layers, the feature type and geometry type must also match. For network analysis layers, the solver type must match. For example, you cannot apply symbology from a service area layer to a route layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An ArcGIS 10.2 layerfile can be read by ArcGIS 10.1. You can see this if you choose to save a layerfile in 10.2 and click on the "save as layer type" list. All version are provided except 10.1 (meaning that the format is the same).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check if the data types of the layers being used match.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 08:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/applysymbologyfromlayer-management-error-lyr-file/m-p/470810#M36735</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-03-03T08:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer_management error: .LYR file made in 10.2 working with 10.</title>
      <link>https://community.esri.com/t5/python-questions/applysymbologyfromlayer-management-error-lyr-file/m-p/470811#M36736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;An ArcGIS 10.2 layerfile can be read by ArcGIS 10.1&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Xander,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That was what I was trying to find out. If this is true then something else must cause the error. The add-in works in 10.2 and there the data types match. The symbology layer is the .lyr file and the other layer I make on-the-fly using arcpy. I will need to wait until I can debug on 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jelmer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 09:53:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/applysymbologyfromlayer-management-error-lyr-file/m-p/470811#M36736</guid>
      <dc:creator>JelmerOosthoek</dc:creator>
      <dc:date>2014-03-03T09:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer_management error: .LYR file made in 10.2 working with 10.</title>
      <link>https://community.esri.com/t5/python-questions/applysymbologyfromlayer-management-error-lyr-file/m-p/470812#M36737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to solve the error. I changed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;layer = arcpy.mapping.Layer('C:\path\shapefile.shp')
symbologylayer = arcpy.mapping.Layer('C:\path\symbologylayer.lyr')
arcpy.ApplySymbologyFromLayer_management(layer, symbologylayer)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Into:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;layer = arcpy.mapping.Layer('C:\path\shapefile.shp')
arcpy.ApplySymbologyFromLayer_management(layer, 'C:\path\symbologylayer.lyr')
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The former code worked only on my PC, the latter code works on all PCs checked so far.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:50:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/applysymbologyfromlayer-management-error-lyr-file/m-p/470812#M36737</guid>
      <dc:creator>JelmerOosthoek</dc:creator>
      <dc:date>2021-12-11T20:50:35Z</dc:date>
    </item>
  </channel>
</rss>

