<?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 SDE sources only in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/updating-sde-sources-only/m-p/655671#M51064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;layer.replaceDataSource to perform this automated work in the past.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;To differentiate SDE layers, I used the .supports("SERVICEPROPERTIES") as a True (Y) for this query which means the layer originates in SDE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;You will also probably need to deal with group layers that have SDE layers in them so your python code needs to handle them as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 May 2017 13:17:22 GMT</pubDate>
    <dc:creator>MichaelVolz</dc:creator>
    <dc:date>2017-05-17T13:17:22Z</dc:date>
    <item>
      <title>Updating SDE sources only</title>
      <link>https://community.esri.com/t5/python-questions/updating-sde-sources-only/m-p/655670#M51063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a number of MXD's that have a combination of SDE layers and other sources. I am trying to figure out the best way to update only the SDE sources, in python, so we can change them from DEV to PROD but not update local sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found using the layer.replaceDataSource will change all in the layer and for some reason layer.findAndReplaceWorkspacePath is not working on some features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 07:33:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-sde-sources-only/m-p/655670#M51063</guid>
      <dc:creator>DeanHowell1</dc:creator>
      <dc:date>2017-05-17T07:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Updating SDE sources only</title>
      <link>https://community.esri.com/t5/python-questions/updating-sde-sources-only/m-p/655671#M51064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;layer.replaceDataSource to perform this automated work in the past.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;To differentiate SDE layers, I used the .supports("SERVICEPROPERTIES") as a True (Y) for this query which means the layer originates in SDE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;You will also probably need to deal with group layers that have SDE layers in them so your python code needs to handle them as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 13:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-sde-sources-only/m-p/655671#M51064</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2017-05-17T13:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Updating SDE sources only</title>
      <link>https://community.esri.com/t5/python-questions/updating-sde-sources-only/m-p/655672#M51065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael, that worked a treat &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 02:34:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-sde-sources-only/m-p/655672#M51065</guid>
      <dc:creator>DeanHowell1</dc:creator>
      <dc:date>2017-05-18T02:34:52Z</dc:date>
    </item>
  </channel>
</rss>

