<?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: Updating connection info via python from SDE to File geodb - with a feature dataset in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90806#M7060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fraser, someone will take a look (and BTW 'Ta' doesn't travel outside NZ) &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2019 15:47:43 GMT</pubDate>
    <dc:creator>BruceHarold</dc:creator>
    <dc:date>2019-01-31T15:47:43Z</dc:date>
    <item>
      <title>Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90805#M7059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm clipping data and moving to a file geodb from SDE and fixing up datasources&amp;nbsp; for a symbolised Pro project before publishing.&lt;/P&gt;&lt;P&gt;This works for the main part unless the feature class is in a feature dataset. Doing the below works for 90% of my feature classes - if the FC is in a FD the source breaks as Pro can't find the FD in the filegeodb. (note the validate false was for troubleshooting)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;con_props = {&lt;SPAN style="color: #6a8759;"&gt;'connection_info'&lt;/SPAN&gt;:{&lt;SPAN style="color: #6a8759;"&gt;'database'&lt;/SPAN&gt;: temp_filegeodb&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                                &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;'authentication_mode'&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                                &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;'dbclient'&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                                &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;'db_connection_properties'&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                                &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;'password'&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                                &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;'instance'&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                                &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;'server'&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                                &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;'user'&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                                &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;'version'&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;''&lt;/SPAN&gt;}&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;             &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;'dataset'&lt;/SPAN&gt;: name&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;             &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;'workspace_factory'&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;'File Geodatabase'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;             &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;'feature_dataset'&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;''
&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;             &lt;/SPAN&gt;}
&lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(con_props)
a_layer.updateConnectionProperties(a_layer.connectionProperties&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;con_props&lt;SPAN style="color: #cc7832;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #aa2c96;"&gt;validate&lt;/SPAN&gt;=&lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;False&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;yet I can't see a flag to clear the feature dataset from the layer.&lt;/P&gt;&lt;P&gt;So we end up with a broken datasource as the layer is still looking for the original feature dataset. Is there an easy way to clear this - I haven't seen anything in the doco.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/436234_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;After:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/436247_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;surely this property is exposed in the connection_info dictionary? Right?&lt;/P&gt;&lt;P&gt;Ta&lt;/P&gt;&lt;P&gt;Fraser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:28:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90805#M7059</guid>
      <dc:creator>FraserHand1</dc:creator>
      <dc:date>2021-12-10T23:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90806#M7060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fraser, someone will take a look (and BTW 'Ta' doesn't travel outside NZ) &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2019 15:47:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90806#M7060</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2019-01-31T15:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90807#M7061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruce and Fraser, I am also experiencing the same issue with updateConnectionProperties method on the Layer class (assuming same issue is present for the same method on different classes like Map, Project, etc...). Feature Dataset is not exposed in connectionProperties python dictionary property. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 14:29:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90807#M7061</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-03-05T14:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90808#M7062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Esri are aware of it and it will be addressed in a future release. You'll need to work around in the meantime.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Fraser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 20:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90808#M7062</guid>
      <dc:creator>FraserHand1</dc:creator>
      <dc:date>2019-03-05T20:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90809#M7063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When!? It has been months and we (a very large million dollar ESRI client) are waiting. This is blocking a critical organisation wide enterprise project. I want to scream at ESRI right now for not fixing this. Please PM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no workaround.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2019 04:15:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90809#M7063</guid>
      <dc:creator>MarkoPolo</dc:creator>
      <dc:date>2019-06-20T04:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90810#M7064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marko Polo,&lt;BR /&gt;If you have not already I would strongly suggest lodging a case with technical support. They'll be able to actively look into it.&lt;BR /&gt;Thanks,&lt;BR /&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2019 00:46:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90810#M7064</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-06-21T00:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90811#M7065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are there any updates on this issue? (11/15/2019)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 18:12:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90811#M7065</guid>
      <dc:creator>JohnCarlee</dc:creator>
      <dc:date>2019-11-15T18:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90812#M7066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Starting in version 2.4, there is a work around using the arcpy cim module. Python CIM access is available which will provide finer-grained access to more settings/capabilities. We dont have data source examples in the help yet, but here is the overview help topic and a video.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Help topic:&amp;nbsp;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fpro.arcgis.com%2Fen%2Fpro-app%2Farcpy%2Fmapping%2Fpython-cim-access.htm" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/arcpy/mapping/python-cim-access.htm&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Video:&amp;nbsp;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8wgt8bKD0Ww%26feature%3Dyoutu.be" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://www.youtube.com/watch?v=8wgt8bKD0Ww&amp;amp;feature=youtu.be&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;The following script will update layer data sources from Enterprise Geodatabase to File Geodatabase. It will also handle the differences in feature dataset names between the two data formats (line 38).&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# new File Geodatabase&lt;/SPAN&gt;
newFGDB &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\backup\UC2019\arcpy.mp\DataSources\SDE2FGDB.gdb"&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Enterprise Geodatabase&lt;/SPAN&gt;
entServer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ss2014-104"&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# folder to search&lt;/SPAN&gt;
folder &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\backup\UC2019\arcpy.mp\DataSources"&lt;/SPAN&gt; 

&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; os

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; file &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listdir&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;splitext&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;lower&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'.aprx'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f&lt;SPAN class="string token"&gt;"APRX      : {file}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        aprx &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; m &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; aprx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listMaps&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f&lt;SPAN class="string token"&gt;"  MAP     : {m.name}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; lyr &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; m&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listLayers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;supports&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"dataSource"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dataSource&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;find&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f&lt;SPAN class="string token"&gt;"Server={entServer}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                        &lt;SPAN class="comment token"&gt;# FOUND A LAYER TO UPDATE!&lt;/SPAN&gt;
                        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f&lt;SPAN class="string token"&gt;"    LAYER : {lyr.name} -&amp;gt; UPDATING LAYER'S DATASOURCE!"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                        
                        &lt;SPAN class="comment token"&gt;# Access layer CIM&lt;/SPAN&gt;
                        lyrCIM &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getDefinition&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"V2"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                        dc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lyrCIM&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;featureTable&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dataConnection
                        
                        &lt;SPAN class="comment token"&gt;# Update the connection properties - 4 steps:&lt;/SPAN&gt;
                        &lt;SPAN class="comment token"&gt;# ===========================================&lt;/SPAN&gt;
                        &lt;SPAN class="comment token"&gt;# 1.) Change the connection string to point to the new file gdb&lt;/SPAN&gt;
                        dc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspaceConnectionString &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; f&lt;SPAN class="string token"&gt;'DATABASE={newFGDB}'&lt;/SPAN&gt;
                        
                        &lt;SPAN class="comment token"&gt;# 2.) If the data is in a Feature Dataset, then update it &lt;/SPAN&gt;
                        &lt;SPAN class="comment token"&gt;#     That is, remove the user name [all formats] and database [SQL Server] &lt;/SPAN&gt;
                        &lt;SPAN class="comment token"&gt;#     e.g. change mydb.myuser.MyFDSName to MyFDSName&lt;/SPAN&gt;
                        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; hasattr&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"featureDataset"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                            dc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;featureDataset &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; dc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;featureDataset&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;dc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;featureDataset&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;rfind&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'.'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
                            
                        &lt;SPAN class="comment token"&gt;# 3.) Change the workspace type from SDE (Enterprise) to FileGDB&lt;/SPAN&gt;
                        dc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspaceFactory &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'FileGDB'&lt;/SPAN&gt;
                        
                        &lt;SPAN class="comment token"&gt;# 4.) Change the dataset name &lt;/SPAN&gt;
                        &lt;SPAN class="comment token"&gt;#     That is, remove the user name [all formats] and database [SQL Server]. &lt;/SPAN&gt;
                        &lt;SPAN class="comment token"&gt;#     e.g. change mydb.myuser.MyFCName to MyFCName&lt;/SPAN&gt;
                        dc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dataset &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; dc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dataset&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;dc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dataset&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;rfind&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'.'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
                        
                        &lt;SPAN class="comment token"&gt;# Update layer CIM (commit the changes)&lt;/SPAN&gt;
                        lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setDefinition&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyrCIM&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                    &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f&lt;SPAN class="string token"&gt;"    LAYER : {lyr.name}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f&lt;SPAN class="string token"&gt;"   LAYER : {lyr.name}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                    
        &lt;SPAN class="comment token"&gt;# save a copy of the updated APRX&lt;/SPAN&gt;
        aprx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;saveACopy&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'output'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'+++++++++'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; 
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'+ DONE! +'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; 
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'+++++++++'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:28:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90812#M7066</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2021-12-10T23:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90813#M7067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greate script Jeff, you just saved me so so much pain.&amp;nbsp; Slotted it in and bang, rolled it.&lt;/P&gt;&lt;P&gt;thanks mate!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 23:50:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90813#M7067</guid>
      <dc:creator>LachlanWainwright</dc:creator>
      <dc:date>2020-06-03T23:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90814#M7068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Starting at ArcGIS version 2.6, we improved this workflow so that you can use Enterprise Geodatabase Connection Files in the first parameter of the UpdateConnectionProperties function. Instead of using the above arcpy CIM workaround, you can now&amp;nbsp;do something like the following code sample. This will work if the feature dataset name in the Enterprise Geodatabase is the same as the File Geodatabase (not including the user and database prefix - meaning "mydb.myuser.MyFDSName" is&amp;nbsp;equivalent to "MyFDSName")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy 
aprx &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;'C:\Projects\YosemiteNP\Yosemite.aprx'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
aprx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;updateConnectionProperties&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;'C:\Projects\YosemiteNP\DBConnections\Server.sde'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                                r&lt;SPAN class="string token"&gt;'C:\Projects\YosemiteNP\Local_Data\YosemiteLocal.gdb'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; ‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More info and code samples can be found here:&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/updatingandfixingdatasources.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/mapping/updatingandfixingdatasources.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Updating and fixing data sources—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90814#M7068</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2021-12-10T23:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90815#M7069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My organisation has just upgraded to ArcGIS Pro 2.5.2, so won't be going to 2.6 for at least a little while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way in 2.5.2 to adapt your 'workaround' script above to repoint a project's data sources from a file geodatabase to an enterprise (SQL) geodatabase?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our databases are typically flat in structure, without feature datasets, joins or other complications, so we pretty much want to replace the .gdb path with a .sde path, although I know it's not that simple...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given the different connection properties for file and enterprise geodatabases, I'm not sure how to translate this to your above solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance would be most appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lindsay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2020 03:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90815#M7069</guid>
      <dc:creator>LindsayMillard1</dc:creator>
      <dc:date>2020-08-07T03:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90816#M7070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Re-sourcing data from File GDB to Enterprise GDB should be pretty straight forward in 2.5.2, especially if data set names are the same between the two geodatabases. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy 
aprx &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;'C:\Projects\YosemiteNP\Yosemite.aprx'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
aprx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;updateConnectionProperties&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;'C:\Projects\YosemiteNP\Local_Data\YosemiteLocal.gdb'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                                r&lt;SPAN class="string token"&gt;'C:\Projects\YosemiteNP\DBConnections\Server.sde'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:28:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90816#M7070</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2021-12-10T23:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90817#M7071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your fast response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree that re-sourcing &lt;EM&gt;should&lt;/EM&gt; be straightforward... but it doesn't work for me as you have it scripted above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can run the equivalent of your script within an ArcGIS Pro session and, despite running for a period of time, the data sources remain unchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise, I can run the script in a standalone Python shell that saves a copy of the 'updated' APRX with the same non-results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume this is related to &lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExMjU3NA=="&gt;BUG-000112574&lt;/A&gt;, so was hoping to use the 'Alternate Solution' proposed on that page of two dictionaries, but there is no clear direction on how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to confirm that your script runs in ArcGIS Pro 2.5.2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, can you advise on the appropriate dictionary syntax to use to achieve the required outcome?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, your assistance is much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 01:18:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90817#M7071</guid>
      <dc:creator>LindsayMillard1</dc:creator>
      <dc:date>2020-08-11T01:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90818#M7072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the description of your&amp;nbsp;workflow, the process &lt;EM&gt;should&lt;/EM&gt; be pretty straight forward. The bug you mentioned shouldn't be a factor. And the little three line script in my previous reply &lt;EM&gt;should&lt;/EM&gt; work. Can you&amp;nbsp;email me a small project package that demonstrates the problem? &lt;A href="mailto:jmoulds@esri.com"&gt;jmoulds@esri.com&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 22:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/90818#M7072</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2020-08-11T22:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/1588555#M73784</link>
      <description>&lt;P&gt;Hi Jeff, I have a similar situation where I'm trying to update the datasource of a QUERY FEATURE CLASS from SDE to FileGDB. Using your script I am able to update the connection, but the query doesn't get updated. How do I achieve this?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 15:46:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/1588555#M73784</guid>
      <dc:creator>MadhumithaArumugam</dc:creator>
      <dc:date>2025-02-24T15:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Updating connection info via python from SDE to File geodb - with a feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/1622840#M74358</link>
      <description>&lt;P&gt;This does work for Features, Rasters, Features with Joins&amp;nbsp; but haven't been able to get this to work for Standalone Tables. There must be some other ways to do it.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 20:19:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-connection-info-via-python-from-sde-to/m-p/1622840#M74358</guid>
      <dc:creator>shay-geo</dc:creator>
      <dc:date>2025-06-11T20:19:59Z</dc:date>
    </item>
  </channel>
</rss>

