<?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: Update layers to a new Enterprise Connection when original data source is unreachable in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/update-layers-to-a-new-enterprise-connection-when/m-p/1323425#M72560</link>
    <description>&lt;P&gt;Solution was to use ArcCatalog to resource all old MXDs to new data source then import into ArcPro.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2023 13:09:48 GMT</pubDate>
    <dc:creator>Spencer</dc:creator>
    <dc:date>2023-08-29T13:09:48Z</dc:date>
    <item>
      <title>Update layers to a new Enterprise Connection when original data source is unreachable</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-layers-to-a-new-enterprise-connection-when/m-p/1260606#M65831</link>
      <description>&lt;P&gt;Our organization is migrating from Oracle to Postgres and simultaneously migrating to a cloud environment. I'm trying to programmatically update the layers data source in a .APRX. I see this can be done using Arcpy&amp;nbsp;&lt;SPAN&gt;updateConnectionProperties&lt;/SPAN&gt;&amp;nbsp;but it only appears to work when the data source is accessible. The data source is not accessible while in the cloud environment. The Find &amp;amp; Replace option in ArcPro/Catalog will only re-source data down to the layer level which would result in stepping through each layer manually. Previously ArcCatalog had the ability to set the data source at the file level which is what I'm trying to accomplish here. Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 19:00:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-layers-to-a-new-enterprise-connection-when/m-p/1260606#M65831</guid>
      <dc:creator>Spencer</dc:creator>
      <dc:date>2023-02-22T19:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Update layers to a new Enterprise Connection when original data source is unreachable</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-layers-to-a-new-enterprise-connection-when/m-p/1261028#M65868</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/updatingandfixingdatasources.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/updatingandfixingdatasources.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Not tried it myself unfortunately but maybe the validate argument will do it &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;updateConnectionProperties(r'old', r'new', validate=False)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By default, the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;updateConnectionProperties&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;method only updates a data source if the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;new_connection_info&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is a valid data source. If the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;validate&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;parameter is set to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;, the data source is set to that location regardless of whether it exists. This can be useful for scenarios that require data sources to be updated ahead of the data being created. In these cases, the data appears broken in the associated maps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 18:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-layers-to-a-new-enterprise-connection-when/m-p/1261028#M65868</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-02-23T18:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Update layers to a new Enterprise Connection when original data source is unreachable</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-layers-to-a-new-enterprise-connection-when/m-p/1261616#M65922</link>
      <description>&lt;P&gt;There is a known bug when using "updateConnectionProperties" between enterprise environments.&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000021728" target="_blank"&gt;https://support.esri.com/en/technical-article/000021728&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Based on that link, it looks like my only option is to create a dictionary. Is it possible to set the "find dictionary" to validate=False?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 20:35:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-layers-to-a-new-enterprise-connection-when/m-p/1261616#M65922</guid>
      <dc:creator>Spencer</dc:creator>
      <dc:date>2023-02-24T20:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Update layers to a new Enterprise Connection when original data source is unreachable</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-layers-to-a-new-enterprise-connection-when/m-p/1261619#M65924</link>
      <description>&lt;P&gt;I would imagine it's just specified in the same way as before, but with a dictionary input.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;lyr.updateConnectionProperties(find_dict, replace_dict, validate=False)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that doesn't work -&amp;nbsp; It's a bit optimistic but maybe you could also try a path to a dummy GDB initially, then do the operation again to the new enterprise GDB.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 20:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-layers-to-a-new-enterprise-connection-when/m-p/1261619#M65924</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-02-24T20:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Update layers to a new Enterprise Connection when original data source is unreachable</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-layers-to-a-new-enterprise-connection-when/m-p/1323425#M72560</link>
      <description>&lt;P&gt;Solution was to use ArcCatalog to resource all old MXDs to new data source then import into ArcPro.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 13:09:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-layers-to-a-new-enterprise-connection-when/m-p/1323425#M72560</guid>
      <dc:creator>Spencer</dc:creator>
      <dc:date>2023-08-29T13:09:48Z</dc:date>
    </item>
  </channel>
</rss>

