<?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 toolbox Python script problem in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1691693#M102445</link>
    <description>&lt;P&gt;Thanks for posting! This fixed my issue, too, without needing to mess around with all the derived output stuff.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2026 13:11:37 GMT</pubDate>
    <dc:creator>MatthewSackrison</dc:creator>
    <dc:date>2026-03-20T13:11:37Z</dc:date>
    <item>
      <title>ApplySymbologyFromLayer toolbox Python script problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1240884#M63395</link>
      <description>&lt;P&gt;arcpy.management.ApplySymbologyFromLayer() works from a standalone script, or the Arc Python window, but NOT from a toolbox script inside a map session. It executes without an error, but it doesn't change the symbology.&lt;/P&gt;&lt;P&gt;The only possible reason I can see is that the object type is a little different for a layer depending on whether it's a standalone/python window or the toolbox script.&lt;/P&gt;&lt;P&gt;standalone/python window layer type:&amp;nbsp;&amp;lt;arcpy._mp.Layer object at 0x000001C3E7390C10&amp;gt;&lt;/P&gt;&lt;P&gt;toolbox script layer type:&amp;nbsp;&amp;lt;MappingLayerObject object at 0x000001AEA43E2270&amp;gt;&lt;/P&gt;&lt;P&gt;Does anyone know what's going on?? I have run into other weird glitches with ArcGIS Pro where tools function differently in toolbox scripts, and it's very frustrating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script example that only works if run as a standalone script:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 545px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58447iA215C8E82FEFDC52/image-dimensions/545x207?v=v2" width="545" height="207" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 00:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1240884#M63395</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-12-14T00:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer toolbox Python script problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1240894#M63397</link>
      <description>&lt;P&gt;Are you using a custom toolbox where you can specify the parameter type from a dialog or is this a parameter-less tool?&amp;nbsp; A toolbox script will behave properly if you define the parameters in the tool and select them from the dialog like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tool.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58448i3F75A909C004B62B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tool.png" alt="tool.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 00:54:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1240894#M63397</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-12-14T00:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer toolbox Python script problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1240899#M63398</link>
      <description>&lt;P&gt;I was grabbing the layers through the map.listLayers() method because one of them will be an in-memory layer that I created in my script, not a user input.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But I just tried making them both user input parameters (Feature Layers), and it still didn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 01:04:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1240899#M63398</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-12-14T01:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer toolbox Python script problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1240950#M63402</link>
      <description>&lt;P&gt;From the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/apply-symbology-from-layer.htm" target="_blank" rel="noopener"&gt;tool doc&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;To see the symbology created in a script tool, the tool must include the layer as a&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.0/arcpy/geoprocessing_and_python/setting-script-tool-parameters.htm#GUID-8A3BFFDE-3923-4956-94D6-8960D3A68C7F" target="_blank" rel="noopener"&gt;derived output parameter&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 14 Dec 2022 05:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1240950#M63402</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-12-14T05:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer toolbox Python script problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1240957#M63403</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;More or less the same code works for me when I take the source layer from lyrx file and not from the TOC&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 06:12:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1240957#M63403</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2022-12-14T06:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer toolbox Python script problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1241166#M63417</link>
      <description>&lt;P&gt;Ahh, thanks! I guess I should have read the doc more thoroughly. I've been avoiding derived parameters, because I didn't understand them.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here's the code that works.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fix.PNG" style="width: 723px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58527i03052403F4A6AE56/image-dimensions/723x201?v=v2" width="723" height="201" role="button" title="fix.PNG" alt="fix.PNG" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fix2.PNG" style="width: 723px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58529i328E934774CD5AD4/image-dimensions/723x103?v=v2" width="723" height="103" role="button" title="fix2.PNG" alt="fix2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 16:58:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1241166#M63417</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-12-14T16:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer toolbox Python script problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1241289#M63430</link>
      <description>&lt;P&gt;Actually, I found a better solution for my purposes. I was having an issue with the derived output adding a second copy of the layer being affected, when that layer was an in-memory layer. When I changed so that it wasn't added to the map at all until the derived output from the symbology tool, then I realized that the derived output doesn't get added to the map until the script ends. This is a problem because I need to apply symbology, and then edit it within the same script.&lt;BR /&gt;&lt;BR /&gt;Here's the new method that works better when your affected layer is an in-memory layer: no duplication, and immediately added to map.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fix3.PNG" style="width: 669px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58586i6B8E90EF6B760D99/image-dimensions/669x233?v=v2" width="669" height="233" role="button" title="fix3.PNG" alt="fix3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this seems like a pointless script... it's just a fragment of a larger script.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 19:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1241289#M63430</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-12-14T19:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer toolbox Python script problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1388127#M79466</link>
      <description>&lt;P&gt;This worked for me. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 16:25:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1388127#M79466</guid>
      <dc:creator>MichaelPorter</dc:creator>
      <dc:date>2024-02-28T16:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: ApplySymbologyFromLayer toolbox Python script problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1691693#M102445</link>
      <description>&lt;P&gt;Thanks for posting! This fixed my issue, too, without needing to mess around with all the derived output stuff.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 13:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/applysymbologyfromlayer-toolbox-python-script/m-p/1691693#M102445</guid>
      <dc:creator>MatthewSackrison</dc:creator>
      <dc:date>2026-03-20T13:11:37Z</dc:date>
    </item>
  </channel>
</rss>

