<?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 Cannot Update Referenced Feature Layer symbology with Python For ArcGIS API in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/cannot-update-referenced-feature-layer-symbology/m-p/1574460#M16095</link>
    <description>&lt;P&gt;Using the third example in &lt;A href="https://community.esri.com/t5/arcgis-api-for-python-blog/methods-for-updating-layer-symbology-with-the/bc-p/1573399#M142" target="_self"&gt;this blog post&lt;/A&gt;, I have written a script that exports a Feature Layer's symbology to JSON and then imports it. The purpose of the script is to update symbology when we have to re-publish (overwrite) services because we are switching to a new SQL instance. However, while the script works for hosted feature layers, it does does not work for referenced feature layers. The&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.managers.html#arcgis.features.managers.FeatureLayerManager" target="_self"&gt; documentation&lt;/A&gt;&amp;nbsp;does suggest that this workflow only works for hosted feature layers, which seems odd:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;update_definition&lt;SPAN&gt;&amp;nbsp;operation supports updating a definition property in a hosted feature layer. The result of this operation is a response indicating success or failure with error code and description."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I also tried the second example in the blog post, which also works for hosted layers but not for referenced layers. The item.get_data() returns an empty dictionary. Any thoughts or suggestions are appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2025 19:25:15 GMT</pubDate>
    <dc:creator>StefanCoe1</dc:creator>
    <dc:date>2025-01-10T19:25:15Z</dc:date>
    <item>
      <title>Cannot Update Referenced Feature Layer symbology with Python For ArcGIS API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/cannot-update-referenced-feature-layer-symbology/m-p/1574460#M16095</link>
      <description>&lt;P&gt;Using the third example in &lt;A href="https://community.esri.com/t5/arcgis-api-for-python-blog/methods-for-updating-layer-symbology-with-the/bc-p/1573399#M142" target="_self"&gt;this blog post&lt;/A&gt;, I have written a script that exports a Feature Layer's symbology to JSON and then imports it. The purpose of the script is to update symbology when we have to re-publish (overwrite) services because we are switching to a new SQL instance. However, while the script works for hosted feature layers, it does does not work for referenced feature layers. The&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.managers.html#arcgis.features.managers.FeatureLayerManager" target="_self"&gt; documentation&lt;/A&gt;&amp;nbsp;does suggest that this workflow only works for hosted feature layers, which seems odd:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;update_definition&lt;SPAN&gt;&amp;nbsp;operation supports updating a definition property in a hosted feature layer. The result of this operation is a response indicating success or failure with error code and description."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I also tried the second example in the blog post, which also works for hosted layers but not for referenced layers. The item.get_data() returns an empty dictionary. Any thoughts or suggestions are appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 19:25:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/cannot-update-referenced-feature-layer-symbology/m-p/1574460#M16095</guid>
      <dc:creator>StefanCoe1</dc:creator>
      <dc:date>2025-01-10T19:25:15Z</dc:date>
    </item>
  </channel>
</rss>

