<?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: Pro 2.0 Bug &amp;quot;Apply Symbology From Layer&amp;quot; GeoProcessing Tool in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/1360572#M10862</link>
    <description>&lt;P&gt;Ditto. My script tool returns no errors but the .lyrx symbology isn't reflected on my layers. Have tried closing and re-opening my project to no avail. Any new workarounds for this??&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2023 20:09:45 GMT</pubDate>
    <dc:creator>cweirpatrickco</dc:creator>
    <dc:date>2023-12-13T20:09:45Z</dc:date>
    <item>
      <title>Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774934#M785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Applying symbology from a .lyr or .lyrx file has been an on-going battle for me.&amp;nbsp; I had an earlier post describing a problem with 1.4.&amp;nbsp; I was able to get past that, but now find a different problem at 2.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in the process of upgrading a couple of applications from 1.4 to 2.0&amp;nbsp; I have encountered a problem&amp;nbsp;when I attempt to apply the symbology of a .lyr or .lyrx&amp;nbsp;file to a layer brought into the session by the application.&amp;nbsp; This had been working in 1.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to see how Pro itself handled this by running the GeoProcessing Tool "Apply Symbology From Layer" interactively through native Pro.&amp;nbsp; I manually brought in a non symbolized grid layer into Pro.&amp;nbsp; I ran the tool and entered the grid layer as the input layer.&amp;nbsp; For the Symbology layer, I navigated to a .lyrx file that is built from a different but identically structured grid.&amp;nbsp; As soon as I finished browsing to this file and selected it, the "ApplySymbology From Layer" tool 'seized up'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the .lyrx file.&amp;nbsp; I am able to add it directly to a pro-session with no problems and proper symbolization.&amp;nbsp; If I do this, I am able to run the Apply Symboloby From Layer tool interactively, using the just added grid (from the .lyrx) file as the symbol layer and the tool works. It appears the version 2.0 tool only works with fully qualified layers that have been added to the session and not with providing it .lyr or .lyrx files that point to and are symbolized the same way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a series of screen captures illustrating this&amp;nbsp;experience with using the tool with a .lyrx file and then with a layer already added to Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This image shows a non symbolized grid file added to Pro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="non symbolized raster" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/363309_ScreenShot7.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This image shows trying to run the tool using a .lyrx file as the symbology layer&amp;nbsp;source.&amp;nbsp; This image also shows the output screen from Visual Studio that captures how it behaved after adding the .lyrx file to the Symbology Layer input:&lt;/P&gt;&lt;P&gt;It simply seizes up.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/363310_ScreenShot2.png" style="width: 620px; height: 220px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a test to make sure the .lyrx file I was using was healthy, I added it to the Pro session through the Add Data button. This image shows it successfully added:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/363312_ScreenShot3.png" style="width: 620px; height: 417px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following image shows running the Apply Symboloby From Layer&amp;nbsp;tool using the just added GRID from the .lyrx file. When I populate the Symbology Layer input, the tool does not misbehave:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-4 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/363315_ScreenShot8.png" style="width: 620px; height: 487px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final image shows the initial non-symbolized grid now with the proper symbology.&lt;IMG alt="" class="image-5 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/363316_ScreenShot5.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to confirm that the tool is not properly handling .lyrx files when provided as a the symbology source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance is appreciated.&amp;nbsp; I will be unable to reply to any responses for a few days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 21:52:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774934#M785</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2017-07-18T21:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774935#M786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;There are many problems with the GeoProcessing Tool "Apply Symbology From Layer" especially from API. Some problems are related to display cache. I reported them to Esri support and they marked them as bugs. That tool in 1.4.1 worked better than in 2.0 (I mean from API). To check if problem related to cache make following workflow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. After applying lyrx from API open layer properties&lt;/P&gt;&lt;P&gt;2. Goto Cache tab.&lt;/P&gt;&lt;P&gt;3. Clear cache&lt;/P&gt;&lt;P&gt;4. Set "Don't cache any data locally".&lt;/P&gt;&lt;P&gt;5. Press OK and close layer proeprties&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 06:38:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774935#M786</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2017-07-20T06:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774936#M787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your helpful reply.&amp;nbsp; I apologize for not responding sooner but have been away.&amp;nbsp; I have been working with your suggestion with some success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was successful implementing your workflow interactively in Pro. If I follow your suggested workflow, for my application I will need to programmatically go to the layer's properties and set the "Don't cache any data locally" property to achieve the desired effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like you have passed along a number of issues to ESRI, who have identified them as bugs.&amp;nbsp; Do you have any sense from ESRI that they will be resolved in the .1 or .2 releases?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 18:06:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774936#M787</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2017-07-28T18:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774937#M788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;I am not alone &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;Worst thing is that I have tried to make the same workflow from code but without success. That's why I reported bug, sent peace of code and etc. They agreed that it does not work.&lt;/P&gt;&lt;P&gt;I have reported&amp;nbsp;many issues&amp;nbsp;before 2.0 release (1.4.1&amp;nbsp; and 2.0 Beta) and thought that they will be fixed, because solution must be one line of code or something like that. But ... &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&amp;nbsp;One bug they closed with explanation that it was fixed in 2.0. I have checked and it is not.&lt;/P&gt;&lt;P&gt;Geonet is not the right place to report problems. I think the fastest way to have solution is to report the same bug from different users. Please contact your Esri distributer or your company GIS administrator and you will get access to create cases&amp;nbsp; for Esri software issues. This way is not very simple. You&amp;nbsp;must document&amp;nbsp;each case, workflow, data...&amp;nbsp;This way is our chance to solve our problems.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 18:53:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774937#M788</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2017-07-28T18:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774938#M789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;I have a good news for you. I have found workaround for featureclasses but it works with rasters too.&lt;/P&gt;&lt;P&gt;Change your workflow upside down and it will work:&lt;/P&gt;&lt;P&gt;1. Create layer from lyrx ( &lt;EM&gt;LayerFactory.Instance.CreateLayer(new Uri(uri), map);&lt;/EM&gt; ).&lt;/P&gt;&lt;P&gt;2. Change created layer datasource to your raster datasource (&amp;nbsp;&lt;EM&gt;rasterLayer.SetDataConnection(updatedDataConnection);&lt;/EM&gt; ).&lt;/P&gt;&lt;P&gt;3. Clear cache ( &lt;EM&gt;rasterLayer.ClearDisplayCache();&lt;/EM&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is ArcGIS Pro sample how to change datasource. I hope it will help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 12:53:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774938#M789</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2017-08-07T12:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774939#M790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for the information.&amp;nbsp; Presently, we are upgrading some servers to a new flavor of SQL and I have not been able to get back to this.&amp;nbsp; I'll let you know how I fare.&amp;nbsp; I appreciate your follow up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 17:12:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774939#M790</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2017-08-08T17:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774940#M791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone still struggling with this in ArcGIS Pro, this 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;# 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>Sun, 12 Dec 2021 08:41:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774940#M791</guid>
      <dc:creator>JustinReynolds</dc:creator>
      <dc:date>2021-12-12T08:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774941#M792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this code and it worked from the python window, but every time I run it from my script, it errors out saying the fields I used couldn't be found from the source or input layer.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 15:28:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774941#M792</guid>
      <dc:creator>JustinFuto1</dc:creator>
      <dc:date>2018-02-05T15:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774942#M793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This did not work for me. So this bug with ApplySymbologyFromLayer is still not fixed in Pro v 2.2 sad to say.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 21:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774942#M793</guid>
      <dc:creator>CharlesFried</dc:creator>
      <dc:date>2018-07-04T21:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774943#M794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have tested ArcGIS Pro 2.2 beta and found that ApplySymbologyFromLayer still not works. My workaround does not work&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt; on ArcGIS Pro 2.2&lt;/SPAN&gt; too. So I registered&amp;nbsp;&lt;SPAN style="font-size: 12.0pt;"&gt;Case number: 02133585. It is registered as bug. When it will be fixed I do not know. I think it depends how many developers have problems with it. So we need to increase importance of that functionality by registering your own cases.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 05:42:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774943#M794</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2018-07-05T05:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774944#M795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This bug is very frustrating. I have also reprted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 14:14:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774944#M795</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2018-10-05T14:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774945#M796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I report it? I want to increase the demand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 21:47:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774945#M796</guid>
      <dc:creator>MichaelLowry2</dc:creator>
      <dc:date>2018-10-17T21:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774946#M797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;If you have organization account ask your organization ArcGIS administrator to assign privilege to register cases on myesri.com or contact your Esri distributor and they inform you how to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 05:49:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774946#M797</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2018-10-18T05:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774947#M798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expected result can be achieved by passing a flag to Geoprocessing.ExecuteToolAsync(...) method. Here is the code snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #F6F8FA;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #24292e; border: none windowtext 1.0pt; padding: 0in;"&gt;// inputs:&amp;nbsp;&lt;SPAN style="background-color: #f6f8fa;"&gt;symbologyLayer could be a layer file (*.lyrx) or a layer in the map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #F6F8FA;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #24292e; border: none windowtext 1.0pt; padding: 0in;"&gt;var parameters = Geoprocessing.MakeValueArray(inputLayer, symbologyLayer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #F6F8FA;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #24292e; border: none windowtext 1.0pt; padding: 0in;"&gt;// set flags&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #F6F8FA;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #24292e; border: none windowtext 1.0pt; padding: 0in; background: yellow;"&gt;GPExecuteToolFlags flags = GPExecuteToolFlags.GPThread;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #F6F8FA;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #24292e; border: none windowtext 1.0pt; padding: 0in;"&gt;// call ExecuteToolAsync &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #F6F8FA;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #24292e; border: none windowtext 1.0pt; padding: 0in;"&gt;var gp_result = await Geoprocessing.ExecuteToolAsync("ApplySymbologyFromLayer_management", parameters, null, null, null, &lt;SPAN style="background: yellow;"&gt;flags&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 21:24:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774947#M798</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2018-10-18T21:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774948#M799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nobbir,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #24292e; border: none windowtext 1.0pt; padding: 0cm; background: yellow;"&gt;GPExecuteToolFlags.GPThread&lt;/SPAN&gt; is not documented, but it seems it works. Please add documentation to&amp;nbsp;&lt;A class="link-titled" href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geoprocessing" title="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geoprocessing"&gt;ProConcepts Geoprocessing · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 06:11:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774948#M799</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2018-10-19T06:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774949#M800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion - we'll document.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 15:58:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774949#M800</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2018-10-19T15:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774950#M801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a workaround for Python:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;current_project = arcpy.mp.ArcGISProject(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"CURRENT"&lt;/SPAN&gt;)
current_map = current_project.listMaps()[&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;]
symbology_layer = SymbologyPath + &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;FLO_scaled_graduated_symbol.lyrx'
&lt;/SPAN&gt;new_lyr_file = arcpy.mp.LayerFile(symbology_layer)
new_lyr = new_lyr_file.listLayers()[&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;]
old_lyr = current_map.listLayers(original_network)[&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;]
old_lyr_name = old_lyr.name
new_lyr.updateConnectionProperties(new_lyr.connectionProperties, old_lyr.connectionProperties)
new_lyr.name = old_lyr_name
new_lyr_file.save()
current_map.insertLayer(old_lyr, new_lyr_file)
current_map.removeLayer(old_lyr)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:41:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774950#M801</guid>
      <dc:creator>MichaelLowry2</dc:creator>
      <dc:date>2021-12-12T08:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774951#M802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can &lt;SPAN style="background-color: #ffffff;"&gt;Geoprocessing.ExecuteToolAsync(...)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt; be accessed with Python via arcpy?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 23:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774951#M802</guid>
      <dc:creator>MichaelLowry2</dc:creator>
      <dc:date>2018-10-22T23:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774952#M803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, this seems to reset my outline widths and manual class divisions.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2019 19:44:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774952#M803</guid>
      <dc:creator>CarolynKeagle1</dc:creator>
      <dc:date>2019-01-29T19:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774953#M804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background: white;"&gt;BUG-000106281&lt;/SPAN&gt;&amp;nbsp;about this issue is apparently fixed for Pro SDK at release 2.3,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background: white;"&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/get-started/release-notes.htm"&gt;https://pro.arcgis.com/en/pro-app/get-started/release-notes.htm&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background: white;"&gt;but I still cannot apply symbology from a layer file to a layer in my map through a script tool in Pro. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background: white;"&gt;I have tried both call methods:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background: white;"&gt;arcpy.management.ApplySymbologyFromLayer(target_layer, symbology_layer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background: white;"&gt;arcpy.ApplySymbologyFromLayer_management(target_layer, symbology_layer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background: white;"&gt;And I have tried .lyr and .lyrx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background: white;"&gt;I know it is a problem with Pro, because if I run the exact same script tool in ArcMap (10.3) it works properly. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background: white;"&gt;Any information or suggestions? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 07:43:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-2-0-bug-quot-apply-symbology-from-layer-quot/m-p/774953#M804</guid>
      <dc:creator>MichaelLowry2</dc:creator>
      <dc:date>2019-03-08T07:43:31Z</dc:date>
    </item>
  </channel>
</rss>

