<?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: arcpy.mapping.AnalyzeForSD(sddraft) - Missing warnings in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737548#M57057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2013 06:02:09 GMT</pubDate>
    <dc:creator>TonyGegner</dc:creator>
    <dc:date>2013-01-18T06:02:09Z</dc:date>
    <item>
      <title>arcpy.mapping.AnalyzeForSD(sddraft) - Missing warnings</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737544#M57053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem with the arcpy.mapping.AnalyzeForSD() function. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to automate everything and is in need to get all the warnings/messages from the mxd analyze. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Somehow i dont manage to get all the warnings from the analyze. Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;analysis = arcpy.mapping.AnalyzeForSD(sddraft) print analysis&amp;nbsp; &amp;gt;&amp;gt; {'errors': {}, 'messages': {(u'Layer draws at all scale ranges', 30003): [&amp;lt;map layer u'Something.sde.Layername'&amp;gt;]}, 'warnings': {(u"Layer's data source doesn't have a spatial index", 10002): [&amp;lt;map layer u'Something.sde.Layername'&amp;gt;]}}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The same thing from ArcMap:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SEVERITY STATUS CODE DESCRIPTION NAME TYPE DATA FRAME&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;High Unresolved 10002 Layer's data source doesn't have a spatial index u'Something.sde.Layername&amp;nbsp; Layer Layers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;High Unresolved 24011 Layer's data source is not registered with the server and data will be copied to the server Something.sde.Layername Layer Layers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Medium Unresolved 10045 Map is being published with data copied to the server using data frame full extent Layers Data Frame Layers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Low Unresolved 30003 Layer draws at all scale ranges Something.sde.Layername Layer Layers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warning 24001 and 10045 is missing from the AnalyzeForSD().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea for a solution for this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 05:42:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737544#M57053</guid>
      <dc:creator>TonyGegner</dc:creator>
      <dc:date>2013-01-10T05:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.mapping.AnalyzeForSD(sddraft) - Missing warnings</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737545#M57054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am aware of an issue with warning #24011 not showing up in arcpy. However, I am not aware of #10045 missing. Can you tell me what version and service pack of ArcGIS you are using, whether you are using Server or Desktop, and details about the layer in your map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, I cannot think of a reasonable workaround to this issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 18:07:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737545#M57054</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2013-01-11T18:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.mapping.AnalyzeForSD(sddraft) - Missing warnings</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737546#M57055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;#24011 is the important one. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using 10.1 SP1, Desktop.&amp;nbsp; Have been testing with all kinds of layers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This example is a Simple Polygon. Any idea if this issue is being looked at? And if it might be resolved in a near future?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 07:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737546#M57055</guid>
      <dc:creator>TonyGegner</dc:creator>
      <dc:date>2013-01-16T07:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.mapping.AnalyzeForSD(sddraft) - Missing warnings</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737547#M57056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The plan (subject to change) is to have this fixed for the next service pack or release. For your records, the tracking number for the issue is NIM088210.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 19:43:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737547#M57056</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2013-01-17T19:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.mapping.AnalyzeForSD(sddraft) - Missing warnings</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737548#M57057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 06:02:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737548#M57057</guid>
      <dc:creator>TonyGegner</dc:creator>
      <dc:date>2013-01-18T06:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.mapping.AnalyzeForSD(sddraft) - Missing warnings</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737549#M57058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I couldn't wait for the next release to resolve this bug (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.esri.com/en/bugs/nimbus/TklNMDg4MjEw" rel="nofollow" target="_blank"&gt;NIM08210&lt;/A&gt;&lt;SPAN&gt;) so I tried the following workaround to catch when the "Layer's data source is not registered with the server":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy, re, os&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;serverRegDBlist = []&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lyrDataSourceList = []&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;continueIfOne = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;serverFile = r"C:\temp\arcgis on testserver_6080 (admin).ags"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxdPath = r"C:\temp\test.mxd"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument(mxdPath)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# The following loop searches through the server connection file and pulls out the server name and user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for i in arcpy.ListDataStoreItems(serverFile, 'DATABASE'):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&amp;nbsp;&amp;nbsp;&amp;nbsp; serverDetails = i[1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbDetails = re.split(';', serverDetails)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverName = re.split('=', dbDetails[1])[1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverUser = re.split('=', dbDetails[6])[1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverRegDBlist.append(serverUser + "@" + serverName)[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# This loop searches the layers in the mxd to populate a list with connection details for each sde layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for lyr in arcpy.mapping.ListLayers(mxd):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&amp;nbsp;&amp;nbsp;&amp;nbsp; # Will only continue if the layer is a feature layer and skip anything else such as groups and rasters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if lyr.isFeatureLayer == True:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyrFullPath = lyr.dataSource&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyrName = lyr.datasetName&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyrMxdName = 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; lyrPath = os.path.dirname(lyrFullPath)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyrDirectory = os.path.dirname(lyrPath)[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Will continue if the layer supports service properties such as an sde dataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if lyr.supports("SERVICEPROPERTIES"):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Pulls out properties of the service for each supported layer&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; lyrServer =&amp;nbsp; lyr.serviceProperties.get('Server', 'N/A')&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; lyrUser = lyr.serviceProperties.get('UserName', 'N/A')&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; lyrServer = lyrServer.strip()&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; lyrUser = lyrUser.strip()&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; lyrDataSourceList.append(lyrUser + '@' + lyrServer)[/[/INDENT]INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# This loop compares the lists and, if any individual layer in the mxd is not found in the servers registered databases, the variable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# continueIfOne is assigned a value of 0 which will be used in the proceeding if statement&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for layers in lyrDataSourceList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if layers not in serverRegDBlist:&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; [INDENT]continueIfOne = 0[/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if continueIfOne == 0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [INDENT]print "Not going to continue"[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [INDENT]print "Continue ..."[/INDENT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 21:21:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737549#M57058</guid>
      <dc:creator>Peter_von_Minden</dc:creator>
      <dc:date>2013-02-18T21:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.mapping.AnalyzeForSD(sddraft) - Missing warnings</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737550#M57059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To bring this back up, warning number 24012, "Standalone table's data source is not registered with the server and data will be copied to the server," is also NOT returned via AnalyzeForMSD. I checked everywhere and couldn't find a bug, so it looks like ESRI missed this one as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's different than AnalyzeForSD, but we're utilizing the REST Admin API at 10.1, which only supports MSD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 15:46:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/737550#M57059</guid>
      <dc:creator>AndrewBrown1</dc:creator>
      <dc:date>2014-10-27T15:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.mapping.AnalyzeForSD(sddraft) - Missing warnings</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/1271499#M67214</link>
      <description>&lt;P&gt;NICE!!!!!! Thank you for sharing!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 19:01:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-analyzeforsd-sddraft-missing/m-p/1271499#M67214</guid>
      <dc:creator>Robertson_Katherine</dc:creator>
      <dc:date>2023-03-24T19:01:38Z</dc:date>
    </item>
  </channel>
</rss>

