<?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 arcpy.mapping scripting environment NOT suppressing dialog box - possible bug in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-mapping-scripting-environment-not/m-p/3787#M157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are getting ready to upgrade our enterprise database to 10.3 which no longer supports application connections.&lt;/P&gt;&lt;P&gt;So I have written a script that will walk through all mxd files in a directory and replace all the application connections with direct connects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I've encountered...&lt;/P&gt;&lt;P&gt;When a mxd document has connections that do not save the username and password a dialog box pops up and the script pauses until the dialog box is manually closed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to Example 4 in ESRIs documentation &lt;A href="https://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/mapdocument.htm" title="https://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/mapdocument.htm"&gt;MapDocument—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We simply need to create a connection using the &lt;A href="https://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-arcsde-connection-file.htm" title="https://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-arcsde-connection-file.htm"&gt;Create ArcSDE Connection File—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp; tool before calling the MapDocument function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since my main goal is to use direct connects instead of application connections I am using &lt;A href="https://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-database-connection.htm" title="https://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-database-connection.htm"&gt;Create Database Connection—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp; instead and it is not suppressing the dialog box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the &lt;A href="https://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/listbrokendatasources.htm" title="https://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/listbrokendatasources.htm"&gt;ListBrokenDataSources—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp; documentation it clearly states "&lt;STRONG&gt;The arcpy.mapping scripting environment will, by default, supress these dialogs during execution&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not seem to be the case and is a major issue when we have hundreds maybe even thousands of mxd files to update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/group/1759"&gt;Esri Technical Support&lt;/A&gt; Please advice on how to suppress the dialog in the arcpy.mapping scripting environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2016 19:42:38 GMT</pubDate>
    <dc:creator>Kathleen_Crombez</dc:creator>
    <dc:date>2016-01-21T19:42:38Z</dc:date>
    <item>
      <title>arcpy.mapping scripting environment NOT suppressing dialog box - possible bug</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-mapping-scripting-environment-not/m-p/3787#M157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are getting ready to upgrade our enterprise database to 10.3 which no longer supports application connections.&lt;/P&gt;&lt;P&gt;So I have written a script that will walk through all mxd files in a directory and replace all the application connections with direct connects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I've encountered...&lt;/P&gt;&lt;P&gt;When a mxd document has connections that do not save the username and password a dialog box pops up and the script pauses until the dialog box is manually closed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to Example 4 in ESRIs documentation &lt;A href="https://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/mapdocument.htm" title="https://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/mapdocument.htm"&gt;MapDocument—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We simply need to create a connection using the &lt;A href="https://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-arcsde-connection-file.htm" title="https://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-arcsde-connection-file.htm"&gt;Create ArcSDE Connection File—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp; tool before calling the MapDocument function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since my main goal is to use direct connects instead of application connections I am using &lt;A href="https://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-database-connection.htm" title="https://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-database-connection.htm"&gt;Create Database Connection—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp; instead and it is not suppressing the dialog box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the &lt;A href="https://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/listbrokendatasources.htm" title="https://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/listbrokendatasources.htm"&gt;ListBrokenDataSources—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp; documentation it clearly states "&lt;STRONG&gt;The arcpy.mapping scripting environment will, by default, supress these dialogs during execution&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not seem to be the case and is a major issue when we have hundreds maybe even thousands of mxd files to update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/group/1759"&gt;Esri Technical Support&lt;/A&gt; Please advice on how to suppress the dialog in the arcpy.mapping scripting environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 19:42:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-mapping-scripting-environment-not/m-p/3787#M157</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2016-01-21T19:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.mapping scripting environment NOT suppressing dialog box - possible bug</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-mapping-scripting-environment-not/m-p/3788#M158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone from ESRI comment on this?&lt;/P&gt;&lt;P&gt;This is a serious show stopper for automating tasks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 17:20:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-mapping-scripting-environment-not/m-p/3788#M158</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2016-01-28T17:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.mapping scripting environment NOT suppressing dialog box - possible bug</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-mapping-scripting-environment-not/m-p/3789#M159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am adding some more groups for more visibility....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/space/2145"&gt;Python&lt;/A&gt;​ &lt;A href="https://community.esri.com/space/2030"&gt;Developers&lt;/A&gt;​ &lt;A href="https://community.esri.com/group/1680"&gt;Geodatabase&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is a show stopper, I would recommend login a case with Technical Support also to possible get to a resolution more quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 17:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-mapping-scripting-environment-not/m-p/3789#M159</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2016-01-28T17:26:56Z</dc:date>
    </item>
  </channel>
</rss>

