<?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 Need a python script to convert layers' app connects into direct connects in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/need-a-python-script-to-convert-layers-app/m-p/584803#M45896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have over a thousand corporate layers that connect to their Oracle SDE source data via application connects. I'm wondering whether anyone has already written a python script that will convert these layers internal connections into direct connects. I have tried several approaches, including ArcPy's findAndReplaceWorkspacePaths, with no success. In each approach, no errors are thrown, but nothing is changed, either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the newer versions of ArcGIS for Desktop requiring direct connects, I'm hoping someone has already solved this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Dec 2014 22:46:04 GMT</pubDate>
    <dc:creator>SteveMiller1</dc:creator>
    <dc:date>2014-12-26T22:46:04Z</dc:date>
    <item>
      <title>Need a python script to convert layers' app connects into direct connects</title>
      <link>https://community.esri.com/t5/python-questions/need-a-python-script-to-convert-layers-app/m-p/584803#M45896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have over a thousand corporate layers that connect to their Oracle SDE source data via application connects. I'm wondering whether anyone has already written a python script that will convert these layers internal connections into direct connects. I have tried several approaches, including ArcPy's findAndReplaceWorkspacePaths, with no success. In each approach, no errors are thrown, but nothing is changed, either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the newer versions of ArcGIS for Desktop requiring direct connects, I'm hoping someone has already solved this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2014 22:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/need-a-python-script-to-convert-layers-app/m-p/584803#M45896</guid>
      <dc:creator>SteveMiller1</dc:creator>
      <dc:date>2014-12-26T22:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need a python script to convert layers' app connects into direct connects</title>
      <link>https://community.esri.com/t5/python-questions/need-a-python-script-to-convert-layers-app/m-p/584804#M45897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;The &lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN;"&gt;findAndReplaceWorkspacePaths should work but the easiest way is to shut down the service, then open the MXD with all layers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN;"&gt;You will get many red exclamation m&lt;/SPAN&gt;arks.&lt;/P&gt;&lt;P style="text-align: left;"&gt;You change one of them (using the repair option) and all of them will change.&lt;/P&gt;&lt;P style="text-align: left;"&gt;Then all you need to do is resave them as layers. You can use Python Layer.save() to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Have&lt;BR /&gt;Fun&lt;/P&gt;&lt;P style="text-align: left;"&gt;Mody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Dec 2014 05:59:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/need-a-python-script-to-convert-layers-app/m-p/584804#M45897</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2014-12-28T05:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need a python script to convert layers' app connects into direct connects</title>
      <link>https://community.esri.com/t5/python-questions/need-a-python-script-to-convert-layers-app/m-p/584805#M45898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good idea, Mody. I'd thought of that, but even though the connection string I'll convert to will be the same, there are many different connection strings to input. I do already have all the layers in a single mxd.....all 1346 of them!&lt;/P&gt;&lt;P&gt;May still give your idea a try.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 15:46:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/need-a-python-script-to-convert-layers-app/m-p/584805#M45898</guid>
      <dc:creator>SteveMiller1</dc:creator>
      <dc:date>2014-12-29T15:46:58Z</dc:date>
    </item>
  </channel>
</rss>

