<?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 arcpy in ArcGIS Pro  - Setting a layer to have it own metadata in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-in-arcgis-pro-setting-a-layer-to-have-it-own/m-p/1141537#M63678</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to use arcpy in ArcGIS Pro to set properties on layers including the description and summary. I am using&lt;BR /&gt;the metadata object to do this. The properties get saved. However, they are not used as the layer has not been set to&lt;BR /&gt;have it own metadata. How do I do this in arcpy? The current code is similar to the following&lt;/P&gt;&lt;P&gt;layerMetadata = layer.metadata&lt;/P&gt;&lt;P&gt;layerMetadata.description = description&lt;BR /&gt;layerMetadata.summary = summary&lt;BR /&gt;# The following do not have an effect&lt;BR /&gt;# layer.metadata = layerMetadata&lt;BR /&gt;# layerMetadata.save()&lt;/P&gt;&lt;P&gt;# This saves the metadata. However the layer is not set to use it&lt;BR /&gt;aprx.save()&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 12:33:15 GMT</pubDate>
    <dc:creator>HarshaPerera</dc:creator>
    <dc:date>2022-02-08T12:33:15Z</dc:date>
    <item>
      <title>arcpy in ArcGIS Pro  - Setting a layer to have it own metadata</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-in-arcgis-pro-setting-a-layer-to-have-it-own/m-p/1141537#M63678</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to use arcpy in ArcGIS Pro to set properties on layers including the description and summary. I am using&lt;BR /&gt;the metadata object to do this. The properties get saved. However, they are not used as the layer has not been set to&lt;BR /&gt;have it own metadata. How do I do this in arcpy? The current code is similar to the following&lt;/P&gt;&lt;P&gt;layerMetadata = layer.metadata&lt;/P&gt;&lt;P&gt;layerMetadata.description = description&lt;BR /&gt;layerMetadata.summary = summary&lt;BR /&gt;# The following do not have an effect&lt;BR /&gt;# layer.metadata = layerMetadata&lt;BR /&gt;# layerMetadata.save()&lt;/P&gt;&lt;P&gt;# This saves the metadata. However the layer is not set to use it&lt;BR /&gt;aprx.save()&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 12:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-in-arcgis-pro-setting-a-layer-to-have-it-own/m-p/1141537#M63678</guid>
      <dc:creator>HarshaPerera</dc:creator>
      <dc:date>2022-02-08T12:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy in ArcGIS Pro  - Setting a layer to have it own metadata</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-in-arcgis-pro-setting-a-layer-to-have-it-own/m-p/1141573#M63679</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/metadata/metadata-class.htm" target="_blank"&gt;Metadata—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;synchronize? upgrade?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 14:09:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-in-arcgis-pro-setting-a-layer-to-have-it-own/m-p/1141573#M63679</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-02-08T14:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy in ArcGIS Pro  - Setting a layer to have it own metadata</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-in-arcgis-pro-setting-a-layer-to-have-it-own/m-p/1142240#M63691</link>
      <description>&lt;P&gt;Thanks for the reply. Unfortunately, neither of those work. I found that getting and setting the layer definition does allow this to be changed.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;l_cim&lt;/SPAN&gt;&lt;SPAN&gt; = l&lt;/SPAN&gt;&lt;SPAN&gt;ayer&lt;/SPAN&gt;&lt;SPAN&gt;.getDefinition(&lt;/SPAN&gt;&lt;SPAN&gt;'V2'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;l_cim.useSourceMetadata = False&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; l&lt;/SPAN&gt;&lt;SPAN&gt;ayer&lt;/SPAN&gt;&lt;SPAN&gt;.setDefinition(&lt;/SPAN&gt;&lt;SPAN&gt;l_cim&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;However, setting the definition (even if no changes have been made to the object) cause the layer to become disconnected. I'll raise a separate post for that.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 17:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-in-arcgis-pro-setting-a-layer-to-have-it-own/m-p/1142240#M63691</guid>
      <dc:creator>HarshaPerera</dc:creator>
      <dc:date>2022-02-09T17:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy in ArcGIS Pro  - Setting a layer to have it own metadata</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-in-arcgis-pro-setting-a-layer-to-have-it-own/m-p/1664210#M74882</link>
      <description>&lt;P&gt;The hint using the CIM was great. Thank you very much! It works like a charm.&lt;/P&gt;&lt;P&gt;I'm currently working with ArcGIS Pro 3.4.5 and I don't have any problems with disconnected layers after changing the source metadata property.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 15:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-in-arcgis-pro-setting-a-layer-to-have-it-own/m-p/1664210#M74882</guid>
      <dc:creator>Adrian</dc:creator>
      <dc:date>2025-11-07T15:53:39Z</dc:date>
    </item>
  </channel>
</rss>

