<?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 on ArcGIS Pro does not work in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-on-arcgis-pro-does-not/m-p/423826#M18819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gustavo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's been a while, but I believe the information on this page may still be relevant:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/216481-adding-feature-class-and-applying-symbology-in-arcgis-pro-using-arcpy"&gt;https://community.esri.com/thread/216481-adding-feature-class-and-applying-symbology-in-arcgis-pro-using-arcpy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The problem was fixed at version 2.3 and I don't observe it at 2.4&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you're not on at least version 2.3 or if you are and this is still happening then you can try updating the connection or removing/re-inserting the layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Earl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Sep 2019 17:18:27 GMT</pubDate>
    <dc:creator>EarlMedina</dc:creator>
    <dc:date>2019-09-17T17:18:27Z</dc:date>
    <item>
      <title>ApplySymbologyFromLayer on ArcGIS Pro does not work</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-on-arcgis-pro-does-not/m-p/423825#M18818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am stuck with this issue for days, and yet I could not find a solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long story short, the "arcpy.ApplySymbologyFromLayer_management" simply does not work. The code runs without any issue, I can see the layer briefly locking on ArcPRO, but zero results.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;workspace = &lt;SPAN style="color: #6a8759;"&gt;"C:\whatever.gdb"
&lt;/SPAN&gt;arcpy.env.workspace = workspace&lt;/PRE&gt;ref_lyrx = &lt;SPAN style="color: #6a8759;"&gt;r"C:\SimbologyIwant.lyrx"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;aprx = arcpy.mp.ArcGISProject(&lt;SPAN style="color: #6a8759;"&gt;"CURRENT"&lt;/SPAN&gt;)&lt;BR /&gt;map = aprx.listMaps(&lt;SPAN style="color: #6a8759;"&gt;'Map'&lt;/SPAN&gt;)[&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;]&lt;BR /&gt;layers = map.listLayers()[&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;]&lt;BR /&gt;layers2 = map.listLayers()[&lt;SPAN style="color: #6897bb;"&gt;1&lt;/SPAN&gt;]&lt;BR /&gt;arcpy.ApplySymbologyFromLayer_management(layers2&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;layers)&lt;/PRE&gt;&lt;P&gt;I also tried&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.ApplySymbologyFromLayer_management(layers2&lt;SPAN style="color: #cc7832; "&gt;, &lt;/SPAN&gt;ref_lyrx)&lt;/PRE&gt;&lt;P&gt;which uses the a layer file instead of a layer on the map. parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I refreshed, I ran the code with the map closed, added the optional p, tried all variations that I could think of. The code runs, but the symbology never changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone has a sample code that works? Or any idea why my code has no results?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:08:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-on-arcgis-pro-does-not/m-p/423825#M18818</guid>
      <dc:creator>Gustavo_Souza</dc:creator>
      <dc:date>2021-12-11T19:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer on ArcGIS Pro does not work</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-on-arcgis-pro-does-not/m-p/423826#M18819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gustavo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's been a while, but I believe the information on this page may still be relevant:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/216481-adding-feature-class-and-applying-symbology-in-arcgis-pro-using-arcpy"&gt;https://community.esri.com/thread/216481-adding-feature-class-and-applying-symbology-in-arcgis-pro-using-arcpy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The problem was fixed at version 2.3 and I don't observe it at 2.4&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you're not on at least version 2.3 or if you are and this is still happening then you can try updating the connection or removing/re-inserting the layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Earl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 17:18:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-on-arcgis-pro-does-not/m-p/423826#M18819</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2019-09-17T17:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer on ArcGIS Pro does not work</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-on-arcgis-pro-does-not/m-p/423827#M18820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using 2.4.1. This&amp;nbsp;topic you linked&amp;nbsp;is actually on my bookmark bar, and I already tried&amp;nbsp;some solutions there, including clearing the cache and updating connections. I'm still struggling with adding/copying/removing layer stuff, but hopefully will made a functional code soon. Still, the tool and syntax is pretty straightforward, I wonder why it does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 14:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-on-arcgis-pro-does-not/m-p/423827#M18820</guid>
      <dc:creator>Gustavo_Souza</dc:creator>
      <dc:date>2019-09-18T14:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer on ArcGIS Pro does not work</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-on-arcgis-pro-does-not/m-p/423828#M18821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt; I created a model, exported to Arcpy, added it to a toolbox and then I run it. Code runs without any results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run the model on ArcGIS Pro, the symbology is updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 15:01:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-on-arcgis-pro-does-not/m-p/423828#M18821</guid>
      <dc:creator>Gustavo_Souza</dc:creator>
      <dc:date>2019-09-18T15:01:47Z</dc:date>
    </item>
  </channel>
</rss>

