<?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: Error when using Replace Layers tool in Emergency Management Maps project in ArcGIS Solutions Questions</title>
    <link>https://community.esri.com/t5/arcgis-solutions-questions/error-when-using-replace-layers-tool-in-emergency/m-p/1160402#M964</link>
    <description>&lt;P&gt;Thanks for the reply &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1140"&gt;@LindsayThomas&lt;/a&gt;&amp;nbsp;. I'm using the ArcGIS Online version which I deployed on March 29.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2022 19:28:15 GMT</pubDate>
    <dc:creator>MennoTerBals_GIS4C</dc:creator>
    <dc:date>2022-04-01T19:28:15Z</dc:date>
    <item>
      <title>Error when using Replace Layers tool in Emergency Management Maps project</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/error-when-using-replace-layers-tool-in-emergency/m-p/1159614#M961</link>
      <description>&lt;P&gt;When using the "Update Data Sources" task in the ArcGIS Pro project "Emergency Management Maps" the following error occurs upon running the Replace Layers script tool.&lt;/P&gt;&lt;P&gt;I'm using ArcGIS Pro 2.9.2&lt;/P&gt;&lt;P&gt;Any help would be appreciated. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace Layers&lt;BR /&gt;=====================&lt;BR /&gt;Parameters&lt;/P&gt;&lt;P&gt;Data Sources 'Commodity Staging' &lt;A href="https://services1.arcgis.com/X4F4xHLnScglSPkJ/arcgis/rest/services/CommodityStaging_active_5969a618a67f4ad4ac3a812d3b843bce/FeatureServer/0" target="_blank"&gt;https://services1.arcgis.com/X4F4xHLnScglSPkJ/arcgis/rest/services/CommodityStaging_active_5969a618a67f4ad4ac3a812d3b843bce/FeatureServer/0&lt;/A&gt;&lt;BR /&gt;Update all maps true&lt;BR /&gt;Update Map Layer Publishing&lt;BR /&gt;=====================&lt;BR /&gt;Messages&lt;/P&gt;&lt;P&gt;Start Time: Wednesday, March 30, 2022 3:21:21 PM&lt;BR /&gt;Source Name: CommodityStaging Source Path: D:\Documents\ArcGIS\Packages\EmergencyManagementMaps\emergencymanagement.gdb&lt;BR /&gt;To Name: L0Commodity_Staging To Path: &lt;A href="https://services1.arcgis.com/X4F4xHLnScglSPkJ/arcgis/rest/services/CommodityStaging_active_5969a618a67f4ad4ac3a812d3b843bce/FeatureServer" target="_blank"&gt;https://services1.arcgis.com/X4F4xHLnScglSPkJ/arcgis/rest/services/CommodityStaging_active_5969a618a67f4ad4ac3a812d3b843bce/FeatureServer&lt;/A&gt;&lt;BR /&gt;Current map: 1 - Situation Map&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "D:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\arcobjects\_base.py", line 90, in _get&lt;BR /&gt;return convertArcObjectToPythonObject(getattr(self._arc_object, attr_name))&lt;BR /&gt;AttributeError&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "D:\Documents\ArcGIS\Packages\EmergencyManagementMaps\ReplaceLayers.py", line 82, in remap_layers&lt;BR /&gt;curr_fc_name = os.path.basename(os.path.normpath(layer.dataSource))&lt;BR /&gt;File "D:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\arcobjects\_base.py", line 96, in _get&lt;BR /&gt;(attr_name, self.__class__.__name__))&lt;BR /&gt;AttributeError: The attribute 'dataSource' is not supported on this instance of Layer.&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "D:\Documents\ArcGIS\Packages\EmergencyManagementMaps\ReplaceLayers.py", line 127, in &amp;lt;module&amp;gt;&lt;BR /&gt;remap_layers(from_source, to_source, all_maps_option, maps_to_update)&lt;BR /&gt;File "D:\Documents\ArcGIS\Packages\EmergencyManagementMaps\ReplaceLayers.py", line 104, in remap_layers&lt;BR /&gt;PrintException()&lt;BR /&gt;File "D:\Documents\ArcGIS\Packages\EmergencyManagementMaps\ReplaceLayers.py", line 20, in PrintException&lt;BR /&gt;linecache.checkcache(filename)&lt;BR /&gt;NameError: name 'linecache' is not defined&lt;/P&gt;&lt;P&gt;Failed script Replace Layers...&lt;BR /&gt;Failed to execute (ReplaceLayers).&lt;BR /&gt;Failed at Wednesday, March 30, 2022 3:21:22 PM (Elapsed Time: 0.55 seconds)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 19:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/error-when-using-replace-layers-tool-in-emergency/m-p/1159614#M961</guid>
      <dc:creator>MennoTerBals_GIS4C</dc:creator>
      <dc:date>2022-03-30T19:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using Replace Layers tool in Emergency Management Maps project</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/error-when-using-replace-layers-tool-in-emergency/m-p/1160296#M963</link>
      <description>&lt;P&gt;What version of the Emergency Management Operations solution is being used?&amp;nbsp; (Deploying to ArcGIS Online, or ArcGIS Enterprise?)&lt;/P&gt;&lt;P&gt;Also, if you are deploying to enterprise what version is used?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 15:26:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/error-when-using-replace-layers-tool-in-emergency/m-p/1160296#M963</guid>
      <dc:creator>LindsayThomas</dc:creator>
      <dc:date>2022-04-01T15:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using Replace Layers tool in Emergency Management Maps project</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/error-when-using-replace-layers-tool-in-emergency/m-p/1160402#M964</link>
      <description>&lt;P&gt;Thanks for the reply &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1140"&gt;@LindsayThomas&lt;/a&gt;&amp;nbsp;. I'm using the ArcGIS Online version which I deployed on March 29.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 19:28:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/error-when-using-replace-layers-tool-in-emergency/m-p/1160402#M964</guid>
      <dc:creator>MennoTerBals_GIS4C</dc:creator>
      <dc:date>2022-04-01T19:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using Replace Layers tool in Emergency Management Maps project</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/error-when-using-replace-layers-tool-in-emergency/m-p/1162108#M966</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/244778"&gt;@MennoTerBals_GIS4C&lt;/a&gt; thanks for the patience. We are working to get this resolved.&amp;nbsp; In the meantime here are a couple workarounds.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the "1 - Situation" map, remove the group layer "Infrastructure" by moving all layers (Schools, Hospitals, Police Stations" as their own stand alone layers.&amp;nbsp; Run the tool and should update.&lt;/LI&gt;&lt;LI&gt;You can revert back to ArcGIS Pro 2.9.&amp;nbsp; We've confirmed the tool works in ArcGIS Pro 2.9, but can replicate the problem in Pro 2.9.2.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jeremiah&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:45:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/error-when-using-replace-layers-tool-in-emergency/m-p/1162108#M966</guid>
      <dc:creator>JeremiahLindemann</dc:creator>
      <dc:date>2022-04-07T14:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using Replace Layers tool in Emergency Management Maps project</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/error-when-using-replace-layers-tool-in-emergency/m-p/1162260#M967</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/595"&gt;@JeremiahLindemann&lt;/a&gt; ! The first workaround worked for me.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 19:03:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/error-when-using-replace-layers-tool-in-emergency/m-p/1162260#M967</guid>
      <dc:creator>MennoTerBals_GIS4C</dc:creator>
      <dc:date>2022-04-07T19:03:46Z</dc:date>
    </item>
  </channel>
</rss>

