<?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: Overwrite Web Layer - Custom analyze - show differences between existing service and a new (overwrite) service in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/overwrite-web-layer-custom-analyze-show/m-p/1512932#M86246</link>
    <description>&lt;P&gt;Getting the schema from two layers or two dataframes is easy. Layer IDs are probably something you'd need to use the arcpy.mp module for.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 14:00:18 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2024-07-31T14:00:18Z</dc:date>
    <item>
      <title>Overwrite Web Layer - Custom analyze - show differences between existing service and a new (overwrite) service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/overwrite-web-layer-custom-analyze-show/m-p/1512110#M86160</link>
      <description>&lt;P&gt;In ArcGIS Pro, before&amp;nbsp;Overwrite Web Layer, we need to&amp;nbsp;analyze - show differences between existing service and a new (overwrite) service, keeping parameters consistent when republishing FeatureServices.&lt;/P&gt;&lt;P&gt;Example: Keeping layer IDs consistent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will be more parameters to compare, so we need a general solution.&lt;/P&gt;&lt;P&gt;Possible workflow could be:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;take an existing service, export all parameters to file.&lt;/LI&gt;&lt;LI&gt;take existing map, export all parameters to a file&lt;/LI&gt;&lt;LI&gt;compare two files and show the difference&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcGIS Pro 3.3.0&lt;/P&gt;&lt;P&gt;ArcGIS Enterprise 11.2&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 06:05:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/overwrite-web-layer-custom-analyze-show/m-p/1512110#M86160</guid>
      <dc:creator>MarkMindlin_idea</dc:creator>
      <dc:date>2024-07-30T06:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Web Layer - Custom analyze - show differences between existing service and a new (overwrite) service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/overwrite-web-layer-custom-analyze-show/m-p/1512304#M86178</link>
      <description>&lt;P&gt;If you're comfortable with a bit of Python, the &lt;STRONG&gt;compare&lt;/STRONG&gt; method on &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#geoaccessor" target="_blank"&gt;arcgis.features.GeoAccessor&lt;/A&gt; is pretty helpful.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
from arcgis.features import GeoAccessor, FeatureLayer

gis = GIS('your portal url', 'user', 'password')

existing = GeoAccessor.from_layer(FeatureLayer('feature service url'))
new = GeoAccessor.from_featureclass('file path') # this part will depend on where the new data comes from

comp_frames = existing.spatial.compare(new, 'id field')&lt;/LI-CODE&gt;&lt;P&gt;You'd then be able to look at the contents of comp_frames, being three dataframes corresponding to rows added, modified, and deleted between the existing and new layers.&lt;/P&gt;&lt;P&gt;Each of those identified changes could be exported to file / feature service and further interacted with.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 13:37:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/overwrite-web-layer-custom-analyze-show/m-p/1512304#M86178</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-07-30T13:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Web Layer - Custom analyze - show differences between existing service and a new (overwrite) service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/overwrite-web-layer-custom-analyze-show/m-p/1512875#M86236</link>
      <description>&lt;P&gt;Thank you Josh&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code you provided could be very useful.&lt;BR /&gt;&lt;BR /&gt;For our case, it does not compare schema/s of feature classes,&lt;BR /&gt;it does not compare parameters of a service Web Layer and local Map as we going to overwrite the Web Layer.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;An existing service has two feature layers with layers' IDs "1" and "2"&lt;/P&gt;&lt;P&gt;As we going to overwrite the service, we have in a Map two layers, but accidentally, the layers' IDs are "3" and "4"&lt;/P&gt;&lt;P&gt;We are looking to solve that issue in particular (only layers' IDs) and as a general solution (all parameters of the service)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;&lt;/SPAN&gt;Mark&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 11:37:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/overwrite-web-layer-custom-analyze-show/m-p/1512875#M86236</guid>
      <dc:creator>MarkMindlin_idea</dc:creator>
      <dc:date>2024-07-31T11:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Web Layer - Custom analyze - show differences between existing service and a new (overwrite) service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/overwrite-web-layer-custom-analyze-show/m-p/1512932#M86246</link>
      <description>&lt;P&gt;Getting the schema from two layers or two dataframes is easy. Layer IDs are probably something you'd need to use the arcpy.mp module for.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 14:00:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/overwrite-web-layer-custom-analyze-show/m-p/1512932#M86246</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-07-31T14:00:18Z</dc:date>
    </item>
  </channel>
</rss>

