<?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: ArcGIS Pro 1.41 Python script - what am I missing?? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301793#M23461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/dkwiens"&gt;dkwiens&lt;/A&gt;‌, are you running your code from the interactive Python window/console or a script tool?&amp;nbsp; I think the OP is wanting to run it from a script tool and that is where the issue is arising.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2017 15:40:44 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2017-02-21T15:40:44Z</dc:date>
    <item>
      <title>ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301784#M23452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently switched from Desktop to Pro and totally at a loss of figuring out how to make this very simple script work in ArcPro. Note that it runs and says success but the symbology does not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in_fc = arcpy.GetParameterAsText(0)&lt;BR /&gt;in_lyrx = arcpy.GetParameterAsText(1)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;arcpy.management.ApplySymbologyFromLayer(in_fc,in_lyrx)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/325112_pastedImage_1.png" style="width: 620px; height: 316px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301784#M23452</guid>
      <dc:creator>RyanMcCluskey1</dc:creator>
      <dc:date>2017-02-17T20:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301785#M23453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is currently no direct connection between your script and the map itself.&amp;nbsp; If you want to see updates onscreen, you should examine the arcpy.ma module.&amp;nbsp; If there script is being run in the correct location with an open project using 'Current' as the project, then the map will be automatically refreshed in the newest version of PRO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:58:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301785#M23453</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-17T20:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301786#M23454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan. I took a look at the arcpy.mp help (I think you meant mp, not ma?) and added a map parameter but I'm still missing something. The script below runs but again I don't see the symbology update. Thanks for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/325124_pastedImage_1.png" style="width: 620px; height: 355px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 21:21:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301786#M23454</guid>
      <dc:creator>RyanMcCluskey1</dc:creator>
      <dc:date>2017-02-17T21:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301787#M23455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/apply-symbology-from-layer.htm"&gt;ApplySymbologyFromLayer&lt;/A&gt;&amp;nbsp;help topic suggests it should work... with the usual warnings and exclusions you may need to print the in_fc since it should be a layer in the project.&amp;nbsp; They sadly, only give code samples for *.lyr files so I am not sure whether they mean 'layers' or 'layer' if you catch my drift and different emphasis on the term 'layer'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 21:29:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301787#M23455</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-17T21:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301788#M23456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan. Yea, I catch your drift on layer/layers. I'll keep searching for a solution and post when I figure it out. For the time it is a bit maddening.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 21:33:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301788#M23456</guid>
      <dc:creator>RyanMcCluskey1</dc:creator>
      <dc:date>2017-02-17T21:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301789#M23457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your code, you are looping through the layers in a map, but&amp;nbsp;you aren't doing anything to any of the layers when you loop through them.&amp;nbsp; After you loop through them, you apply symbology to &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;in_fc&lt;/SPAN&gt;.&amp;nbsp; What is &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;in_fc&lt;/SPAN&gt;, exactly?&amp;nbsp; The variable naming makes me think it is a feature class and not a layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 22:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301789#M23457</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-02-17T22:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301790#M23458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joshua. The name I use "in_fc" indicates I'm picking a feature class but the data type in the tool is "Layer" (I also tried "Feature Layer") and I'm picking one of the layers in the map. I just loop through the layers to check that I have the right map and a layer is found matching the "in_fc" parameter.&lt;/P&gt;&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 23:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301790#M23458</guid>
      <dc:creator>RyanMcCluskey1</dc:creator>
      <dc:date>2017-02-17T23:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301791#M23459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you hard-wire the parameter values and run the code from the interactive Python window, does it work for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 00:45:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301791#M23459</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-02-18T00:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301792#M23460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not quite sure how this differs from your original script, but this works for me:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;my_lyr = 'qs' # the feature layer name
lyr_file = r'C:\junk\mylyr.lyrx' # the symbology layer file
arcpy.ApplySymbologyFromLayer_management(my_lyr,lyr_file) # apply symbology‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:28:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301792#M23460</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T14:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301793#M23461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/dkwiens"&gt;dkwiens&lt;/A&gt;‌, are you running your code from the interactive Python window/console or a script tool?&amp;nbsp; I think the OP is wanting to run it from a script tool and that is where the issue is arising.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:40:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301793#M23461</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-02-21T15:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301794#M23462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darren / Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting test you suggested so I simplified the script and it still runs "successfully" as a script but the symbology doesn't change. When I run ApplySymbology from the python window with the exact same parameters, it runs successfully AND the symbology does change. So, It's a problem with running it from a Script but I still don't know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCRIPT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/327375_pastedImage_1.png" style="width: 620px; height: 248px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;After Script is Run (no change in symbology)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/327376_pastedImage_4.png" style="width: 620px; height: 198px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;After Same Parameters are used in ApplySymbology function run from Python Window&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/327383_pastedImage_7.png" style="width: 620px; height: 283px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 17:37:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301794#M23462</guid>
      <dc:creator>RyanMcCluskey1</dc:creator>
      <dc:date>2017-02-21T17:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301795#M23463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;on a lark... in the map that symbology didn't change... did you toggle it on and off?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 17:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301795#M23463</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-21T17:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301796#M23464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea. I just re-ran it, toggled it, closed the map and reopened and no change in the symbology. Was worth checking but no dice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 17:51:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301796#M23464</guid>
      <dc:creator>RyanMcCluskey1</dc:creator>
      <dc:date>2017-02-21T17:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301797#M23465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer to your question may be buried in the &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/setting-output-symbology-in-scripts.htm"&gt;Setting output symbology in scripts &lt;/A&gt;documentation.&amp;nbsp; I haven't had time to read it and fully digest that page yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 18:31:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301797#M23465</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-02-21T18:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301798#M23466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm encountering exactly the same problem. At an absolute loss just like yourself. The apply symbology geoprocessing tool works fine but I can't get this function working in python at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 19:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301798#M23466</guid>
      <dc:creator>ThomasLynch</dc:creator>
      <dc:date>2017-07-31T19:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301799#M23467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My experience with arcpy.ApplySymbologyFromLayer_management was that the script would complete&amp;nbsp;with no error.&amp;nbsp; The layer would lock itself out in TOC while the script was running&amp;nbsp;as if the symbology was being set, but when the&amp;nbsp;&lt;SPAN&gt;arcpy.ApplySymbologyFromLayer_management completed the layer's symbols, labeling, popup, etc. didn't actual update.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For anyone still struggling with this, "Refreshing" the layer's connection properties after applying the layer file did the trick. I think it is a bug (I was hopeful 2.1 would fix it), but non the less the following worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808080;"&gt;# Tested with ArcPro 2.0+
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# ApplySymbologyFromLayer_management Bug Work Around
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;arcpy

&lt;SPAN style="color: #808080;"&gt;# Set the workspace if desired
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# arcpy.env.workspace = 'C:\data'
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# Set layer to apply symbology to
&lt;/SPAN&gt;inputLayer = &lt;SPAN style="color: #a5c261;"&gt;"FDT_02171592"&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# in the current workspace
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# Set layer that output symbology will be based on
&lt;/SPAN&gt;symbologyLayer = &lt;SPAN style="color: #a5c261;"&gt;'N:\ArcGIS - Materials\Project Template\Layer Files\FDT_v1_5.lyrx'
&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# Symbolize the input by Test_Status field
&lt;/SPAN&gt;symbologyFields = [[&lt;SPAN style="color: #a5c261;"&gt;"VALUE_FIELD"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"Test_Status"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;"Test_Status"&lt;/SPAN&gt;]]

&lt;SPAN style="color: #808080;"&gt;# Apply the symbology from the symbology layer to the input layer
&lt;/SPAN&gt;arcpy.ApplySymbologyFromLayer_management(inputLayer&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;symbologyLayer&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;symbologyFields)

&lt;SPAN style="color: #808080;"&gt;# It would appear that the layer properties (sym, labeling, etc.) are not being applied from the layer file
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# when in fact they are.&amp;nbsp; The bug seems to revolve around the layer display cache.&amp;nbsp; Apply sym from layer via arcpy, no
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# change appears, but if you then go into the layer's properties and clear the cache and change the cache setting
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# to do not cache the sym from the layer file all of the sudden appear.&amp;nbsp; Many of the layer properties are not exposed
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# via arcpy, however, we can "artificially" update the layer's connection properties by setting the new connection
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# info equal to the current connection info. By doing this we are essentially "refreshing" the connection.&amp;nbsp; This
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;# produces the desired effect with applySymbologyFromLayer through arcpy.
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;aprx = arcpy.mp.ArcGISProject(&lt;SPAN style="color: #a5c261;"&gt;"CURRENT"&lt;/SPAN&gt;)&amp;nbsp; &lt;SPAN style="color: #808080;"&gt;# Reference the open project
&lt;/SPAN&gt;myMap = aprx.listMaps()[&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;]&amp;nbsp; &lt;SPAN style="color: #808080;"&gt;# Get the map that contains the input layer
&lt;/SPAN&gt;myLayers = myMap.listLayers()&amp;nbsp; &lt;SPAN style="color: #808080;"&gt;# either get the input layer and refresh or get a list of layers and iterate and refresh
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;for &lt;/SPAN&gt;layer &lt;SPAN style="color: #cc7832;"&gt;in &lt;/SPAN&gt;myLayers:
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;layer.name == inputLayer:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080;"&gt;# "Refresh" the layer connection properties by setting the new connection = current connection
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;layer.updateConnectionProperties(inputLayer&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;inputLayer)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:28:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301799#M23467</guid>
      <dc:creator>JustinReynolds</dc:creator>
      <dc:date>2021-12-11T14:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 1.41 Python script - what am I missing??</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301800#M23468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas see my reply to this question I posted today.&amp;nbsp; I hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 22:43:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-1-41-python-script-what-am-i-missing/m-p/301800#M23468</guid>
      <dc:creator>JustinReynolds</dc:creator>
      <dc:date>2018-01-18T22:43:44Z</dc:date>
    </item>
  </channel>
</rss>

