<?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: arcpy.management.ApplySymbologyFromLayer finishes without error but doesnt apply the symbology (Pycharm, ArcGis Pro 3.0.3) in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-applysymbologyfromlayer-finishes/m-p/1595824#M94041</link>
    <description>&lt;P&gt;I have ArcGIS Pro open. I tried closing and reopening it as well. I wanted to refresh the map but couldn't find a designated button for it, so I tried closing and reopening the map, thinking it would work like a refresh.&lt;/P&gt;</description>
    <pubDate>Sat, 15 Mar 2025 16:17:20 GMT</pubDate>
    <dc:creator>Sikenull</dc:creator>
    <dc:date>2025-03-15T16:17:20Z</dc:date>
    <item>
      <title>arcpy.management.ApplySymbologyFromLayer finishes without error but doesnt apply the symbology (Pycharm, ArcGis Pro 3.0.3)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-applysymbologyfromlayer-finishes/m-p/1595816#M94038</link>
      <description>&lt;P&gt;I am a student using PyCharm connected to ArcGIS Pro Python and using ArcGIS 3.0.3 provided by my school.&lt;/P&gt;&lt;P&gt;I am currently trying to apply a symbology layer to a polygon layer using arcpy.management.ApplySymbologyFromLayer() to change it. The script finishes without any errors, but the symbology is not applied. I've read a few posts complaining about similar issues.&lt;/P&gt;&lt;P&gt;I currently have two scripts: one for exporting a layer and the other that uses arcpy.management.ApplySymbologyFromLayer()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;arcpy&lt;BR /&gt;&lt;BR /&gt;arcpy.env.workspace = &lt;SPAN&gt;r"D:\__ŠKOLA__\Střední\Gis\PROJECT_SCRIPT\PROJECT_SCRIPT\PROJECT_SCRIPT.gdb"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;layer_name = &lt;SPAN&gt;"ExportedLayer"&lt;BR /&gt;&lt;/SPAN&gt;in_symbology_layer = &lt;SPAN&gt;r"D:\__ŠKOLA__\Střední\Gis\PROJECT_SCRIPT\PROJECT_SCRIPT\ExportedLayer.lyrx"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;# Výběr vrstvy&lt;BR /&gt;&lt;/SPAN&gt;input_layer = &lt;SPAN&gt;"polygon"&lt;BR /&gt;&lt;/SPAN&gt;attribute_field = &lt;SPAN&gt;"PO"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;    arcpy.management.ApplySymbologyFromLayer(layer_name, in_symbology_layer, [[&lt;SPAN&gt;"VALUE_FIELD"&lt;/SPAN&gt;, &lt;SPAN&gt;"PO"&lt;/SPAN&gt;, &lt;SPAN&gt;"PO"&lt;/SPAN&gt;]], &lt;SPAN&gt;"UPDATE"&lt;/SPAN&gt;)&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Symbology applied successfully."&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;except &lt;/SPAN&gt;&lt;SPAN&gt;Exception &lt;/SPAN&gt;&lt;SPAN&gt;as &lt;/SPAN&gt;e:&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Error: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;e&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 15 Mar 2025 15:59:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-applysymbologyfromlayer-finishes/m-p/1595816#M94038</guid>
      <dc:creator>Sikenull</dc:creator>
      <dc:date>2025-03-15T15:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.ApplySymbologyFromLayer finishes without error but doesnt apply the symbology (Pycharm, ArcGis Pro 3.0.3)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-applysymbologyfromlayer-finishes/m-p/1595818#M94039</link>
      <description>&lt;P&gt;If you are doing this with pro open, did you try refreshing the map?&lt;/P&gt;&lt;P&gt;If you are just running the script with pro closed, nothing will happen since the project would have to be saved with the changes.&lt;/P&gt;&lt;P&gt;A bit more discussion on the surrounding methodology you are using might help narrow down other issues&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 16:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-applysymbologyfromlayer-finishes/m-p/1595818#M94039</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-03-15T16:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.ApplySymbologyFromLayer finishes without error but doesnt apply the symbology (Pycharm, ArcGis Pro 3.0.3)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-applysymbologyfromlayer-finishes/m-p/1595824#M94041</link>
      <description>&lt;P&gt;I have ArcGIS Pro open. I tried closing and reopening it as well. I wanted to refresh the map but couldn't find a designated button for it, so I tried closing and reopening the map, thinking it would work like a refresh.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 16:17:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-applysymbologyfromlayer-finishes/m-p/1595824#M94041</guid>
      <dc:creator>Sikenull</dc:creator>
      <dc:date>2025-03-15T16:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.ApplySymbologyFromLayer finishes without error but doesnt apply the symbology (Pycharm, ArcGis Pro 3.0.3)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-applysymbologyfromlayer-finishes/m-p/1595840#M94042</link>
      <description>&lt;P&gt;your instance of python isn't connected to Pro if you aren't running the script from the python window or a tool being run from within Pro, so your map has no clue what is going on around it.&amp;nbsp; Either attach the script to a tool in Pro and and run the tool, or try running your code from within a Pro notebook or the python window in Pro&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 18:16:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-management-applysymbologyfromlayer-finishes/m-p/1595840#M94042</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-03-15T18:16:12Z</dc:date>
    </item>
  </channel>
</rss>

