<?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 How do I help users adjust map projects to a new ArcServer? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-help-users-adjust-map-projects-to-a-new/m-p/2369#M128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm planning to get a new server soon and move my ArcServer functions to the new hardware. Some of my power Arc Desktop users are wondering how this is going to effect all the map projects they have that use connections that are pointed at the old server.&amp;nbsp; They are dreading going into all their map projects and finding a bunch of red ! in their TOCs and having to correct the source on each one. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if there is a trick to making this transition more seamless. Is it possible to name the new server, AS instance, and databases exactly the same so that the Desktop users don't have to change a thing?&amp;nbsp; Can I get away with it?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or are there any tricks to automate the change of source in the map projects of the client machines?&amp;nbsp; Seems like I remember long ago, so long that it might have been written in Avenue, an Arc user script that was able to hack the project files, find each instance of a source string and replace it with the new path.&amp;nbsp; Is there anything like that in user scripts for Desktop 10.x that could update source paths for any project in a directory or in a PC?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2014 21:51:02 GMT</pubDate>
    <dc:creator>PaulHuffman</dc:creator>
    <dc:date>2014-02-20T21:51:02Z</dc:date>
    <item>
      <title>How do I help users adjust map projects to a new ArcServer?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-help-users-adjust-map-projects-to-a-new/m-p/2369#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm planning to get a new server soon and move my ArcServer functions to the new hardware. Some of my power Arc Desktop users are wondering how this is going to effect all the map projects they have that use connections that are pointed at the old server.&amp;nbsp; They are dreading going into all their map projects and finding a bunch of red ! in their TOCs and having to correct the source on each one. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if there is a trick to making this transition more seamless. Is it possible to name the new server, AS instance, and databases exactly the same so that the Desktop users don't have to change a thing?&amp;nbsp; Can I get away with it?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or are there any tricks to automate the change of source in the map projects of the client machines?&amp;nbsp; Seems like I remember long ago, so long that it might have been written in Avenue, an Arc user script that was able to hack the project files, find each instance of a source string and replace it with the new path.&amp;nbsp; Is there anything like that in user scripts for Desktop 10.x that could update source paths for any project in a directory or in a PC?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 21:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-help-users-adjust-map-projects-to-a-new/m-p/2369#M128</guid>
      <dc:creator>PaulHuffman</dc:creator>
      <dc:date>2014-02-20T21:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I help users adjust map projects to a new ArcServer?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-help-users-adjust-map-projects-to-a-new/m-p/2370#M129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use python to update SDE connection properties that would change with a new server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are various methods you could use.&amp;nbsp; If you are going from 1 database to another 1 on a different server, FindandReplaceWorkspacePath might work for you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 22:12:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-help-users-adjust-map-projects-to-a-new/m-p/2370#M129</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2014-02-20T22:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I help users adjust map projects to a new ArcServer?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-help-users-adjust-map-projects-to-a-new/m-p/2371#M130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why am I having trouble getting your attachment today? All I get is "You don't have permission to access /attachments/ on this server." even though I'm logged in.&amp;nbsp; Is it because the extension is .py?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 16:44:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-help-users-adjust-map-projects-to-a-new/m-p/2371#M130</guid>
      <dc:creator>PaulHuffman</dc:creator>
      <dc:date>2014-02-25T16:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I help users adjust map projects to a new ArcServer?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-help-users-adjust-map-projects-to-a-new/m-p/2372#M131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I received the same error when trying to open that file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a sample script to use replacedatasource of an SDE connection&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import os&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput=True&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;###test create connection file and replace data source####&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_file_path = r"C:\incidents\xx"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Directory_Search = r"C:\incidents\xx\mxd"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#SDE_file_path = r"\\miaoer\newMXD"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateArcSDEConnectionFile_management(SDE_file_path, "testsde.sde", "user", "sde:oracle11g:orcl", "", \&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "DATABASE_AUTH", "sde", "sde", "SAVE_USERNAME", "SDE.DEFAULT",&amp;nbsp; "SAVE_VERSION")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print "done creating ArcSDE connection file!"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for root, dirs, files in os.walk(Directory_Search):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fListLength = len(files)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for f in files:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "\n\n"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fListLength&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fListLength = fListLength-1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (f.endswith(".mxd")):&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #problem_File = check_File(f)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; full_path = root + "\\" + str(f)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print full_path&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd = arcpy.mapping.MapDocument(full_path)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; dfs = arcpy.mapping.ListDataFrames(mxd)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; for df in dfs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for lyr in arcpy.mapping.ListLayers(df):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.replaceDataSource(SDE_file_path +r"\testsde.sde", "SDE_WORKSPACE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print lyr.name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #mxd.saveACopy(SDE_file_path +r"\testNew.mxd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.save()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print "finish replace data source"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 16:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-help-users-adjust-map-projects-to-a-new/m-p/2372#M131</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2014-02-25T16:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I help users adjust map projects to a new ArcServer?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-help-users-adjust-map-projects-to-a-new/m-p/2373#M132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Why am I having trouble getting your attachment today? All I get is "You don't have permission to access /attachments/ on this server." even though I'm logged in.&amp;nbsp; Is it because the extension is .py?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 02:51:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-help-users-adjust-map-projects-to-a-new/m-p/2373#M132</guid>
      <dc:creator>NidhinKarthikeyan</dc:creator>
      <dc:date>2014-02-26T02:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I help users adjust map projects to a new ArcServer?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-help-users-adjust-map-projects-to-a-new/m-p/2374#M133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;nidhinkn -&amp;nbsp; why is that command line step to copy connection file from toolbox to Catalog needed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 21:20:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-help-users-adjust-map-projects-to-a-new/m-p/2374#M133</guid>
      <dc:creator>PaulHuffman</dc:creator>
      <dc:date>2014-06-03T21:20:36Z</dc:date>
    </item>
  </channel>
</rss>

